summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorRomeo Disca <romeo.disca@gmail.com>2019-04-26 16:36:19 +0200
committerRomeo Disca <romeo.disca@gmail.com>2019-04-26 16:36:19 +0200
commit20484791139980073ca6179cd3978eb6e2258a51 (patch)
tree24525913de791dd90e6a3fd06fed52a9350f906e /themes
parent33454b93629a0f9c6d8058414eb62b2371d6c595 (diff)
refactor news
Diffstat (limited to 'themes')
-rw-r--r--themes/rusticus/archetypes/news.md3
-rw-r--r--themes/rusticus/layouts/partials/home/tax-news.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/themes/rusticus/archetypes/news.md b/themes/rusticus/archetypes/news.md
index 20ebf0b..da468d0 100644
--- a/themes/rusticus/archetypes/news.md
+++ b/themes/rusticus/archetypes/news.md
@@ -1,11 +1,10 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
-expiryDate:
+expiryDate: {{ .Date }}
draft: true
tags:
-information: ["news"]
params:
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 d997be6..c100881 100644
--- a/themes/rusticus/layouts/partials/home/tax-news.html
+++ b/themes/rusticus/layouts/partials/home/tax-news.html
@@ -1,7 +1,7 @@
<ul>
- {{ range first 3 .Site.Taxonomies.information.news.Pages.ByExpiryDate }}
+ {{ range first 3 (.Site.GetPage "section" "news").Pages.ByExpiryDate }}
<li hugo-nav="{{ .RelPermalink}}">
<a href="{{ .Permalink}}">{{ .LinkTitle }}</a>
</li>