Update header

This commit is contained in:
Jan Kremer 2026-03-15 12:12:13 +01:00
parent b1e32b2c9f
commit aa8a58141d
No known key found for this signature in database
4 changed files with 17 additions and 6 deletions

View file

@ -157,12 +157,18 @@ svg {
margin: 0.5rem; margin: 0.5rem;
vertical-align: middle; vertical-align: middle;
fill: light-dark(var(--uchu-yin), var(--uchu-yang)); fill: light-dark(var(--uchu-yin), var(--uchu-yang));
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
path { path {
fill: white; fill: white;
} }
} }
} }
&.active {
text-decoration: underline;
text-decoration-color: var(--uchu-blue);
}
} }
header { header {
@ -302,6 +308,7 @@ footer {
width: 0.75rem; width: 0.75rem;
vertical-align: middle; vertical-align: middle;
margin: 0 1px; margin: 0 1px;
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
path { path {
fill: white; fill: white;

View file

@ -3,7 +3,7 @@ date = '2024-12-12'
title = 'Über mich' 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. Wenn ich nicht gerade lerne, mache ich gerne Sport, vor allem Joggen, Kraftsport und Tanzen.

View file

@ -12,7 +12,7 @@ email = "mail@jankremer.eu"
[menus] [menus]
[[menus.main]] [[menus.main]]
name = "Blog" name = "Blog"
pageRef = "/" pageRef = "/blog"
weight = 1 weight = 1
[[menus.main]] [[menus.main]]
name = "Fotos" name = "Fotos"

View file

@ -1,2 +1,6 @@
<a href="/" class="title">{{ partial "logo.svg" . }}{{ site.Title }}</a> {{- $attrs := dict "class" "title" }}
{{- if .IsHome }}
{{- $attrs = merge $attrs (dict "class" "title active" "aria-current" "page") }}
{{- end }}
<a href="/" {{ range $k, $v :=$attrs }}{{ $k }}="{{ $v }}" {{ end }}>{{ partial "logo.svg" . }}{{ site.Title }}</a>
{{ partial "menu.html" (dict "menuID" "main" "page" .) }} {{ partial "menu.html" (dict "menuID" "main" "page" .) }}