diff options
| author | Eltrac <hi@guhub.cn> | 2024-12-19 14:41:26 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2024-12-19 14:41:26 +0800 |
| commit | 103be55e7daec04b8da85ee175a9ec2317a167b0 (patch) | |
| tree | 99af7983332c60d0f276416a34d936a5581fede8 /layouts/partials/header.html | |
| parent | c695b9511ba695bc57144b8c3f72e08625cce29a (diff) | |
refactor: disable theme and move layout files to root
Diffstat (limited to 'layouts/partials/header.html')
| -rw-r--r-- | layouts/partials/header.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 00000000..b1f6e50e --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,17 @@ +<!-- Header Title --> +<header> + <div class="header-title"> + <a href="{{ .Site.LanguagePrefix }}/" + >{{ or .Site.Params.headTitle .Site.Author.name }}</a + > + </div> +</header> + +<!-- Navigation --> +<nav class="header-items"> + {{ range .Site.Params.nav }} + <div class="header-item {{ if eq .link $.Page.RelPermalink }}active{{ end }}"> + <a href="{{ .link }}" target="{{ .target }}">{{ .name }}</a> + </div> + {{ end }} +</nav> |
