From 20484791139980073ca6179cd3978eb6e2258a51 Mon Sep 17 00:00:00 2001 From: Romeo Disca Date: Fri, 26 Apr 2019 16:36:19 +0200 Subject: refactor news --- config.yml | 2 -- content/news/news1.md | 5 ++--- content/news/news2.md | 1 - content/news/news3.md | 1 - content/news/news4.md | 2 +- themes/rusticus/archetypes/news.md | 3 +-- themes/rusticus/layouts/partials/home/tax-news.html | 2 +- 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 @@