1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 12:15:34 -04:00

markdownify image captions

This commit is contained in:
2019-12-19 13:04:02 -05:00
parent 7b3f045231
commit 2465903ff5
22 changed files with 79 additions and 74 deletions

View File

@@ -30,7 +30,7 @@
<p class="image">
<amp-img
{{- with .Get "alt" }} alt="{{ . | safeHTMLAttr }}" title="{{ . | safeHTMLAttr }}"{{ end }}
{{- with .Inner }} alt="{{ . | plainify | safeHTMLAttr }}" title="{{ . | plainify | safeHTMLAttr }}"{{ end }}
{{- with .Inner }} alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | safeHTMLAttr }}"{{ end }}
src="{{ $image.Permalink }}"
width="{{ $displayWidth }}"
height="{{ $displayHeight }}"
@@ -38,4 +38,4 @@
</amp-img>
</p>
{{- with .Inner }}<p class="caption">{{ . | safeHTML }}</p>{{ end -}}
{{- with .Inner }}<p class="caption">{{ . | markdownify | safeHTML }}</p>{{ end -}}