initial commit nouveau design

This commit is contained in:
anael committed 2026-11-15 15:56:30 +01:00
commit 8657f4ccf0
38 files changed
+467

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
<footer class="footer">
<!-- Option for user to inject custom html -->
{{ if .Site.Params.CustomFooterHTML }}
{{ .Site.Params.CustomFooterHTML | safeHTML }}
{{ end }}
{{ .Scratch.Set "footerText" "" }}
{{ if (.Site.Params.Footer) }}
{{ if and (eq .Kind "page") (.Date) }}
{{ .Scratch.Add "footerText" (.Date | time.Format "2006") }}
{{ else }}
{{ .Scratch.Add "footerText" (time.Now | time.Format "2006") }}
{{ end }}
{{ if and (eq .Kind "page") (.Lastmod) (gt (time.Format "2006" .Lastmod) (time.Format "2006" .Date)) }}
{{ .Scratch.Add "footerText" "-" }}
{{ .Scratch.Add "footerText" (.Lastmod | time.Format "2006") }}
{{ end }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Params.Footer }}
{{ if .Site.Copyright }}
{{ .Scratch.Add "footerText" " " }}
{{ .Scratch.Add "footerText" .Site.Copyright }}
{{ end }}
{{ end }}
{{ if (gt (.Scratch.Get "footerText" | len) 0) }}
<span>{{ .Scratch.Get "footerText" | markdownify }}</span>
{{ end }}
</footer>
+64
View File
@@ -0,0 +1,64 @@
{{ $searchIndex := site.Home.OutputFormats.Get "SearchIndex" }}
<header class="header">
<nav class="header-nav">
<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>
{{ if $searchIndex }}
<div class="nav-link search-toggle">
<a href="#search" role="button" aria-label="{{ i18n "search" | default "Search" }}" aria-controls="search-overlay" aria-expanded="false">
<span data-feather="search"></span>
</a>
</div>
{{ end }}
<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 }}
{{ if $searchIndex }}
<li class="nav-item search-toggle">
<a href="#search" role="button" aria-label="{{ i18n "search" | default "Search" }}" aria-controls="search-overlay" aria-expanded="false">
<span data-feather="search"></span>
</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>
{{ with $searchIndex }}{{ partial "search.html" . }}{{ end }}