Convert docdock theme from submodule to native files and fix Hugo compatibility
This commit is contained in:
39
themes/docdock/layouts/404.html
Normal file
39
themes/docdock/layouts/404.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!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}}
|
||||
|
||||
<h1>{{T "title-404"}}</h1>
|
||||
<p>
|
||||
</p>
|
||||
<p>{{T "message-404"}}</p>
|
||||
<p></p>
|
||||
<p><a href="{{.Site.BaseURL}}">{{T "Go-to-homepage"}}</a></p>
|
||||
<p><img src="{{"images/gopher-404.jpg" | relURL}}" style="width:50%"></img></p>
|
||||
|
||||
{{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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user