From 9a17016119e294baa3b4d941c5d70ff65b0545b7 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 13 Apr 2020 10:00:55 +0200 Subject: [PATCH] =?UTF-8?q?Eigene=20Seite=20f=C3=BCr=20Neuigkeiten=20jeden?= =?UTF-8?q?=20Jahres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/news/2009/_index.md | 4 +++ content/news/2010/_index.md | 4 +++ content/news/2011/_index.md | 4 +++ content/news/2012/_index.md | 4 +++ content/news/2013/_index.md | 4 +++ content/news/2014/_index.md | 4 +++ content/news/2015/_index.md | 4 +++ content/news/2016/_index.md | 4 +++ content/news/2017/_index.md | 4 +++ content/news/2018/_index.md | 4 +++ content/news/2019/_index.md | 4 +++ content/news/2020/_index.md | 4 +++ themes/fossgis/assets/css/style.css | 12 +++++++++ themes/fossgis/layouts/news/year.html | 35 +++++++++++++++++++++++++++ 14 files changed, 95 insertions(+) create mode 100644 content/news/2009/_index.md create mode 100644 content/news/2010/_index.md create mode 100644 content/news/2011/_index.md create mode 100644 content/news/2012/_index.md create mode 100644 content/news/2013/_index.md create mode 100644 content/news/2014/_index.md create mode 100644 content/news/2015/_index.md create mode 100644 content/news/2016/_index.md create mode 100644 content/news/2017/_index.md create mode 100644 content/news/2018/_index.md create mode 100644 content/news/2019/_index.md create mode 100644 content/news/2020/_index.md create mode 100644 themes/fossgis/layouts/news/year.html diff --git a/content/news/2009/_index.md b/content/news/2009/_index.md new file mode 100644 index 0000000..de2ecc0 --- /dev/null +++ b/content/news/2009/_index.md @@ -0,0 +1,4 @@ +--- +title: "2009" +layout: year +--- diff --git a/content/news/2010/_index.md b/content/news/2010/_index.md new file mode 100644 index 0000000..e2ac5e6 --- /dev/null +++ b/content/news/2010/_index.md @@ -0,0 +1,4 @@ +--- +title: "2010" +layout: year +--- diff --git a/content/news/2011/_index.md b/content/news/2011/_index.md new file mode 100644 index 0000000..b26071f --- /dev/null +++ b/content/news/2011/_index.md @@ -0,0 +1,4 @@ +--- +title: "2011" +layout: year +--- diff --git a/content/news/2012/_index.md b/content/news/2012/_index.md new file mode 100644 index 0000000..16fd3cf --- /dev/null +++ b/content/news/2012/_index.md @@ -0,0 +1,4 @@ +--- +title: "2012" +layout: year +--- diff --git a/content/news/2013/_index.md b/content/news/2013/_index.md new file mode 100644 index 0000000..31c2681 --- /dev/null +++ b/content/news/2013/_index.md @@ -0,0 +1,4 @@ +--- +title: "2013" +layout: year +--- diff --git a/content/news/2014/_index.md b/content/news/2014/_index.md new file mode 100644 index 0000000..7c59b07 --- /dev/null +++ b/content/news/2014/_index.md @@ -0,0 +1,4 @@ +--- +title: "2014" +layout: year +--- diff --git a/content/news/2015/_index.md b/content/news/2015/_index.md new file mode 100644 index 0000000..21cab45 --- /dev/null +++ b/content/news/2015/_index.md @@ -0,0 +1,4 @@ +--- +title: "2015" +layout: year +--- diff --git a/content/news/2016/_index.md b/content/news/2016/_index.md new file mode 100644 index 0000000..c187d45 --- /dev/null +++ b/content/news/2016/_index.md @@ -0,0 +1,4 @@ +--- +title: "2016" +layout: year +--- diff --git a/content/news/2017/_index.md b/content/news/2017/_index.md new file mode 100644 index 0000000..ad7eab9 --- /dev/null +++ b/content/news/2017/_index.md @@ -0,0 +1,4 @@ +--- +title: "2017" +layout: year +--- diff --git a/content/news/2018/_index.md b/content/news/2018/_index.md new file mode 100644 index 0000000..cb507b1 --- /dev/null +++ b/content/news/2018/_index.md @@ -0,0 +1,4 @@ +--- +title: "2018" +layout: year +--- diff --git a/content/news/2019/_index.md b/content/news/2019/_index.md new file mode 100644 index 0000000..b55354e --- /dev/null +++ b/content/news/2019/_index.md @@ -0,0 +1,4 @@ +--- +title: "2019" +layout: year +--- diff --git a/content/news/2020/_index.md b/content/news/2020/_index.md new file mode 100644 index 0000000..35b5623 --- /dev/null +++ b/content/news/2020/_index.md @@ -0,0 +1,4 @@ +--- +title: "2020" +layout: year +--- diff --git a/themes/fossgis/assets/css/style.css b/themes/fossgis/assets/css/style.css index 241bd6e..78af117 100644 --- a/themes/fossgis/assets/css/style.css +++ b/themes/fossgis/assets/css/style.css @@ -157,3 +157,15 @@ footer { border-bottom: 1px solid grey; } +div.news-year-list { + margin-top: 4px; +} + +div.news-year-list span, div.news-year-list a { + border: 1px solid #ccc; + border-radius: 3px; + padding: 2px; + margin-right: 4px; + text-decoration: none; +} + diff --git a/themes/fossgis/layouts/news/year.html b/themes/fossgis/layouts/news/year.html new file mode 100644 index 0000000..f561fe0 --- /dev/null +++ b/themes/fossgis/layouts/news/year.html @@ -0,0 +1,35 @@ +{{ define "title" }} + Neuigkeiten {{ .Title }} – {{ .Site.Title }} +{{ end }} + +{{ define "main" }} + + {{ $year := int .Title }} +
+ {{ range seq now.Year 2009 }} + {{ if eq . $year }} + {{ . }} + {{- else -}} + {{ . }} + {{- end -}} + {{ end }} +
+

Neuigkeiten {{ $year }}

+ {{ range where .Site.Pages "Section" "news" }} + {{ if eq .Date.Year $year }} + + {{ end }} + {{ end }} +
+{{ end }}