diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-12 14:21:46 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-12 14:21:46 +0200 |
commit | ca37d7488c726452739da68f9a096e0d8467d264 (patch) | |
tree | 34a96d5d43ed46e18b43c2c672844868c54931ab /layouts/docs | |
parent | 2e5e2a2f5c29f95c86b2966d9c38b33ba52a4195 (diff) |
Fill theme.toml, refactor injection partials
Diffstat (limited to 'layouts/docs')
-rw-r--r-- | layouts/docs/baseof.html | 12 | ||||
-rw-r--r-- | layouts/docs/list.html | 8 | ||||
-rw-r--r-- | layouts/docs/single.html | 8 |
3 files changed, 9 insertions, 19 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 9f7f942..8509b14 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -1,25 +1,26 @@ <!DOCTYPE html> <html> <head> - {{ partial "book/html-head" . }} - <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> + {{ partial "docs/html-head" . }} + {{ partial "docs/inject/head" . }} + <title>{{ block "title" . }} {{- .Site.Title -}} {{ end }}</title> </head> <body> <div class="pure-g"> <div class="pure-u book-nav"> - {{ partial "book/nav" . }} + {{ partial "docs/nav" . }} </div> <div class="pure-u book-content"> <div class="pure-g"> <div class="pure-u book-page markdown"> - {{ block "main" . }}{{ end }} + {{ block "main" . }} {{- .Content -}} {{ end }} </div> {{ if and (default true .Site.Params.BookShowTOC) (.Page.TableOfContents) }} <div class="pure-u book-toc"> - {{ partial "book/toc" . }} + {{ partial "docs/toc" . }} </div> {{ end }} @@ -27,5 +28,6 @@ </div> </div> + {{ partial "docs/inject/body" . }} </body> </html>
\ No newline at end of file diff --git a/layouts/docs/list.html b/layouts/docs/list.html index 130cc89..a54943b 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -1,7 +1 @@ -{{- define "title" -}} - {{ .Site.Title }} -{{ end }} - -{{- define "main" -}} - <div>{{ .Content }}</div> -{{ end }}
\ No newline at end of file +{{ define "." }} {{ end }}
\ No newline at end of file diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 130cc89..a54943b 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -1,7 +1 @@ -{{- define "title" -}} - {{ .Site.Title }} -{{ end }} - -{{- define "main" -}} - <div>{{ .Content }}</div> -{{ end }}
\ No newline at end of file +{{ define "." }} {{ end }}
\ No newline at end of file |