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

github.com/salsysd/hugo-assembly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSal Valverde <x84@sal.sh>2018-07-17 04:21:57 +0300
committerSal Valverde <x84@sal.sh>2018-07-17 04:21:57 +0300
commitd306316bfb5cee920f097d9e4ca2a37b83ccd1b0 (patch)
tree5080d319ab79b78c24056963d42172588699a51c
parentf369773cde89e77f9f6102423f1c84a82f84da80 (diff)
pipe description of hero thru markdownify() to format html
-rw-r--r--layouts/partials/hero.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index ce4b3a0..925fa9f 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -4,9 +4,10 @@
<h2>{{ .title }}</h2>
<span class="byline">{{ .subtitle }}</span>
</div>
- <p>{{ .description }}</p>
+ <p>{{ .description | markdownify }}</p>
<ul class="actions">
<li><a href="#" class="button">{{ .button_text }}</a></li>
</ul>
{{end}}
</div>
+