aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-09-29 22:05:18 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-10-01 07:51:11 +0200
commit3d83f6e14f3524531dbc5afadb42f2946161a2f6 (patch)
tree748d870501c37b04132f9d556ffc0263b77b0077 /layouts/partials
parent4c41e477e13d37e187c8de4225c7e8056bd9ed28 (diff)
Update global styles
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head/meta.html3
-rw-r--r--layouts/partials/header.html7
-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
-rw-r--r--layouts/partials/list/default.html4
6 files changed, 13 insertions, 18 deletions
diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html
index 329d9bf..93f8594 100644
--- a/layouts/partials/head/meta.html
+++ b/layouts/partials/head/meta.html
@@ -1,4 +1,5 @@
{{ $favicon := resources.GetMatch .Site.Params.favicon }}
+{{ $tiny := ($favicon.Fill "80x80 q90") }}
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
@@ -11,7 +12,7 @@
<link rel="canonical" href="{{ .Permalink }}" />
<link rel="robots" href="/robot.txt" />
-<link rel="icon" type="image/x-icon" href="{{ $favicon.RelPermalink }}" />
+<link rel="icon" type="image/x-icon" href="{{ $tiny.RelPermalink }}" />
{{ if .Site.Config.Services.GoogleAnalytics.ID }}
<!-- Google Analytics -->
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
deleted file mode 100644
index cdfb463..0000000
--- a/layouts/partials/header.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<header class="flex flex-col sm:flex-row items-center gap-5 sm:gap-10 pt-16 py-12">
- {{ partial "header/avatar.html" . }}
- <div class="flex flex-col gap-5">
- {{ partial "header/title.html" . }}
- {{ partial "header/nav.html" . }}
- </div>
-</header> \ No newline at end of file
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>
diff --git a/layouts/partials/list/default.html b/layouts/partials/list/default.html
index f3fd20e..e088f1c 100644
--- a/layouts/partials/list/default.html
+++ b/layouts/partials/list/default.html
@@ -2,7 +2,7 @@
<h1>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h1>
-
+
<span class="date">
<time datetime="{{ .PublishDate }}" title='{{ .PublishDate.Format "Mon, Jan 2, 2006, 3:04 PM MST" }}'>
{{ .PublishDate.Format "02/01/2006" }}
@@ -19,7 +19,7 @@
<div class="mt-2">
<a class="read-more" href="{{ .Permalink }}">
- {{ i18n "readMore" }}
+ Read more
<span class="w-4 h-4 stroke-2">
{{ partial "utils/icon" "arrow-right" }}
</span>