diff options
| author | Miqdd <ahmadmiqdad27@te.student.pens.ac.id> | 2024-01-22 06:39:54 +0700 |
|---|---|---|
| committer | Miqdd <ahmadmiqdad27@te.student.pens.ac.id> | 2024-01-22 06:39:54 +0700 |
| commit | 04fdcac1dce2cc439dd8ad1b115507671040737e (patch) | |
| tree | fca0e8fa90c182863adf6a2baedadf8ebb46a5f4 /layouts/partials/head.html | |
Publish
Diffstat (limited to 'layouts/partials/head.html')
| -rw-r--r-- | layouts/partials/head.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..30476c8 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,14 @@ +<header> + <div class="main"> + <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + </div> + <nav> + {{ range .Site.Menus.main }} + <a href="{{ .URL }}">{{ .Name }}</a> + {{ end }} + {{ if eq .Site.Params.mode "toggle" -}} + | <span id="dark-mode-toggle" onclick="toggleTheme()"></span> + <script src="{{ .Site.BaseURL }}js/themetoggle.js"></script> + {{ end }} + </nav> +</header> |
