Skip to content

Commit 1e62b23

Browse files
Kevin KroneKevin Krone
Kevin Krone
authored and
Kevin Krone
committed
Fix menu.html formatting
1 parent 334b065 commit 1e62b23

File tree

1 file changed

+13
-13
lines changed
  • themes/hugo-book-master/layouts/partials/docs

1 file changed

+13
-13
lines changed

themes/hugo-book-master/layouts/partials/docs/menu.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
{{ partial "docs/brand" . }}
33
{{ partial "docs/search" . }}
44
{{ if .Site.IsMultiLingual }}
5-
{{ partial "docs/languages" . }}
5+
{{ partial "docs/languages" . }}
66
{{ end }}
7-
7+
88
{{ partial "docs/inject/menu-before" . }}
99
{{ partial "docs/menu-hugo" .Site.Menus.before }}
10-
10+
1111
{{ if .Site.Params.BookMenuBundle }}
12-
{{ partial "docs/menu-bundle" . }}
12+
{{ partial "docs/menu-bundle" . }}
1313
{{ else }}
14-
{{ partial "docs/menu-filetree" . }}
14+
{{ partial "docs/menu-filetree" . }}
1515
{{ end }}
16-
16+
1717
{{ partial "docs/menu-hugo" .Site.Menus.after }}
1818
{{ partial "docs/inject/menu-after" . }}
19-
</nav>
20-
21-
<!-- Restore menu position as soon as possible to avoid flickering -->
22-
{{ $script := resources.Get "menu-reset.js" | resources.Minify }}
23-
{{ with $script.Content }}
24-
<script>{ { . | safeJS } }</script>
25-
{{ end }}
19+
</nav>
20+
21+
<!-- Restore menu position as soon as possible to avoid flickering -->
22+
{{ $script := resources.Get "menu-reset.js" | resources.Minify }}
23+
{{ with $script.Content }}
24+
<script>{{ . | safeJS }}</script>
25+
{{ end }}

0 commit comments

Comments
 (0)