From 1857637094bf981cab0b650477fe863ca8f8cf50 Mon Sep 17 00:00:00 2001
From: James Panther <4462786+jpanther@users.noreply.github.com>
Date: Thu, 20 Jan 2022 16:08:18 +1100
Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Move=20site=20description=20to?=
=?UTF-8?q?=20languages=20config?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/_default/languages.en.toml | 1 +
config/_default/params.toml | 2 +-
exampleSite/config/_default/languages.en.toml | 1 +
exampleSite/config/_default/params.toml | 2 +-
layouts/partials/head.html | 7 ++-----
5 files changed, 6 insertions(+), 7 deletions(-)
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" }}