aboutsummaryrefslogtreecommitdiff
path: root/generators/hugo/themes/tdro/layouts
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-08-01 22:56:00 -0400
committerThedro Neely <thedroneely@gmail.com>2019-08-01 22:56:00 -0400
commitf74789154701305c71bdddd6d8fb0ffee92824ec (patch)
tree5f335ad4cf1b04bcfc4b1f2b657c2d26de43abbf /generators/hugo/themes/tdro/layouts
parenteded2936a53c6a0a22f4ed9fdb54e0e203822473 (diff)
downloadthedroneely.com-f74789154701305c71bdddd6d8fb0ffee92824ec.tar.gz
thedroneely.com-f74789154701305c71bdddd6d8fb0ffee92824ec.tar.bz2
thedroneely.com-f74789154701305c71bdddd6d8fb0ffee92824ec.zip
hugo/layouts/_default/single.html: Fix space in ellipsis
Diffstat (limited to 'generators/hugo/themes/tdro/layouts')
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/single.html2
-rw-r--r--generators/hugo/themes/tdro/layouts/_default/summary.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/single.html b/generators/hugo/themes/tdro/layouts/_default/single.html
index e26de73..4902630 100644
--- a/generators/hugo/themes/tdro/layouts/_default/single.html
+++ b/generators/hugo/themes/tdro/layouts/_default/single.html
@@ -53,7 +53,7 @@
<article class="tile is-child box is-shadowless">
<h2><a href="{{ .RelPermalink }}" title="{{ .Title }}" class="serif is-size-4 is-block has-margin-bottom-md">{{ .Title }}</a></h2>
<div class="content">
- <p>{{ .Summary | truncate 100 }}</p>
+ <p>{{ truncate 100 "..." .Summary }}</p>
</div>
</article>
</div>
diff --git a/generators/hugo/themes/tdro/layouts/_default/summary.html b/generators/hugo/themes/tdro/layouts/_default/summary.html
index 7c4f8e9..ead4ba1 100644
--- a/generators/hugo/themes/tdro/layouts/_default/summary.html
+++ b/generators/hugo/themes/tdro/layouts/_default/summary.html
@@ -25,7 +25,7 @@
</p>
</header>
- <p class="article__summary">{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}</p>
+ <p class="article__summary">{{ if .Params.summary }}{{ truncate 75 "..." .Params.summary }}{{ else }}{{ truncate 75 "..." .Summary}}{{ end }}</p>
<p><a class="underline" href='{{ .Permalink }}'>Continue reading ({{ .FuzzyWordCount }} words)</a></p>
</article>
</div>