Convert docdock theme from submodule to native files and fix Hugo compatibility

This commit is contained in:
2025-10-07 22:04:56 +02:00
parent 4dde383587
commit 288932b4af
354 changed files with 41378 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
{{ $header := print "_header." .Lang }}
{{ $found := false }}
{{ range .Site.Pages }}
{{ if and .File (eq .File.BaseFileName $header) }}
{{ .Content }}
{{ $found = true }}
{{ end }}
{{ end }}
{{ if not $found }}
{{ if .Site.GetPage "page" "_header.md" }}
{{(.Site.GetPage "page" "_header.md").Content}}
{{else}}
<a class="baselink" href="{{.Site.BaseURL}}">{{.Site.Title}}</a>
{{end}}
{{end}}