Replace last usages of markdownify with .RenderString.
This commit is contained in:
parent
3ca11ccb8b
commit
001f71cacd
6 changed files with 8 additions and 8 deletions
|
|
@ -756,7 +756,7 @@ Add a search form for the site, [see more above](#search).
|
||||||
|
|
||||||
### Wrapper
|
### Wrapper
|
||||||
|
|
||||||
A simple, but useful, shortcode to wrap content in a div with a class. The content will be run through "markdownify".
|
A simple, but useful, shortcode to wrap content in a div with a class. The content can use markdown.
|
||||||
|
|
||||||
```
|
```
|
||||||
{{< wrapper class-name-you-want >}}
|
{{< wrapper class-name-you-want >}}
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
||||||
<p>{{ with site.Copyright }}{{ . | markdownify }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
|
<p>{{ with site.Copyright }}{{ . | site.Home.RenderString }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
|
||||||
{{ with $.Param "footer" }}<p>{{ . | markdownify }}</p>{{ end }}
|
{{ with $.Param "footer" }}<p>{{ . | site.Home.RenderString }}</p>{{ end }}
|
||||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,6 @@
|
||||||
<source src="{{ $src }}" {{ with $type }}type="{{ . }}"{{ end }}>
|
<source src="{{ $src }}" {{ with $type }}type="{{ . }}"{{ end }}>
|
||||||
</audio>
|
</audio>
|
||||||
{{ with $caption -}}
|
{{ with $caption -}}
|
||||||
<figcaption>{{ . | markdownify }}</figcaption>
|
<figcaption>{{ . | .Page.RenderString }}</figcaption>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
|
||||||
|
|
@ -100,8 +100,8 @@
|
||||||
{{ if or $title $caption $attr -}}
|
{{ if or $title $caption $attr -}}
|
||||||
<figcaption>
|
<figcaption>
|
||||||
{{ with $title }}<strong>{{ . }}</strong><br>{{ end -}}
|
{{ with $title }}<strong>{{ . }}</strong><br>{{ end -}}
|
||||||
{{- $caption | markdownify }}{{ if and $caption $attr }} {{ end -}}
|
{{- $caption | .Page.RenderString }}{{ if and $caption $attr }} {{ end -}}
|
||||||
{{ with $attrlink }}<a href="{{ . }}">{{ end }}{{ $attr | markdownify }}{{ if $attrlink }}</a>{{ end -}}
|
{{ with $attrlink }}<a href="{{ . }}">{{ end }}{{ $attr | .Page.RenderString }}{{ if $attrlink }}</a>{{ end -}}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
{{- if $link }}</a>{{ end }}
|
{{- if $link }}</a>{{ end }}
|
||||||
{{ if $caption -}}
|
{{ if $caption -}}
|
||||||
<figcaption>
|
<figcaption>
|
||||||
{{ $caption | markdownify -}}
|
{{ $caption | .Page.RenderString -}}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,6 @@
|
||||||
<source src="{{ $src }}" {{ with $type }}type="{{ . }}"{{ end }}>
|
<source src="{{ $src }}" {{ with $type }}type="{{ . }}"{{ end }}>
|
||||||
</video>
|
</video>
|
||||||
{{ with $caption -}}
|
{{ with $caption -}}
|
||||||
<figcaption>{{ . | markdownify }}</figcaption>
|
<figcaption>{{ . | .Page.RenderString }}</figcaption>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue