c194169315
* .Site.IsServer was deprecated in Hugo v0.120.0, replaced by hugo.IsServer * .Site.DisqusShortname was deprecated in Hugo v0.120.0, replaced by .Site.Config.Services.Disqus.Shortname * Use .RenderString instead of markdownify (solves #104) * The "tweet" shortcode requires two named parameters user and id. * Replace .Site.BaseURL by absURL (solves #103)
15 lines
378 B
HTML
15 lines
378 B
HTML
<header>
|
|
<div class="main">
|
|
<a href="{{ absURL "/" }}">{{ .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="{{ absURL "js/themetoggle.js" }}"></script>
|
|
{{ end }}
|
|
</nav>
|
|
</header>
|