aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAnthony Wang2024-12-02 22:27:18 -0500
committerAnthony Wang2024-12-02 22:27:18 -0500
commit528fbf331ebdd950528c9a240e6f615ffddb49c6 (patch)
tree31e293ff30d3b6bc548fc9d151e7a5866f424682 /layouts
parent6e5a9cc04d2bc1a9fc70d1009fe390f43b6623a4 (diff)
New domain!
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/header.html67
1 files changed, 0 insertions, 67 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
deleted file mode 100644
index 45efe59..0000000
--- a/layouts/partials/header.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<header class="header">
- <nav class="header-nav">
-
- {{ if isset .Site.Params "avatarurl" }}
- <div class="avatar">
- <a href="{{ .Site.BaseURL }}">
- <img src='{{ .Scratch.Get "avatarImgSrc" }}' alt="{{ .Site.Params.AvatarAltText|default "avatar" }}">
- </a>
- </div>
- {{ end }}
-
- <div class="nav-title">
- <a class="nav-brand" href="{{ .Site.BaseURL }}">
- {{ if .IsHome }}
- Some Random Website
- {{ else if eq .RelPermalink "/404.html" }}
- Some Random 404
- {{ else }}
- Some Random {{ humanize (index (split .RelPermalink "/") 1) }}
- {{ end }}
- </a>
- </div>
-
- <div class="nav-links">
- {{ range .Site.Menus.main }}
- <div class="nav-link">
- <a href="{{ .URL | absURL }}" aria-label="{{ .Identifier }}" {{ if .Params.NewPage -}}target="_blank" {{- end -}}>
- {{- .Pre | safeHTML }} {{ .Name }} {{ .Post | safeHTML -}}
- </a>
- </div>
- {{ end }}
-
- <span class="nav-icons-divider"></span>
- <div class="nav-link dark-theme-toggle">
- <span class="sr-only dark-theme-toggle-screen-reader-target">theme</span>
- <a aria-hidden="true" role="switch">
- <span class="theme-toggle-icon" data-feather="moon"></span>
- </a>
- </div>
-
- <div class="nav-link" id="hamburger-menu-toggle">
- <span class="sr-only hamburger-menu-toggle-screen-reader-target">menu</span>
- <a aria-checked="false" aria-labelledby="hamburger-menu-toggle" id="hamburger-menu-toggle-target" role="switch">
- <span data-feather="menu"></span>
- </a>
- </div>
-
- <!-- For mobile -->
- <ul class="nav-hamburger-list visibility-hidden">
- {{ range .Site.Menus.main }}
- <li class="nav-item">
- <a href="{{ .URL | absURL }}" {{ if .Params.NewPage -}} target="_blank"{{- end -}}>
- {{- .Pre | safeHTML }} {{ .Name }} {{ .Post | safeHTML -}}
- </a>
- </li>
- {{ end }}
- <li class="nav-item dark-theme-toggle">
- <span class="sr-only dark-theme-toggle-screen-reader-target">theme</span>
- <a role="switch">
- <span class="theme-toggle-icon" data-feather="moon"></span>
- </a>
- </li>
- </ul>
-
- </div>
- </nav>
-</header>