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

github.com/htdvisser/hugo-base16-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHylke Visser <htdvisser@gmail.com>2015-12-20 18:26:32 +0300
committerHylke Visser <htdvisser@gmail.com>2015-12-20 18:26:32 +0300
commitbca46856e432d853310010b3cbb2bd030a8c5255 (patch)
tree03af1e9b0c4bad136286c6c56b2e12ea96e98c7d
parent1ffa9d1502516ccb8d30674fc51b29935748dea1 (diff)
Only show Read More when necessary
Closes #4
-rw-r--r--layouts/partials/article-list-item.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/article-list-item.html b/layouts/partials/article-list-item.html
index 788c84c..37696c5 100644
--- a/layouts/partials/article-list-item.html
+++ b/layouts/partials/article-list-item.html
@@ -8,6 +8,6 @@
{{ end }}
</div>
<section class="summary">
- {{ .Summary }} <a href="{{ .RelPermalink }}">Read More...</a>
+ {{ .Summary }} {{ if .Truncated }} <a href="{{ .RelPermalink }}">Read More...</a>{{ end }}
</section>
</article>