Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2019-07-27 13:04:10 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-07-27 13:04:57 +0300
commit7c1febd66ab49de2102ab02e258ca8752ed795f9 (patch)
tree1e046614bd398e499a62f7a198ebd02f2ac71b33
parentea392d34fd9b936d51fd3ba1d4ce1e9cdb32445d (diff)
Parse Markdown in summary in page frontmatter
It was impossible to use Markdown in the summary variable in the page frontmatter. Markdown inside this variable is now parsed. See #23
-rw-r--r--layouts/_default/summary.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 14f988c..daa91af 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -5,7 +5,7 @@
<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>