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

github.com/zerostaticthemes/hugo-serif-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchetankothari <chetankothari@users.noreply.github.com>2022-08-17 12:26:47 +0300
committerchetankothari <chetankothari@users.noreply.github.com>2022-08-17 12:28:51 +0300
commit364dbc06c5954f614e73f0ac3df7f48e16637f82 (patch)
tree297a151940eda46c860c8029e549cfa517e12d00 /layouts
parentc382aef836dda4179ba78e26f9fde0a71b2721cf (diff)
Allow services summary truncation to be configurable
Diffstat (limited to 'layouts')
-rw-r--r--layouts/services/summary.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/services/summary.html b/layouts/services/summary.html
index bccd45e..4e64cc7 100644
--- a/layouts/services/summary.html
+++ b/layouts/services/summary.html
@@ -3,6 +3,6 @@
<h2 class="service-title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h2>
- <p>{{ .Content | plainify | htmlUnescape | truncate 120 "…" }}</p>
+ <p>{{ .Content | plainify | htmlUnescape | truncate (.Site.Params.services.summary_truncate | default 120 ) "…" }}</p>
</div>
</div>