From eb222d7d587ea2b3f37813ff18b76e536254d586 Mon Sep 17 00:00:00 2001 From: Sangeeth Sudheer Date: Mon, 28 Oct 2024 14:10:57 +0530 Subject: 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. --- assets/css/main.css | 6 +++++- layouts/partials/header.html | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index b08eb15..1675d41 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -141,6 +141,10 @@ hr { margin-top: 0; } +.header-title a { + text-decoration: none; +} + /* Footer */ footer { @@ -523,4 +527,4 @@ blockquote { blockquote p { margin-left: 1rem; margin-right: 1rem; -} \ No newline at end of file +} 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 }} -

{{ site.Title }}

+

+ {{ site.Title }} +

{{ $currentPage := . }} -- cgit v1.2.3