diff options
-rw-r--r-- | layouts/_default/baseof.html | 6 | ||||
-rw-r--r-- | layouts/_default/list.html | 1 | ||||
-rw-r--r-- | layouts/_default/single.html | 1 | ||||
-rw-r--r-- | layouts/docs/list.html | 9 | ||||
-rw-r--r-- | layouts/docs/single.html | 9 | ||||
-rw-r--r-- | layouts/home.html | 27 |
6 files changed, 6 insertions, 47 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 042223c..3a374cf 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -71,9 +71,11 @@ {{ end }} {{ define "main" }} - {{ .Content }} + <article class="markdown"> + {{- .Content -}} + </article> {{ end }} {{ define "toc" }} - {{ .TableOfContents }} + {{ partial "docs/toc" . }} {{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..0dc8b68 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1 @@ +{{ define "dummy" }}{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..0dc8b68 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1 @@ +{{ define "dummy" }}{{ end }} diff --git a/layouts/docs/list.html b/layouts/docs/list.html deleted file mode 100644 index ee001c9..0000000 --- a/layouts/docs/list.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ define "main" }} -<article class="markdown"> - {{- .Content -}} -</article> -{{ end }} - -{{ define "toc" }} - {{ partial "docs/toc" . }} -{{ end }} diff --git a/layouts/docs/single.html b/layouts/docs/single.html deleted file mode 100644 index ee001c9..0000000 --- a/layouts/docs/single.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ define "main" }} -<article class="markdown"> - {{- .Content -}} -</article> -{{ end }} - -{{ define "toc" }} - {{ partial "docs/toc" . }} -{{ end }} diff --git a/layouts/home.html b/layouts/home.html deleted file mode 100644 index 06ae844..0000000 --- a/layouts/home.html +++ /dev/null @@ -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> |