Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
32
themes/docdock/layouts/_default/baseof.html
Normal file
32
themes/docdock/layouts/_default/baseof.html
Normal 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>
|
||||
22
themes/docdock/layouts/_default/li.html
Normal file
22
themes/docdock/layouts/_default/li.html
Normal 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}}">»</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>
|
||||
20
themes/docdock/layouts/_default/list.html
Normal file
20
themes/docdock/layouts/_default/list.html
Normal 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}}
|
||||
3
themes/docdock/layouts/_default/single.html
Normal file
3
themes/docdock/layouts/_default/single.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user