{{ .Page.Content }} @@ -71,56 +55,56 @@
- - - {{ if .IsTranslated }} - {{ partial "navigators/floating-lang-selector.html" . }} - {{ end }} + + + {{ end }} {{ define "toc" }}
- {{ if and site.Params.enableTOC ( .Params.enableTOC | default true ) }} + {{ if and site.Params.features.toc.enable ( .Params.enableTOC | default true ) }}
{{ i18n "toc_heading" }}

@@ -190,22 +173,3 @@ {{ end }}
{{ end }} - -{{ define "scripts" }} - - - - - -{{ if .Params.math }} - {{ partial "math.html" . }} -{{ end }} - - -{{ if .Params.mermaid }} - {{ partial "mermaid.html" . }} -{{ end }} - -{{ end }} diff --git a/layouts/categories/list.html b/layouts/categories/list.html index 7b85ff4..48a48a4 100644 --- a/layouts/categories/list.html +++ b/layouts/categories/list.html @@ -1,13 +1,5 @@ -{{ define "header" }} - - - - - -{{ end }} - {{ define "navbar" }} - {{ partial "navigators/navbar-2.html" . }} + {{ partial "navigators/navbar.html" . }} {{ end }} {{ define "sidebar" }} @@ -56,7 +48,3 @@
{{ end }} - -{{ define "scripts" }} - -{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 4ba24a7..81296de 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -14,24 +14,20 @@ {{- partial "header.html" . -}} {{- partial "opengraph.html" . -}} - - - - - - - - - - - - - - - {{- partial "analytics.html" . -}} + @@ -48,7 +44,7 @@ {{ end }} {{ if $sections }} - {{ $background:= "bg-white"}} + {{ $background:= "bg-primary"}} {{ range sort $sections "section.weight" }} {{ if .section.enable }}
@@ -59,10 +55,10 @@ {{ end }}
- {{ if eq $background "bg-white" }} - {{ $background = "bg-dimmed" }} + {{ if eq $background "bg-primary" }} + {{ $background = "bg-secondary" }} {{ else }} - {{ $background = "bg-white" }} + {{ $background = "bg-primary" }} {{end}} {{ end }} {{ end }} @@ -75,12 +71,6 @@ {{ partial "scripts.html" . }} - - - - - - {{- partial "misc/support.html" . -}} diff --git a/layouts/notes/list.html b/layouts/notes/list.html index 1ca7ca2..4dea0f0 100644 --- a/layouts/notes/list.html +++ b/layouts/notes/list.html @@ -1,14 +1,5 @@ -{{ define "header" }} - - - -{{ end }} - {{ define "navbar" }} - {{ partial "navigators/navbar-2.html" . }} + {{ partial "navigators/navbar.html" . }} {{ end }} {{ define "sidebar" }} @@ -55,15 +46,3 @@