fixes shortcode 'fig'

This commit is contained in:
Huy Tran 2018-07-30 08:17:05 +10:00
parent 7cd224570b
commit e42d1eb815

View file

@ -33,9 +33,7 @@
<span class="img--caption"> <span class="img--caption">
Figure {{ $.Page.Scratch.Get "fig" }}. {{ $fig.Get "caption" | markdownify | plainify }} Figure {{ $.Page.Scratch.Get "fig" }}. {{ $fig.Get "caption" | markdownify | plainify }}
{{ if .Get "attr" }} {{ if .Get "attr" }}
[{{ with .Get "attrlink"}}<a href="{{ . | markdownify }}">{{ end }} [{{- with .Get "attrlink"}}<a href="{{ . }}">{{ end }}{{ .Get "attr" | markdownify }}{{ if .Get "attrlink"}}</a>{{ end -}}]
{{ .Get "attr" | markdownify }}
{{ if .Get "attrlink"}}</a>{{ end }}]
{{ end }} {{ end }}
</span> </span>
</figcaption> </figcaption>