Skip to content

Commit

Permalink
replace missing markdownify by RenderString
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Feb 21, 2021
1 parent 50a56fc commit 81988b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exampleSite/content/shortcodes/includes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Attributes:

### 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 >}}
**Location of markdown files**\
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/img.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
{{ end }}/>
</a>
{{ with $caption }}
<figcaption>{{ . }}{{ with $source.Params.credits }} ({{ . | markdownify }}){{ end }}</figcaption>
<figcaption>{{ . }}{{ with $source.Params.credits }} ({{ . | $.Page.RenderString }}){{ end }}</figcaption>
{{ end }}
</figure>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/include.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{$file := .Get "file"}}
{{ $file := .Get "file" }}
<div class="gdoc-include">
{{- if eq (.Get "markdown") "true" -}}
{{- $file | readFile | $.Page.RenderString -}}
Expand Down

0 comments on commit 81988b4

Please sign in to comment.