diff options
author | Romeo Disca <romeo.disca@gmail.com> | 2019-04-26 16:48:41 +0200 |
---|---|---|
committer | Romeo Disca <romeo.disca@gmail.com> | 2019-04-26 16:48:41 +0200 |
commit | 92a53c5a7a628abc5df0856118d05dc84d9e365c (patch) | |
tree | 3110bb6151852f6f0c716ef18486df0c21a334c6 /themes | |
parent | 20484791139980073ca6179cd3978eb6e2258a51 (diff) |
display summary
Diffstat (limited to 'themes')
-rw-r--r-- | themes/rusticus/archetypes/news.md | 3 | ||||
-rw-r--r-- | themes/rusticus/layouts/partials/home/tax-news.html | 5 |
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>
|