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

github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/posts/list.html')
-rw-r--r--layouts/partials/posts/list.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/posts/list.html b/layouts/partials/posts/list.html
index 72c4063..8c6ec50 100644
--- a/layouts/partials/posts/list.html
+++ b/layouts/partials/posts/list.html
@@ -12,7 +12,11 @@
{{ if .Params.image }}
<a href="{{ .Permalink }}" class="image fit"><img src="{{ .Params.image | relURL }}" alt="" /></a>
{{ end }}
+ {{ if .Description }}
<p>{{ .Description }}</p>
+ {{ else }}
+ <p>{{ .Summary }}</p>
+ {{ end }}
<ul class="actions">
<li><a href="{{ .Permalink }}" class="button">{{ $data.post.linktext }}</a></li>
</ul>