auto-generate image captions
This commit is contained in:
@@ -4,10 +4,11 @@
|
||||
{{ $imgClass := .Get 2 }}
|
||||
|
||||
<a href="{{ $img.RelPermalink }}">
|
||||
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}" class="{{ $imgClass }}">
|
||||
{{ with .Inner }}
|
||||
<figcaption>
|
||||
{{ . }}
|
||||
</figcaption>
|
||||
{{ end }}
|
||||
<img
|
||||
src="{{ $img.RelPermalink }}"
|
||||
width="{{ $img.Width }}"
|
||||
height="{{ $img.Height }}"
|
||||
{{ with $imgClass }}class="{{ $imgClass }}"{{ end }}
|
||||
{{ with .Inner }}alt="{{ . }}"{{ end }}
|
||||
>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user