summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorRomeo Disca <romeo.disca@gmail.com>2019-04-26 16:48:41 +0200
committerRomeo Disca <romeo.disca@gmail.com>2019-04-26 16:48:41 +0200
commit92a53c5a7a628abc5df0856118d05dc84d9e365c (patch)
tree3110bb6151852f6f0c716ef18486df0c21a334c6 /themes
parent20484791139980073ca6179cd3978eb6e2258a51 (diff)
display summary
Diffstat (limited to 'themes')
-rw-r--r--themes/rusticus/archetypes/news.md3
-rw-r--r--themes/rusticus/layouts/partials/home/tax-news.html5
2 files changed, 5 insertions, 3 deletions
diff --git a/themes/rusticus/archetypes/news.md b/themes/rusticus/archetypes/news.md
index da468d0..75e9653 100644
--- a/themes/rusticus/archetypes/news.md
+++ b/themes/rusticus/archetypes/news.md
@@ -6,7 +6,6 @@ draft: true
tags:
-params:
- summary: This is a summary
+summary: This is a summary
---
diff --git a/themes/rusticus/layouts/partials/home/tax-news.html b/themes/rusticus/layouts/partials/home/tax-news.html
index c100881..4242009 100644
--- a/themes/rusticus/layouts/partials/home/tax-news.html
+++ b/themes/rusticus/layouts/partials/home/tax-news.html
@@ -3,7 +3,10 @@
<ul>
{{ range first 3 (.Site.GetPage "section" "news").Pages.ByExpiryDate }}
<li hugo-nav="{{ .RelPermalink}}">
- <a href="{{ .Permalink}}">{{ .LinkTitle }}</a>
+ <a href="{{ .Permalink}}">
+ <h3>{{ .LinkTitle }}</h3>
+ <p>{{ .Summary }}</p>
+ </a>
</li>
{{ end }}
</ul>