summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorSangeeth Sudheer <git@sangeeth.dev>2024-10-28 14:10:57 +0530
committerSangeeth Sudheer <git@sangeeth.dev>2024-10-28 14:10:57 +0530
commiteb222d7d587ea2b3f37813ff18b76e536254d586 (patch)
tree8ca45563df13f24bdd41d63a7760c06efa4fe63b /layouts
parent08acb542be7de75b799a948caa5fd3ceaf8d2c0f (diff)
Make header title a link to base URL (home page)
This is a common pattern found in many sites. I've also added styling to remove the underline.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index bd17f38..1d8301e 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,9 @@
{{ if or (not (.Param "hideHeader")) .IsHome }}
- <h1 class="header-title">{{ site.Title }}</h1>
+ <h1 class="header-title">
+ <a href="{{ site.BaseURL }}">{{ site.Title }}</a>
+ </h1>
<div class="flex">
{{ $currentPage := . }}