From aa8a58141d7bd3d796cb720b1175eb01ae6fdefb Mon Sep 17 00:00:00 2001 From: Jan Kremer Date: Sun, 15 Mar 2026 12:12:13 +0100 Subject: [PATCH] Update header --- assets/css/main.css | 13 ++++++++++--- content/about.md | 2 +- hugo.toml | 2 +- layouts/_partials/header.html | 6 +++++- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 7622b10..61f416c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -157,12 +157,18 @@ svg { margin: 0.5rem; vertical-align: middle; fill: light-dark(var(--uchu-yin), var(--uchu-yang)); + @media (prefers-color-scheme: dark) { path { fill: white; } } } + + &.active { + text-decoration: underline; + text-decoration-color: var(--uchu-blue); + } } header { @@ -206,7 +212,7 @@ article { height: auto; margin: 0; - figcaption > p { + figcaption>p { margin: 0.25rem 0 2rem; font-family: var(--sans-serif); text-align: center; @@ -218,7 +224,7 @@ article { height: auto; } - > p:nth-of-type(2)::first-letter { + >p:nth-of-type(2)::first-letter { font-size: 3.3rem; float: left; line-height: 3rem; @@ -302,6 +308,7 @@ footer { width: 0.75rem; vertical-align: middle; margin: 0 1px; + @media (prefers-color-scheme: dark) { path { fill: white; @@ -364,4 +371,4 @@ code { margin: 0; padding: 0; } -} +} \ No newline at end of file diff --git a/content/about.md b/content/about.md index 786053f..14f705a 100644 --- a/content/about.md +++ b/content/about.md @@ -3,7 +3,7 @@ date = '2024-12-12' title = 'Über mich' +++ -Mein Name ist _Jan Kremer_. Ich bin 29 Jahre alt und bin *Apotheker*. Manchmal schreibe ich über Technik und Software die ich benutze. +Mein Name ist _Jan Kremer_. Ich bin 29 Jahre alt und habe *Pharmazie* studiert. Manchmal schreibe ich über Technik und Software die ich benutze. Wenn ich nicht gerade lerne, mache ich gerne Sport, vor allem Joggen, Kraftsport und Tanzen. diff --git a/hugo.toml b/hugo.toml index c866ab6..0e97615 100644 --- a/hugo.toml +++ b/hugo.toml @@ -12,7 +12,7 @@ email = "mail@jankremer.eu" [menus] [[menus.main]] name = "Blog" -pageRef = "/" +pageRef = "/blog" weight = 1 [[menus.main]] name = "Fotos" diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index e3dfeea..ee05e7c 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -1,2 +1,6 @@ -{{ partial "logo.svg" . }}{{ site.Title }} +{{- $attrs := dict "class" "title" }} +{{- if .IsHome }} +{{- $attrs = merge $attrs (dict "class" "title active" "aria-current" "page") }} +{{- end }} +{{ partial "logo.svg" . }}{{ site.Title }} {{ partial "menu.html" (dict "menuID" "main" "page" .) }}