diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index 02f89f41..f2dc0dbf 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -6,6 +6,7 @@ weight = 1 rtl = false title = "Congo" +# description = "My awesome website" # copyright = "Copy, _right?_ :thinking_face:" dateFormat = "2 January 2006" diff --git a/config/_default/params.toml b/config/_default/params.toml index a014ff9d..3ddff265 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -9,7 +9,6 @@ colorScheme = "congo" enableSearch = false darkMode = "auto" # logo = "img/logo.jpg" -# description = "My awesome website" # mainSections = ["section1", "section2"] # robots = "" showDarkToggle = false @@ -38,6 +37,7 @@ showScrollToTop = true [list] showBreadcrumbs = false showSummary = false + showTableOfContents = false groupByYear = true [taxonomy] diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index a3beb1bd..e8f977a8 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -6,6 +6,7 @@ weight = 1 rtl = false title = "Congo" +# description = "My awesome website" # copyright = "Copy, _right?_ :thinking_face:" dateFormat = "2 January 2006" diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 14b4f60b..a8d2b443 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -9,7 +9,6 @@ colorScheme = "congo" enableSearch = true darkMode = "auto" # logo = "img/logo.jpg" -# description = "My awesome website" mainSections = ["samples"] # robots = "" showDarkToggle = false @@ -38,6 +37,7 @@ showScrollToTop = true [list] showBreadcrumbs = true showSummary = false + showTableOfContents = true groupByYear = false [taxonomy] diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 35ba30d0..88faad10 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -14,10 +14,8 @@ {{- end }} {{/* Metadata */}} - {{ with .Params.Description -}} + {{ with .Site.Params.description -}} - {{- else -}} - {{- end }} {{ with .Site.Params.keywords -}} @@ -62,8 +60,7 @@ {{ $assets.Add "js" (slice $jsFuse $jsSearch) }} {{ end }} {{ if $assets.Get "js" }} - {{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} - + {{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} {{ end }} {{/* Icons */}} {{ if templates.Exists "partials/favicons.html" }}