diff options
author | Skiz <skiznet@aol.com> | 2024-09-02 14:05:16 -0400 |
---|---|---|
committer | Skiz <skiznet@aol.com> | 2024-09-02 14:05:16 -0400 |
commit | c0d4da4fa49d6775fd37f2f9a69bc87234370def (patch) | |
tree | d2f3a9a522ea86d87558ec7f75a2be009cae5ad5 /themes/vapor/layouts/shortcodes/img.html | |
parent | e1e30d98328f77f2b3bf404a884b52af814f21e8 (diff) |
Installed "schizo" theme and named it "vapor"
Diffstat (limited to 'themes/vapor/layouts/shortcodes/img.html')
-rw-r--r-- | themes/vapor/layouts/shortcodes/img.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/vapor/layouts/shortcodes/img.html b/themes/vapor/layouts/shortcodes/img.html new file mode 100644 index 0000000..ff7959b --- /dev/null +++ b/themes/vapor/layouts/shortcodes/img.html @@ -0,0 +1,20 @@ +<!-- + class: class of the figure + link: url the image directs to + alt: alternative text + caption: caption + mouse: what the image says when moused over ("title" in HTML) +--> +<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}> + {{- with .Get "link"}}<a href="{{.}}">{{ end -}} + <img src="{{ .Get "src" }}" + {{- with .Get "mouse" }} title="{{.}}"{{ end -}} + {{- with .Get "alt" }} alt="{{.}}"{{ end -}} + > + {{- if .Get "link"}}</a>{{ end -}} + {{- with .Get "caption" -}} + <figcaption> + {{- . -}} + </figcaption> + {{- end -}} +</figure> |