about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-09-02 11:04:18 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-09-02 11:04:18 +0700
commit6bc2879991c9e022c7f699c43821240c353ee3ba (patch)
tree826dc92c8bb152d7222516ad62bc72b4bb5a73e6
parent97a9a323478455bcc9a2e4a5dcd541047f6781b8 (diff)
downloadvictor-6bc2879991c9e022c7f699c43821240c353ee3ba.tar.gz
Add class for styling
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/header.html5
2 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5d59d5c..a9b4963 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -34,4 +34,4 @@
 {{ range .Site.Params.relMe }}
 	<link href="{{.}}" rel="me">
 {{ end}}
-{{ partial "head-extra.html" }}
+{{ partial "head-extra.html" . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 991a2da..8364ba8 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,9 +1,9 @@
 <nav>
 	{{ $current := .RelPermalink }}
 	{{ if eq $current .Site.Home.RelPermalink }}
-	<a aria-current="page">{{ .Site.Title }}</a>
+	<a class="homepage" aria-current="page">{{ .Site.Title }}</a>
 	{{ else }}
-	<a href="{{ .Site.Home.RelPermalink }}" >{{ .Site.Title }}</a>
+	<a class="homepage" href="{{ .Site.Home.RelPermalink }}" >{{ .Site.Title }}</a>
 	{{ end}}
 
 	{{ range .Site.Menus.main }}
@@ -14,3 +14,4 @@
 	{{ end }}
 	{{ end }}
 </nav>
+{{ partial "header-extra.html" . }}