diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
commit | 8555cf72dec9321fa010296ce6988cf7b7cf602b (patch) | |
tree | 006ad83008cc8e08524631ebb4b638bfbfa490fd /themes/hugo-coder/layouts/partials/header.html | |
parent | 2e1cd1a569ea516be6bfdc681411cae51632a290 (diff) |
convert theme from submodule to regular files
Diffstat (limited to 'themes/hugo-coder/layouts/partials/header.html')
m--------- | themes/hugo-coder | 0 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/partials/header.html | 39 |
2 files changed, 39 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/layouts/partials/header.html b/themes/hugo-coder/layouts/partials/header.html new file mode 100644 index 0000000..4b7924e --- /dev/null +++ b/themes/hugo-coder/layouts/partials/header.html | |||
@@ -0,0 +1,39 @@ | |||
1 | <nav class="navigation"> | ||
2 | <section class="container"> | ||
3 | <a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}"> | ||
4 | {{ .Site.Title }} | ||
5 | </a> | ||
6 | {{ if or .Site.Menus.main .Site.IsMultiLingual }} | ||
7 | <input type="checkbox" id="menu-toggle" /> | ||
8 | <label class="menu-button float-right" for="menu-toggle"> | ||
9 | <i class="fa fa-bars fa-fw" aria-hidden="true"></i> | ||
10 | </label> | ||
11 | <ul class="navigation-list"> | ||
12 | {{ with .Site.Menus.main}} | ||
13 | {{ range sort . }} | ||
14 | <li class="navigation-item"> | ||
15 | <a class="navigation-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a> | ||
16 | </li> | ||
17 | {{ end }} | ||
18 | {{ end }} | ||
19 | {{ if .Site.IsMultiLingual }} | ||
20 | {{ $node := . }} | ||
21 | {{ .Scratch.Set "separator" true }} | ||
22 | {{ range (default .Site.Home.AllTranslations .Translations) }} | ||
23 | {{ if ne $.Site.Language .Language }} | ||
24 | {{ if $node.Scratch.Get "separator" }} | ||
25 | <li class="navigation-item menu-separator"> | ||
26 | <span>|</span> | ||
27 | </li> | ||
28 | {{ $node.Scratch.Set "separator" false }} | ||
29 | {{ end }} | ||
30 | <li class="navigation-item"> | ||
31 | <a href="{{ .Permalink }}">{{ .Language.LanguageName | emojify }}</a> | ||
32 | </li> | ||
33 | {{ end }} | ||
34 | {{ end }} | ||
35 | {{ end }} | ||
36 | </ul> | ||
37 | {{ end }} | ||
38 | </section> | ||
39 | </nav> | ||