mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
* Added information panel shortcodes (#437) * Added information panel shortcodes * Fixed dark mixin * Moved mixin location to correct location Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com> * Fix SCSS styling * Update generated files * Fix notice HTML * Fix Makefile * Rename JS file * Adsd emoji support for lang selectors * Fix notices and other things * Fix JS on template * Update example content * Update images * Update generated files * Fix netlify preview * Fix netlify preview build * Fix netlify theme path Co-authored-by: Jian Liew <jianloongliew@gmail.com>
40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
<nav class="navigation">
|
|
<section class="container">
|
|
<a class="navigation-title" href="{{ .Site.BaseURL | relLangURL }}">
|
|
{{ .Site.Title }}
|
|
</a>
|
|
{{ if or .Site.Menus.main .Site.IsMultiLingual }}
|
|
<input type="checkbox" id="menu-toggle" />
|
|
<label class="menu-button float-right" for="menu-toggle">
|
|
<i class="fa fa-bars fa-fw" aria-hidden="true"></i>
|
|
</label>
|
|
<ul class="navigation-list">
|
|
{{ with .Site.Menus.main}}
|
|
{{ range sort . }}
|
|
<li class="navigation-item">
|
|
<a class="navigation-link" href="{{ .URL | relLangURL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if .Site.IsMultiLingual }}
|
|
{{ $node := . }}
|
|
{{ .Scratch.Set "separator" true }}
|
|
{{ range (default .Site.Home.AllTranslations .Translations) }}
|
|
{{ if ne $.Site.Language .Language }}
|
|
{{ if $node.Scratch.Get "separator" }}
|
|
<li class="navigation-item menu-separator">
|
|
<span>|</span>
|
|
</li>
|
|
{{ $node.Scratch.Set "separator" false }}
|
|
{{ end }}
|
|
<li class="navigation-item">
|
|
<a href="{{ .Permalink }}">{{ .Language.LanguageName | emojify }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</section>
|
|
</nav>
|