diff options
author | chetankothari <chetankothari@users.noreply.github.com> | 2022-08-17 12:26:47 +0300 |
---|---|---|
committer | chetankothari <chetankothari@users.noreply.github.com> | 2022-08-17 12:28:51 +0300 |
commit | 364dbc06c5954f614e73f0ac3df7f48e16637f82 (patch) | |
tree | 297a151940eda46c860c8029e549cfa517e12d00 /layouts | |
parent | c382aef836dda4179ba78e26f9fde0a71b2721cf (diff) |
Allow services summary truncation to be configurable
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/services/summary.html | 2 |
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> |