Fill theme.toml, refactor injection partials
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
<nav role="navigation">
|
||||
{{ partial "book/nav-brand" . }}
|
||||
{{ with .Site.GetPage .Site.Params.BookMenuBundle }}{{ .Content }}{{ end }}
|
||||
{{ partial "book/nav-after" . }}
|
||||
</nav>
|
||||
@@ -1,5 +0,0 @@
|
||||
{{ if .Site.Params.BookMenuBundle }}
|
||||
{{ partial "book/nav-bundle" . }}
|
||||
{{ else }}
|
||||
{{ partial "book/nav-tree" . }}
|
||||
{{ end }}
|
||||
@@ -6,6 +6,4 @@
|
||||
<!-- <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 }}">
|
||||
|
||||
{{ partial "book/html-head-after" . }}
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}">
|
||||
@@ -0,0 +1,8 @@
|
||||
<nav role="navigation">
|
||||
{{ partial "docs/nav-brand" . }}
|
||||
{{ partial "docs/inject/nav-before" . }}
|
||||
{{ with .Site.GetPage .Site.Params.BookMenuBundle }}
|
||||
{{- .Content -}}
|
||||
{{ end }}
|
||||
{{ partial "docs/inject/nav-after" . }}
|
||||
</nav>
|
||||
@@ -13,8 +13,8 @@
|
||||
{{ end }}
|
||||
|
||||
<nav role="navigation">
|
||||
{{ partial "book/nav-brand" . }}
|
||||
{{ partial "book/nav-before" . }}
|
||||
{{ partial "docs/nav-brand" . }}
|
||||
{{ partial "docs/inject/nav-before" . }}
|
||||
|
||||
<ul>
|
||||
{{ range .Scratch.Get "BookSections" }}
|
||||
@@ -22,7 +22,7 @@
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ partial "book/nav-after" . }}
|
||||
{{ partial "docs/inject/nav-after" . }}
|
||||
</nav>
|
||||
|
||||
<!-- Single section of menu (recursive) -->
|
||||
@@ -0,0 +1,5 @@
|
||||
{{ if .Site.Params.BookMenuBundle }}
|
||||
{{ partial "docs/nav-bundle" . }}
|
||||
{{ else }}
|
||||
{{ partial "docs/nav-tree" . }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user