diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd..94fee6c 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,10 @@ ---- -title: "{{ replace .Name "-" " " | title }}" +{{ $name := strings.TrimPrefix (now.Format "2006-01-02-") .Name }}--- +slug: "{{ $name }}" +title: "{{ humanize $name }}" date: {{ .Date }} +menu: + main: + parent: Aktuelles draft: true --- diff --git a/archetypes/pages.md b/archetypes/pages.md new file mode 100644 index 0000000..22ae4b5 --- /dev/null +++ b/archetypes/pages.md @@ -0,0 +1,7 @@ +--- +title: "{{ humanize .Name }}" +menu: + main: + weight: 42 +--- + diff --git a/assets/_colors.scss b/assets/_colors.scss index 561d14c..0957f2c 100644 --- a/assets/_colors.scss +++ b/assets/_colors.scss @@ -1,3 +1,4 @@ $color-burger: #aaa; $color-highlight: #0080ff; +$color-link: #f0f; $color-text: #000; diff --git a/assets/style.scss b/assets/style.scss index a3e3353..6d60bb7 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -76,7 +76,15 @@ nav { } } - a { + &.pagination { + margin-top: 2.5em; + + :first-child { + margin: 0; + } + } + + a, span { line-height: 1.5em; margin: 0.5em 0 0 0; } @@ -89,27 +97,19 @@ nav { max-height: max-content; } - a { + a, span { margin: 0 0 0 1em; } } } a { - color: currentColor; + color: $color-link; text-decoration: none; - &:hover { + &:hover, &.is-active { text-decoration: underline; } - - &.is-active { - color: $color-highlight; - - &:hover { - text-decoration: none; - } - } } h1, h2, h3, h4, h5, h6 { @@ -120,6 +120,16 @@ p { margin-bottom: 1em; } +ol, ul { + margin-bottom: 2em; + padding-left: 2em; +} + +hr { + color: $color-text; + margin: 3em 0; +} + .nav-burger { cursor: pointer; display: flex; diff --git a/config.toml b/config.toml index 3a39f7f..b289db9 100644 --- a/config.toml +++ b/config.toml @@ -1,8 +1,13 @@ baseURL = 'https://iger.events/' languageCode = 'de-de' +paginate = 3 title = 'Intergalaktische Erfahrungsreise' [menu] + [[menu.footer]] + name = "Kontakt" + url = "mailto:info@fairydust.reisen" + weight = 5 [[menu.footer]] name = "Impressum" url = "https://hackerspace-bamberg.de/Impressum" @@ -13,3 +18,7 @@ title = 'Intergalaktische Erfahrungsreise' weight = 20 [taxonomies] + +[permalinks] + "/" = "/:year/:month/:slug/" + pages = "/:slug/" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8c7f48d..78a51d7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,10 +11,10 @@
TEST -LOGO -PLS -IGNR+
INTER +GALAKTISCHE +ERFAHRUNGS +REISE