mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-12-04 20:01:49 -05:00
add shortcode for "retina" images
This commit is contained in:
1 parent
d655c3376d
commit
6fab1ead7a
3 files changed
+24
-10
No files matched your search
@@ -0,0 +1,14 @@
|
||||
{{ if .Get "caption"}}
|
||||
<figure>
|
||||
<picture>
|
||||
{{ end }}
|
||||
<img
|
||||
src="{{ .Get "src" }}"
|
||||
alt="{{ .Get "alt" }}"
|
||||
{{ if .Get "width"}} width="{{ .Get "width" }}px"{{ end }}
|
||||
{{ if .Get "caption"}} title="{{ .Get "caption"}}"{{ end }}>
|
||||
{{ if .Get "caption"}}
|
||||
</picture>
|
||||
<figcaption>{{ .Get "caption" }}</figcaption>
|
||||
</figure>
|
||||
{{ end }}
|
||||
Reference in new issue
Block a user