Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/news/2009/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2009"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2010/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2010"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2011/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2011"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2012/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2012"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2013/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2013"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2014/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2014"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2015/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2015"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2016/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2016"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2017/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2017"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2018/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2018"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2019/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2019"
layout: year
---
4 changes: 4 additions & 0 deletions content/news/2020/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "2020"
layout: year
---
12 changes: 12 additions & 0 deletions themes/fossgis/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

35 changes: 35 additions & 0 deletions themes/fossgis/layouts/news/year.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{{ define "title" }}
Neuigkeiten {{ .Title }} – {{ .Site.Title }}
{{ end }}

{{ define "main" }}
<content id="main-content">
{{ $year := int .Title }}
<div class="news-year-list">
{{ range seq now.Year 2009 }}
{{ if eq . $year }}
<span>{{ . }}</span>
{{- else -}}
<a href="/news/{{ . }}/">{{ . }}</a>
{{- end -}}
{{ end }}
</div>
<h1>Neuigkeiten {{ $year }}</h1>
{{ range where .Site.Pages "Section" "news" }}
{{ if eq .Date.Year $year }}
<article class="row">
<div class="col-sm-2 last-xs first-sm article-meta">
{{ .Date.Format "02.01.2006" }}<br>
{{ .Params.Author }}
</div>

<div class="col-xs-12 col-sm-10">
<a href="{{ .RelPermalink }}"><h2>{{ .Title }}</h2></a>
{{ .Summary }}
<br><a href="{{ .RelPermalink }}">Ganzen Beitrag lesen »</a>
</div>
</article>
{{ end }}
{{ end }}
</content>
{{ end }}