repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
c72c49c
parent
41ea5a7
author
Eric Bower
date
2023-01-05 02:51:29 +0000 UTC
chore(imgs): Add hot links and resizing examples on each imgs post page
1 files changed,  +14, -0
M imgs/html/post.page.tmpl
+14, -0
 1@@ -48,6 +48,20 @@
 2         </figure>
 3 
 4         <div class="md">{{.Contents}}</div>
 5+
 6+        <dl>
 7+            <dt>Hotlink</dt>
 8+            <dd><a href="{{.ImgURL}}">{{.ImgURL}}</a></dd>
 9+
10+            <dt>Resize width (preserve aspect)</dt>
11+            <dd><a href="{{.ImgURL}}/300x">{{.ImgURL}}/300x</a></dd>
12+
13+            <dt>Resize height (preserve aspect)</dt>
14+            <dd><a href="{{.ImgURL}}/x300">{{.ImgURL}}/300x</a></dd>
15+
16+            <dt>Resize width and height</dt>
17+            <dd><a href="{{.ImgURL}}/300x300">{{.ImgURL}}/300x300</a></dd>
18+        </dl>
19     </article>
20 </main>
21 {{template "footer" .}}