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,32 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/head.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/head.html" . }}
{{end}}
</head>
<body data-url="{{ .RelPermalink }}">
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/body-beforecontent.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/body-beforecontent.html" . }}
{{end}}
{{ block "main" . }}
{{ end }}
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/body-aftercontent.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/body-aftercontent.html" . }}
{{ end }}
{{ block "footer" . }}
{{ end }}
{{ partial "custom-footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,22 @@
<article class="post {{ .Section }}">
<header class="post-header">
<h2 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
</header>
<section class="post-excerpt">
<p>{{ .Summary }} <a class="read-more" href="{{.RelPermalink}}">&raquo;</a></p>
</section>
<footer class=" footline" >
{{with .Params.LastModifierDisplayName}}
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{with $.Date}} <i class='fa fa-calendar'></i> {{ .Format "02/01/2006" }}{{end}}
{{end}}
{{if .Params.tags }}
{{ range $index, $tag := .Params.tags }}
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}/">{{ $tag }}</a>
{{ end }}
{{end}}
</footer>
</article>

View File

@@ -0,0 +1,20 @@
{{ define "main" }}
{{if .Content}}
{{ .Content }}
{{else }}
{{ $paginator := .Paginator }}
<div class="extra-pagination inner">
{{ partial "pagination.html" $paginator }}
</div>
{{ range $index, $page := $paginator.Pages }}
{{ .Render "li" }}
{{ end }}
<div style="margin-bottom:2rem"></div>
{{ partial "pagination.html" $paginator }}
{{end}}
{{end}}

View File

@@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}