diff --git a/content/page/aktuell/archiv/_index.md b/content/page/aktuell/archiv/_index.md index 86eab89..7c1bdfa 100644 --- a/content/page/aktuell/archiv/_index.md +++ b/content/page/aktuell/archiv/_index.md @@ -3,6 +3,7 @@ title: "Archiv" date: 2023-01-20T16:27:40+01:00 draft: false # type: home +layout: archive menu: main: weight: 4 diff --git a/themes/tsc_vfl/assets/css/main.scss b/themes/tsc_vfl/assets/css/main.scss index d19d11f..64da93d 100644 --- a/themes/tsc_vfl/assets/css/main.scss +++ b/themes/tsc_vfl/assets/css/main.scss @@ -27,6 +27,12 @@ $gap_columns_persons: 25px; } } +@mixin mouse-available { + @media screen and (pointer: fine) { + @content; + } +} + /* main styling */ body { @@ -630,6 +636,46 @@ h1 { } } +.archive-short-links { + display: flex; + flex-direction: row; + flex-wrap: wrap; + padding: 0; + + li { + display: block; + padding: 5px; + } +} + +.archive-year-list { + display: flex; + margin: 5px 0; + align-items: baseline; + + @include mouse-available() { + margin: 0; + } + + .date { + font-weight: bold; + // height: 100%; + } + .title { + margin: 0 0 0 10px; + text-align: left; + + a { + display: block; + padding: 6.5px 0; + + @include mouse-available() { + padding: 3px 0; + } + } + } +} + @font-face{ font-family: 'Open Sans Condensed'; font-style: normal; diff --git a/themes/tsc_vfl/layouts/_default/archive.html b/themes/tsc_vfl/layouts/_default/archive.html new file mode 100644 index 0000000..90e692c --- /dev/null +++ b/themes/tsc_vfl/layouts/_default/archive.html @@ -0,0 +1,63 @@ +{{ define "main" }} + +

{{ .Title }}

+
+ {{ $archiveGroups := (( where .Site.RegularPages "Section" "==" "news").GroupByDate "2006" ) }} + + + {{ range $archiveGroups }} +

{{ .Key }}

+ {{ range .Pages.ByDate.Reverse }} +
+
{{ .Date.Format "02.01.2006" }}
+
+ + {{ .Title }} + +
+
+ {{ end }} +
+ [Zurück] +
+ {{ end }} + + {{ partial "totop" }} +{{ end }} +