aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/header
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/header')
-rw-r--r--layouts/partials/header/index.html7
-rw-r--r--layouts/partials/header/nav.html6
-rw-r--r--layouts/partials/header/theme-button.html4
3 files changed, 9 insertions, 8 deletions
diff --git a/layouts/partials/header/index.html b/layouts/partials/header/index.html
index 43debba..fdbce83 100644
--- a/layouts/partials/header/index.html
+++ b/layouts/partials/header/index.html
@@ -1,8 +1,9 @@
-<header class="flex flex-col sm:flex-row items-center gap-5 sm:gap-10 pt-16 py-12">
+<header class="flex flex-col sm:flex-row items-center gap-2 sm:gap-10 py-4">
{{ partial "header/avatar" . }}
-
+ {{ partial "header/theme-button" . }}
+
<div class="flex flex-col gap-5">
- {{ partial "header/title" . }}
+ {{ partial "header/title" . }}
{{ partial "header/nav" . }}
</div>
</header>
diff --git a/layouts/partials/header/nav.html b/layouts/partials/header/nav.html
index 94b073d..95c0e59 100644
--- a/layouts/partials/header/nav.html
+++ b/layouts/partials/header/nav.html
@@ -1,8 +1,8 @@
<nav>
<ul>
- {{ $currentPage := . }}
- {{ range site.Menus.main }}
- {{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}
+ {{ $currentPage := . }}
+ {{ range site.Menus.main }}
+ {{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }}
{{- $page_url := $currentPage.Permalink | absLangURL }}
<li>
<a href="{{ .URL }}" class="{{ if eq $menu_item_url $page_url }} active {{ end }}">
diff --git a/layouts/partials/header/theme-button.html b/layouts/partials/header/theme-button.html
index 0a8313b..31ac8c4 100644
--- a/layouts/partials/header/theme-button.html
+++ b/layouts/partials/header/theme-button.html
@@ -1,4 +1,4 @@
-<button class="toggle-theme" aria-label="Toggle Theme" title="Toggle Theme" onclick="toggleTheme()">
+<button class="w-8 h-8" aria-label="Toggle Theme" title="Toggle Theme" onclick="toggleTheme()">
<span class="theme-icon light"> {{ partial "utils/icon" "sun" }} </span>
<span class="theme-icon dark"> {{ partial "utils/icon" "moon" }} </span>
</button>
@@ -44,4 +44,4 @@
setTheme('light');
}
}
-</script> \ No newline at end of file
+</script>