From 65791c68cb0ba04b32c56ff776a981f1cb7774ba Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 28 Nov 2020 19:16:23 +0100 Subject: [PATCH] fresh design for years --- config.toml | 15 ++++++++---- i18n/de.toml | 4 +++ layouts/partials/years-summary.html | 35 ++++++++++++++++++-------- layouts/years/terms.html | 38 +++++++++++------------------ 4 files changed, 53 insertions(+), 39 deletions(-) create mode 100644 i18n/de.toml diff --git a/config.toml b/config.toml index 42c0210..66a97a9 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ title = "Kollegenrunde" baseURL = "https://kollegen.uber.space/kollegenrunde" -languageCode = "de-de" +languageCode = "de" theme = "ananke" DefaultContentLanguage = "de" @@ -11,8 +11,6 @@ enableRobotsTXT = true contentDir = "../kollegen-posts/content" archetypeDir = "../kollegen-posts/archetypes" -[de] - title = "Kollegenrunde" [taxonomies] category = "categories" @@ -28,7 +26,10 @@ archetypeDir = "../kollegen-posts/archetypes" priority = 0.5 filename = "sitemap.xml" - +[permalinks] + # :title is used if :slug is not defined in post frontmatter + posts = "posts/:year/:title/" + [params] sectionPagesMenu = "main" favicon = "" @@ -48,7 +49,6 @@ archetypeDir = "../kollegen-posts/archetypes" slack = "" stackoverflow = "" rss = "" -# TEST body_classes = "avenir bg-near-white" # choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-" background_color_class = "bg-dark-blue" featured_image = "/images/070830-schatten.jpg" @@ -63,3 +63,8 @@ archetypeDir = "../kollegen-posts/archetypes" name = "Statistik" identifier = "stats" url = "/stats/" + +[languages] + [languages.de] + title = "Kollegenrunde" + weight = 1 diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 0000000..4dadb8c --- /dev/null +++ b/i18n/de.toml @@ -0,0 +1,4 @@ +[tours] +one = "Eine Tour" +other = "{{ .Count }} Touren" + diff --git a/layouts/partials/years-summary.html b/layouts/partials/years-summary.html index b75a5ea..20e382b 100644 --- a/layouts/partials/years-summary.html +++ b/layouts/partials/years-summary.html @@ -6,14 +6,16 @@ {{ $totalWidth := 100.0 }} {{ $totalHeight := 50.0 }} {{ $width := div $totalWidth 12 }} +{{ $month_map := .page.Site.Data.month }} {{ $color := "#a8c7f0" }} {{ $strokecolor := "#d3e3f8" }}