Skip to content

Commit

Permalink
Parse Markdown in summary in page frontmatter
Browse files Browse the repository at this point in the history
It was impossible to use Markdown in the summary variable in the page
frontmatter. Markdown inside this variable is now parsed.

See #23
  • Loading branch information
EmielH committed Jul 27, 2019
1 parent ea392d3 commit 7c1febd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h1 class="catalogue-title">{{ .Title }}</h1>
<div class="catalogue-line"></div>

<p>
{{ if isset .Params "summary" }}{{ .Params.Summary }}{{ else }}{{ .Summary }}{{ end }}
{{ if isset .Params "summary" }}{{ .Params.Summary | markdownify }}{{ else }}{{ .Summary }}{{ end }}
</p>
</div>
</a>

0 comments on commit 7c1febd

Please sign in to comment.