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

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Boothe <git@rootwork.org>2022-05-16 03:47:52 +0300
committerGitHub <noreply@github.com>2022-05-16 03:47:52 +0300
commit26c9497e1f906afaba917e5ebbc8e8c3693f6279 (patch)
tree30aaf03d9a7de2e962010ead4c9ef2632c8e8a97
parentc97c2f2d52c43abbdedfb353730ce358a64a0489 (diff)
run summaries through markdownify
-rw-r--r--layouts/partials/excerpt.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/excerpt.html b/layouts/partials/excerpt.html
index 0e2c355..246276a 100644
--- a/layouts/partials/excerpt.html
+++ b/layouts/partials/excerpt.html
@@ -22,9 +22,9 @@
{{ $summary = .Params.abstract }}
{{- end }}
{{ if not ( strings.Contains $summary "<p>" ) }}
- <p>{{ $summary }}</p>
+ <p>{{ $summary | markdownify }}</p>
{{ else }}
- {{ $summary }}
+ {{ $summary | markdownify }}
{{ end }}
<br>
{{- $r := T "read_more" }}