Add more partial hooks

soper-book
Alex Shpak 2018-09-11 23:14:19 +02:00
parent 628a4df0df
commit 2e5e2a2f5c
5 changed files with 5 additions and 2 deletions

View File

@ -7,3 +7,5 @@
{{ $styles := resources.Get "styles.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} {{ $styles := resources.Get "styles.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.Permalink }}"> <link rel="stylesheet" href="{{ $styles.Permalink }}">
{{ partial "book/html-head-after" . }}

View File

View File

@ -14,6 +14,7 @@
<nav role="navigation"> <nav role="navigation">
{{ partial "book/nav-brand" . }} {{ partial "book/nav-brand" . }}
{{ partial "book/nav-before" . }}
<ul> <ul>
{{ range .Scratch.Get "BookSections" }} {{ range .Scratch.Get "BookSections" }}

View File

@ -1,5 +1,5 @@
{{ if .Site.Params.BookMenuBundle }} {{ if .Site.Params.BookMenuBundle }}
{{ partial "book/nav-bundle" . }} {{ partial "book/nav-bundle" . }}
{{ else }} {{ else }}
{{ partial "book/nav-auto" . }} {{ partial "book/nav-tree" . }}
{{ end }} {{ end }}