diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-11 23:14:19 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-11 23:14:19 +0200 |
commit | 2e5e2a2f5c29f95c86b2966d9c38b33ba52a4195 (patch) | |
tree | af3b11302e6b337fa14abcfa34d07df1ede6ea87 /layouts/partials | |
parent | 628a4df0df81347c74a88e4c110066c9dc6017d1 (diff) |
Add more partial hooks
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/book/html-head-after.html | 0 | ||||
-rw-r--r-- | layouts/partials/book/html-head.html | 4 | ||||
-rw-r--r-- | layouts/partials/book/nav-before.html | 0 | ||||
-rw-r--r-- | layouts/partials/book/nav-tree.html (renamed from layouts/partials/book/nav-auto.html) | 1 | ||||
-rw-r--r-- | layouts/partials/book/nav.html | 2 |
5 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/book/html-head-after.html b/layouts/partials/book/html-head-after.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/book/html-head-after.html diff --git a/layouts/partials/book/html-head.html b/layouts/partials/book/html-head.html index bf7db42..b171d7c 100644 --- a/layouts/partials/book/html-head.html +++ b/layouts/partials/book/html-head.html @@ -6,4 +6,6 @@ <!-- <link href="/css/grids-responsive-min.css" rel="stylesheet"> --> {{ $styles := resources.Get "styles.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} -<link rel="stylesheet" href="{{ $styles.Permalink }}">
\ No newline at end of file +<link rel="stylesheet" href="{{ $styles.Permalink }}"> + +{{ partial "book/html-head-after" . }}
\ No newline at end of file diff --git a/layouts/partials/book/nav-before.html b/layouts/partials/book/nav-before.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/book/nav-before.html diff --git a/layouts/partials/book/nav-auto.html b/layouts/partials/book/nav-tree.html index c54f960..b87e944 100644 --- a/layouts/partials/book/nav-auto.html +++ b/layouts/partials/book/nav-tree.html @@ -14,6 +14,7 @@ <nav role="navigation"> {{ partial "book/nav-brand" . }} + {{ partial "book/nav-before" . }} <ul> {{ range .Scratch.Get "BookSections" }} diff --git a/layouts/partials/book/nav.html b/layouts/partials/book/nav.html index cc24df7..929b1b7 100644 --- a/layouts/partials/book/nav.html +++ b/layouts/partials/book/nav.html @@ -1,5 +1,5 @@ {{ if .Site.Params.BookMenuBundle }} {{ partial "book/nav-bundle" . }} {{ else }} - {{ partial "book/nav-auto" . }} + {{ partial "book/nav-tree" . }} {{ end }}
\ No newline at end of file |