replace missing markdownify by RenderString

This commit is contained in:
Robert Kaussow 2021-02-21 14:27:54 +01:00
parent 50a56fcd75
commit 81988b477a
No known key found for this signature in database
GPG key ID: 65362AE74AF98B61
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ Attributes:
### Include \*.md file ### Include \*.md file
Included markdown files will be rendered using the `markdownify` filter. Included markdown files will be rendered using the `RenderString` [function](https://gohugo.io/functions/renderstring/).
{{< hint warning >}} {{< hint warning >}}
**Location of markdown files**\ **Location of markdown files**\

View file

@ -33,7 +33,7 @@
{{ end }}/> {{ end }}/>
</a> </a>
{{ with $caption }} {{ with $caption }}
<figcaption>{{ . }}{{ with $source.Params.credits }} ({{ . | markdownify }}){{ end }}</figcaption> <figcaption>{{ . }}{{ with $source.Params.credits }} ({{ . | $.Page.RenderString }}){{ end }}</figcaption>
{{ end }} {{ end }}
</figure> </figure>
</div> </div>

View file

@ -1,4 +1,4 @@
{{$file := .Get "file"}} {{ $file := .Get "file" }}
<div class="gdoc-include"> <div class="gdoc-include">
{{- if eq (.Get "markdown") "true" -}} {{- if eq (.Get "markdown") "true" -}}
{{- $file | readFile | $.Page.RenderString -}} {{- $file | readFile | $.Page.RenderString -}}