blog

Source for my blog
git clone git://git.konyahin.xyz/blog
Log | Files | Refs

img.html (545B)


      1 <!--
      2 	class: class of the figure
      3 	link: url the image directs to
      4 	alt: alternative text
      5 	caption: caption
      6 	mouse: what the image says when moused over ("title" in HTML)
      7 -->
      8 <figure {{ with .Get "class" }}class="{{.}}"{{ end -}}>
      9 	{{- with .Get "link"}}<a href="{{.}}">{{ end -}}
     10 	<img src="{{ .Get "src" }}"
     11 	     {{- with .Get "mouse" }} title="{{.}}"{{ end -}}
     12 	     {{- with .Get "alt" }} alt="{{.}}"{{ end -}}
     13 	>
     14 	{{- if .Get "link"}}</a>{{ end -}}
     15 	{{- with .Get "caption" -}}
     16 	<figcaption>
     17 	{{- . -}}
     18 	</figcaption>
     19 	{{- end -}}
     20 </figure>