diff options
Diffstat (limited to 'layouts/docs')
-rw-r--r-- | layouts/docs/baseof.html | 14 | ||||
-rw-r--r-- | layouts/docs/index.html | 7 | ||||
-rw-r--r-- | layouts/docs/list.html | 6 | ||||
-rw-r--r-- | layouts/docs/single.html | 6 |
4 files changed, 18 insertions, 15 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 7f05ac8..9f7f942 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -1,25 +1,31 @@ <!DOCTYPE html> <html> <head> - {{ partial "book-html-head" . }} - <title>{{ .Site.Title }}</title> + {{ partial "book/html-head" . }} + <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> </head> <body> <div class="pure-g"> + <div class="pure-u book-nav"> - {{ partial "book-nav" . }} + {{ partial "book/nav" . }} </div> <div class="pure-u book-content"> <div class="pure-g"> + <div class="pure-u book-page markdown"> {{ block "main" . }}{{ end }} </div> + {{ if and (default true .Site.Params.BookShowTOC) (.Page.TableOfContents) }} <div class="pure-u book-toc"> - {{ partial "book-toc" . }} + {{ partial "book/toc" . }} </div> + {{ end }} + </div> </div> + </div> </body> </html>
\ No newline at end of file diff --git a/layouts/docs/index.html b/layouts/docs/index.html deleted file mode 100644 index 9b519ff..0000000 --- a/layouts/docs/index.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "title" }} - {{ .Title }} – {{ .Site.Title }} -{{ end }} - -{{ define "main" }} - <div>{{ .Content }}</div> -{{ end }}
\ No newline at end of file diff --git a/layouts/docs/list.html b/layouts/docs/list.html index 9b519ff..130cc89 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -1,7 +1,7 @@ -{{ define "title" }} - {{ .Title }} – {{ .Site.Title }} +{{- define "title" -}} + {{ .Site.Title }} {{ end }} -{{ define "main" }} +{{- define "main" -}} <div>{{ .Content }}</div> {{ end }}
\ No newline at end of file diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 9b991dd..130cc89 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -1,3 +1,7 @@ -{{ define "main" }} +{{- define "title" -}} + {{ .Site.Title }} +{{ end }} + +{{- define "main" -}} <div>{{ .Content }}</div> {{ end }}
\ No newline at end of file |