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:
authorKuba <kuba.serafinowski@gmail.com>2019-07-28 20:54:00 +0300
committerKuba <kuba.serafinowski@gmail.com>2019-07-31 23:09:20 +0300
commitee464457e321f95b9f1611817e1c0d6309cb68d2 (patch)
treee5c9d624ae2a55140cd39da75c75bff89f29f3b0 /layouts
parent4d16e96427414922b90f5a87004d496f520e33b1 (diff)
use proper ellipsis when truncating
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/summary.html4
-rwxr-xr-xlayouts/services/summary.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index a37595b..5f9a9e9 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -2,5 +2,5 @@
<h2>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
- {{ .Content | truncate 120 "..." }}
-</div> \ No newline at end of file
+ {{ .Content | truncate 120 "…" }}
+</div>
diff --git a/layouts/services/summary.html b/layouts/services/summary.html
index 49d8bfd..eda5c9b 100755
--- a/layouts/services/summary.html
+++ b/layouts/services/summary.html
@@ -3,6 +3,6 @@
<h2 class="service-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
- <p>{{ .Content | plainify | truncate 120 "..." }}</p>
+ <p>{{ .Content | plainify | truncate 120 "…" }}</p>
</div>
</div>