fixes shortcode 'fig'
This commit is contained in:
parent
7cd224570b
commit
e42d1eb815
1 changed files with 1 additions and 3 deletions
|
@ -33,9 +33,7 @@
|
|||
<span class="img--caption">
|
||||
Figure {{ $.Page.Scratch.Get "fig" }}. {{ $fig.Get "caption" | markdownify | plainify }}
|
||||
{{ if .Get "attr" }}
|
||||
[{{ with .Get "attrlink"}}<a href="{{ . | markdownify }}">{{ end }}
|
||||
{{ .Get "attr" | markdownify }}
|
||||
{{ if .Get "attrlink"}}</a>{{ end }}]
|
||||
[{{- with .Get "attrlink"}}<a href="{{ . }}">{{ end }}{{ .Get "attr" | markdownify }}{{ if .Get "attrlink"}}</a>{{ end -}}]
|
||||
{{ end }}
|
||||
</span>
|
||||
</figcaption>
|
||||
|
|
Loading…
Reference in a new issue