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">
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue