summaryrefslogtreecommitdiffstats
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
parent33454b93629a0f9c6d8058414eb62b2371d6c595 (diff)
refactor news
-rw-r--r--config.yml2
-rw-r--r--content/news/news1.md5
-rw-r--r--content/news/news2.md1
-rw-r--r--content/news/news3.md1
-rw-r--r--content/news/news4.md2
-rw-r--r--themes/rusticus/archetypes/news.md3
-rw-r--r--themes/rusticus/layouts/partials/home/tax-news.html2
7 files changed, 5 insertions, 11 deletions
diff --git a/config.yml b/config.yml
index 8ac6fbe..816fcf1 100644
--- a/config.yml
+++ b/config.yml
@@ -6,9 +6,7 @@ title: risticus.io
theme: rusticus
taxonomies:
- category: categories
tag: tags
- information: information
params:
diff --git a/content/news/news1.md b/content/news/news1.md
index 3efd138..85414a9 100644
--- a/content/news/news1.md
+++ b/content/news/news1.md
@@ -4,12 +4,11 @@ date: 2019-04-15T19:49:21+02:00
expiryDate: 2019-04-30
draft: true
+tags:
+
params:
summary: This is a summary
-tags: ["bla"]
-information: ["news"]
-
---
diff --git a/content/news/news2.md b/content/news/news2.md
index 54aad4b..629cfd0 100644
--- a/content/news/news2.md
+++ b/content/news/news2.md
@@ -5,7 +5,6 @@ expiryDate: 2019-05-29
draft: true
tags:
-information: ["news"]
params:
summary: This is a summary
diff --git a/content/news/news3.md b/content/news/news3.md
index ce75272..e853331 100644
--- a/content/news/news3.md
+++ b/content/news/news3.md
@@ -5,7 +5,6 @@ expiryDate: 2019-02-11
draft: true
tags:
-information: ["news"]
params:
summary: This is a summary
diff --git a/content/news/news4.md b/content/news/news4.md
index c6427d5..dda61b4 100644
--- a/content/news/news4.md
+++ b/content/news/news4.md
@@ -1,10 +1,10 @@
---
title: "News4"
date: 2019-04-15T19:49:40+02:00
+expiryDate: 2028-10-23
draft: true
tags:
-information:
params:
summary: This is a summary
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>