#157, Make docs template default for all pages
This commit is contained in:
parent
6ecc94ed2b
commit
4ee099e8cf
6 changed files with 6 additions and 47 deletions
|
@ -71,9 +71,11 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<article class="markdown">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ define "toc" }}
|
||||
{{ .TableOfContents }}
|
||||
{{ partial "docs/toc" . }}
|
||||
{{ end }}
|
||||
|
|
1
layouts/_default/list.html
Normal file
1
layouts/_default/list.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ define "dummy" }}{{ end }}
|
1
layouts/_default/single.html
Normal file
1
layouts/_default/single.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ define "dummy" }}{{ end }}
|
|
@ -1,9 +0,0 @@
|
|||
{{ define "main" }}
|
||||
<article class="markdown">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ define "toc" }}
|
||||
{{ partial "docs/toc" . }}
|
||||
{{ end }}
|
|
@ -1,9 +0,0 @@
|
|||
{{ define "main" }}
|
||||
<article class="markdown">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ define "toc" }}
|
||||
{{ partial "docs/toc" . }}
|
||||
{{ end }}
|
|
@ -1,27 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.Language.Lang }}">
|
||||
|
||||
<head>
|
||||
{{ partial "docs/html-head" . }}
|
||||
{{ partial "docs/inject/head" . }}
|
||||
</head>
|
||||
{{ $content := `
|
||||
# Hugo Book Theme
|
||||
|
||||
This is a placeholder for home page.
|
||||
You can override this page in:
|
||||
|
||||
- `/content/_index.md`
|
||||
- `/layouts/home.html`
|
||||
` }}
|
||||
<body>
|
||||
<main class="flex justify-center">
|
||||
<div class="book-home markdown">
|
||||
{{ replace $content "`" "`" | markdownify }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{{ partial "docs/inject/body" . }}
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in a new issue