summaryrefslogtreecommitdiffstats
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
parent20484791139980073ca6179cd3978eb6e2258a51 (diff)
display summary
-rw-r--r--content/news/news1.md3
-rw-r--r--content/news/news2.md3
-rw-r--r--content/news/news3.md3
-rw-r--r--content/news/news4.md3
-rw-r--r--themes/rusticus/archetypes/news.md3
-rw-r--r--themes/rusticus/layouts/partials/home/tax-news.html5
6 files changed, 9 insertions, 11 deletions
diff --git a/content/news/news1.md b/content/news/news1.md
index 85414a9..40041af 100644
--- a/content/news/news1.md
+++ b/content/news/news1.md
@@ -6,8 +6,7 @@ draft: true
tags:
-params:
- summary: This is a summary
+summary: This is a summary
---
diff --git a/content/news/news2.md b/content/news/news2.md
index 629cfd0..b358c58 100644
--- a/content/news/news2.md
+++ b/content/news/news2.md
@@ -6,7 +6,6 @@ draft: true
tags:
-params:
- summary: This is a summary
+summary: This is a summary
---
diff --git a/content/news/news3.md b/content/news/news3.md
index e853331..9111b72 100644
--- a/content/news/news3.md
+++ b/content/news/news3.md
@@ -6,7 +6,6 @@ draft: true
tags:
-params:
- summary: This is a summary
+summary: This is a summary
---
diff --git a/content/news/news4.md b/content/news/news4.md
index dda61b4..44e9cac 100644
--- a/content/news/news4.md
+++ b/content/news/news4.md
@@ -6,7 +6,6 @@ draft: true
tags:
-params:
- summary: This is a summary
+summary: This is a summary
---
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>