🚚 Move site description to languages config

This commit is contained in:
James Panther
2022-01-20 16:08:18 +11:00
parent 8319bddf04
commit 1857637094
5 changed files with 6 additions and 7 deletions
+1
View File
@@ -6,6 +6,7 @@ weight = 1
rtl = false
title = "Congo"
# description = "My awesome website"
# copyright = "Copy, _right?_ :thinking_face:"
dateFormat = "2 January 2006"
+1 -1
View File
@@ -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]
@@ -6,6 +6,7 @@ weight = 1
rtl = false
title = "Congo"
# description = "My awesome website"
# copyright = "Copy, _right?_ :thinking_face:"
dateFormat = "2 January 2006"
+1 -1
View File
@@ -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]
+2 -5
View File
@@ -14,10 +14,8 @@
<meta name="title" content="{{ .Title | emojify }} &middot; {{ .Site.Title | emojify }}" />
{{- end }}
{{/* Metadata */}}
{{ with .Params.Description -}}
{{ with .Site.Params.description -}}
<meta name="description" content="{{ . }}" />
{{- else -}}
<meta name="description" content="{{ $.Site.Params.Description }}" />
{{- end }}
{{ with .Site.Params.keywords -}}
<meta name="keywords" content="{{ . }}" />
@@ -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" }}
<script defer type="text/javascript" src="{{ $bundleJS.RelPermalink }}" integrity="{{ $bundleJS.Data.Integrity }}"></script>
{{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} <script defer type="text/javascript" src="{{ $bundleJS.RelPermalink }}" integrity="{{ $bundleJS.Data.Integrity }}"></script>
{{ end }}
{{/* Icons */}}
{{ if templates.Exists "partials/favicons.html" }}