From e46c452344a13d94b2748efa8a281778fc70df4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pannetier?= <35581688+clement-pannetier@users.noreply.github.com> Date: Mon, 13 Apr 2020 16:44:53 +0200 Subject: [PATCH 01/96] update font awesome version (#304) --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2c6f232..687dc10 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -22,7 +22,7 @@ {{ end }} - + {{ if .Site.IsServer }} From c664951c54a5a6473e5004b0ffe5a100f7921660 Mon Sep 17 00:00:00 2001 From: Ricardo Zago Date: Sun, 26 Apr 2020 09:31:00 -0300 Subject: [PATCH 02/96] Add mathjax to other types of pages, not just posts. (#310) --- layouts/_default/single.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 93ec22c..6150c6a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,4 +3,5 @@ {{ end }} {{ define "content" }} {{ partial "page.html" . }} + {{ partial "posts/math.html" . }} {{ end }} From 8ec09e5d1af4eddbcb73def6bed9f0d7248315dd Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Sun, 26 Apr 2020 08:32:52 -0400 Subject: [PATCH 03/96] Fall back to index if translation for the page doesn't exist (#313) Signed-off-by: Khosrow Moossavi --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 20e6c98..8f89bf5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -17,7 +17,7 @@ {{ if .Site.IsMultiLingual }} {{ $node := . }} {{ .Scratch.Set "separator" true }} - {{ range .Translations }} + {{ range (default .Site.Home.AllTranslations .Translations) }} {{ if ne $.Site.Language .Language }} {{ if $node.Scratch.Get "separator" }}
  • - +
  • {{ else }}
  • - {{ .name }} + {{ .name }}
  • {{ end }} {{ end }} From e230ea2ee6860e2836500c1407fbf1592907fced Mon Sep 17 00:00:00 2001 From: Hussaini Zulkifli Date: Thu, 1 Oct 2020 22:15:18 +0800 Subject: [PATCH 46/96] Translate to Malay (#423) --- CONTRIBUTORS.md | 1 + i18n/ms.toml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 i18n/ms.toml diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index b1d175c..83a0617 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -79,3 +79,4 @@ - [Dave Rolsky](https://github.com/autarch) - [Joseph Sanders](https://github.com/jls83) - [Rabin Adhikari](https://github.com/rabinadk1/) +- [Hussaini Zulkifli](https://github.com/hussaini/) \ No newline at end of file diff --git a/i18n/ms.toml b/i18n/ms.toml new file mode 100644 index 0000000..0f29fc7 --- /dev/null +++ b/i18n/ms.toml @@ -0,0 +1,27 @@ +[category] +other = "kategori" + +[tag] +other = "teg" + +[series] +other = "siri" + +[reading_time] +one = "Bacaan 1 minit" +other = "Bacaan {{ .Count }} minit" + +[page_not_found] +other = "Halaman Tidak Dijumpai" + +[page_does_not_exist] +other = "Maaf, halaman ini tidak wujud." + +[head_back] +other = "Kembali ke halaman utama." + +[powered_by] +other = "Dikuasakan oleh" + +[see_also] +other = "Lihat juga" From 3087f9bfbc7d45599b4fd10714b86ae108a53770 Mon Sep 17 00:00:00 2001 From: Arafat Hasan Jenin Date: Mon, 5 Oct 2020 19:00:08 +0600 Subject: [PATCH 47/96] Bengali translation added (#427) --- i18n/bn.toml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 i18n/bn.toml diff --git a/i18n/bn.toml b/i18n/bn.toml new file mode 100644 index 0000000..0bf5f6f --- /dev/null +++ b/i18n/bn.toml @@ -0,0 +1,30 @@ +[category] +other = "বিভাগ" + +[tag] +other = "ট্যাগ" + +[series] +other = "সারি" + +[reading_time] +one = "পড়তে এক মিনিট লাগবে" +other = "পড়তে {{ .Count }} মিনিট লাগবে" + +[page_not_found] +other = "কাঙ্ক্ষিত পাতাটি পাওয়া যায় নি" + +[page_does_not_exist] +other = "দুঃখিত, পাতাটির অস্তিত্ব নেই" + +[head_back] +other = "আপনি মূল পাতায় ফিরে যেতে পারেন" + +[powered_by] +other = "চালনায়" + +[see_also] +other = "আরও দেখুন" + +[posts] +other = "সব পোস্ট" From 3723e9b2b9baf9f700f5165ffd9a6ba25b25007a Mon Sep 17 00:00:00 2001 From: Ellison Date: Wed, 7 Oct 2020 11:53:36 -0300 Subject: [PATCH 48/96] Add goatcounter analytics support (#430) * adding goatcounter analytics support * Update CONTRIBUTORS.md --- CONTRIBUTORS.md | 3 ++- exampleSite/config.toml | 6 +++++- layouts/_default/baseof.html | 3 +++ layouts/partials/analytics/goatcounter.html | 2 ++ 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/analytics/goatcounter.html diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 83a0617..43ed1c5 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -79,4 +79,5 @@ - [Dave Rolsky](https://github.com/autarch) - [Joseph Sanders](https://github.com/jls83) - [Rabin Adhikari](https://github.com/rabinadk1/) -- [Hussaini Zulkifli](https://github.com/hussaini/) \ No newline at end of file +- [Hussaini Zulkifli](https://github.com/hussaini/) +- [Ellison Leão](https://github.com/ellisonleao) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0869cd6..8513aae 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -62,13 +62,17 @@ disqusShortname = "yourdiscussshortname" siteID = "ABCDE" # Default value is cdn.usefathom.com, overwrite this if you are self-hosting serverURL = "analytics.example.com" - + # If you want to use plausible(https://plausible.io) for analytics, add this section [params.plausibleAnalytics] domain = "example.com" # Default value is plausible.io, overwrite this if you are self-hosting or using a custom domain serverURL = "analytics.example.com" +# If you want to use goatcounter(https://goatcounter.com) for analytics, add this section +[params.goatCounter] + code = "code" + [taxonomies] category = "categories" series = "series" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 77c6cab..fd0618b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -131,6 +131,9 @@ {{- partial "analytics/plausible" . -}} {{ end }} + {{ if and .Site.Params.goatCounter .Site.Params.goatCounter.code }} + {{- partial "analytics/goatcounter" . -}} + {{ end }} diff --git a/layouts/partials/analytics/goatcounter.html b/layouts/partials/analytics/goatcounter.html new file mode 100644 index 0000000..5ba3063 --- /dev/null +++ b/layouts/partials/analytics/goatcounter.html @@ -0,0 +1,2 @@ + From e235863429de0aece5476cc1538e2fabe34820de Mon Sep 17 00:00:00 2001 From: Erno Salo <39559256+endormi@users.noreply.github.com> Date: Fri, 9 Oct 2020 19:47:44 +0300 Subject: [PATCH 49/96] Update fi translation (#431) --- i18n/fi.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i18n/fi.toml b/i18n/fi.toml index 83c9d37..253213f 100644 --- a/i18n/fi.toml +++ b/i18n/fi.toml @@ -8,7 +8,8 @@ other = "merkki" other = "sarja" [reading_time] -other = "{{ .Count }}-minuuttia" +one = "Yksi lukuminuutti" +other = "{{ .Count }} lukuminuuttia" [page_not_found] other = "Sivua ei löydetty" From 561082dbfa31e5fdc818e8d882739e44e96e5cc9 Mon Sep 17 00:00:00 2001 From: tomkys144 Date: Fri, 9 Oct 2020 18:49:18 +0200 Subject: [PATCH 50/96] Added czech translation (#432) --- i18n/cs.toml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 i18n/cs.toml diff --git a/i18n/cs.toml b/i18n/cs.toml new file mode 100644 index 0000000..25ef5b3 --- /dev/null +++ b/i18n/cs.toml @@ -0,0 +1,26 @@ +[category] +other = "kategorie" + +[tag] +other = "tag" + +[series] +other = "série" + +[reading_time] +other = "Délka čtení: {{ .Count }}" + +[page_not_found] +other = "Stránka nenalezena" + +[page_does_not_exist] +other = "Omlouváme se, stránka nebyla nalezena." + +[head_back] +other = "Můžete se vrátit na homepage." + +[powered_by] +other = "Stránka používá" + +[see_also] +other = "Podívejte se také na" From 82ccf83b1e39a4eb557a80166fbc0b175da058e9 Mon Sep 17 00:00:00 2001 From: Lucas de Oliveira Date: Tue, 13 Oct 2020 19:31:49 -0300 Subject: [PATCH 51/96] Use camelCase variables on custom_css, custom_js and custom_scss (#434) * Rename custom_css variable to customCSS * Rename custom_js variable to customJS * Change contribuitors.md * Rename custom_scss to customSCSS * Add custom SCSS on example config.toml * Add customSCSS on stackbit.yaml --- CONTRIBUTORS.md | 1 + exampleSite/config.toml | 8 ++++++-- layouts/_default/baseof.html | 6 +++--- stackbit.yaml | 6 ++++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 43ed1c5..33d82a5 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -81,3 +81,4 @@ - [Rabin Adhikari](https://github.com/rabinadk1/) - [Hussaini Zulkifli](https://github.com/hussaini/) - [Ellison Leão](https://github.com/ellisonleao) +- [Lucas de Oliveira](https://github.com/lucas-dOliveira) \ No newline at end of file diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8513aae..6f8eae8 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -52,10 +52,13 @@ disqusShortname = "yourdiscussshortname" enableTwemoji = true # Custom CSS - custom_css = [] + customCSS = [] + + # Custom SCSS + customSCSS = [] # Custom JS - custom_js = [] + customJS = [] # If you want to use fathom(https://usefathom.com) for analytics, add this section [params.fathomAnalytics] @@ -141,6 +144,7 @@ disqusShortname = "yourdiscussshortname" [languages.pt-br] languagename = "Português" + languageinitials = "BR" title = "João Ninguém" [languages.pt-br.params] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fd0618b..8b7c2bc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -57,11 +57,11 @@ {{ end }} {{ end }} - {{ range .Site.Params.custom_css }} + {{ range .Site.Params.customCSS }} {{ end }} - {{ range .Site.Params.custom_scss }} + {{ range .Site.Params.customSCSS }} {{/* We don't change the targetPath to because it's transparent to users */}} {{ if $.Site.IsServer }} {{ $cssOpts := (dict "enableSourceMap" true ) }} @@ -117,7 +117,7 @@ {{ end }} - {{ range .Site.Params.custom_js }} + {{ range .Site.Params.customJS }} {{ end }} diff --git a/stackbit.yaml b/stackbit.yaml index a6f3dc2..a7dd3ed 100644 --- a/stackbit.yaml +++ b/stackbit.yaml @@ -79,9 +79,11 @@ models: - type: number name: maxSeeAlsoItems - type: list - name: custom_css + name: customCSS - type: list - name: custom_js + name: customSCSS + - type: list + name: customJS - type: list name: social label: Social Media Icons From e26616e170cb5db79b24c6e27a1f873a064429b5 Mon Sep 17 00:00:00 2001 From: earnest Date: Fri, 16 Oct 2020 14:32:37 -0400 Subject: [PATCH 52/96] Add authors taxonomy for blog posts (#435) * Add authors taxonomy and layout * Add my name to contributors file * Add authors to front matter post archetypes * Add author to i18n for en * Add authors taxonomy to exampleSite config * Add some author names to exampleSite for demo * Tested authors on pt-br and externally-linked post * Also ran make release again * Resources Deleted resources in exampleSite and added resources in root --- CONTRIBUTORS.md | 3 ++- archetypes/posts.md | 3 ++- exampleSite/config.toml | 1 + exampleSite/content/posts/creating-a-new-theme.md | 3 ++- exampleSite/content/posts/dummy.pt-br.md | 1 + exampleSite/content/posts/external-post.md | 1 + exampleSite/content/posts/goisforlovers.md | 1 + exampleSite/content/posts/theme-demo.md | 1 + i18n/en.toml | 3 +++ layouts/partials/taxonomy/authors.html | 9 +++++++++ layouts/posts/single.html | 1 + 11 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/taxonomy/authors.html diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 33d82a5..43d1607 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -81,4 +81,5 @@ - [Rabin Adhikari](https://github.com/rabinadk1/) - [Hussaini Zulkifli](https://github.com/hussaini/) - [Ellison Leão](https://github.com/ellisonleao) -- [Lucas de Oliveira](https://github.com/lucas-dOliveira) \ No newline at end of file +- [Lucas de Oliveira](https://github.com/lucas-dOliveira) +- [earnest ma](https://github.com/earnestma) diff --git a/archetypes/posts.md b/archetypes/posts.md index afdb40e..76242f8 100644 --- a/archetypes/posts.md +++ b/archetypes/posts.md @@ -3,7 +3,8 @@ draft = true date = {{ .Date }} title = "" description = "" -slug = "" +slug = "" +authors = [] tags = [] categories = [] externalLink = "" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6f8eae8..5aa32b2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -80,6 +80,7 @@ disqusShortname = "yourdiscussshortname" category = "categories" series = "series" tag = "tags" + author = "authors" [[params.social]] name = "Github" diff --git a/exampleSite/content/posts/creating-a-new-theme.md b/exampleSite/content/posts/creating-a-new-theme.md index dbf15d5..0db1741 100644 --- a/exampleSite/content/posts/creating-a-new-theme.md +++ b/exampleSite/content/posts/creating-a-new-theme.md @@ -1,10 +1,11 @@ +++ date = "2014-09-28" title = "Creating a New Theme" -slug = "creating-a-new-theme" +slug = "creating-a-new-theme" tags = [] categories = [] series = ["Theme", "Hugo"] +authors = ["John Doe"] +++ ## Introduction diff --git a/exampleSite/content/posts/dummy.pt-br.md b/exampleSite/content/posts/dummy.pt-br.md index 961957b..5d29277 100644 --- a/exampleSite/content/posts/dummy.pt-br.md +++ b/exampleSite/content/posts/dummy.pt-br.md @@ -4,6 +4,7 @@ title = "Dummy" slug = "dummy" tags = ["hugo", "i18n"] categories = ["blog"] +authors = ["Translation test"] +++ Nada para ver aqui! \ No newline at end of file diff --git a/exampleSite/content/posts/external-post.md b/exampleSite/content/posts/external-post.md index 695d4bf..46abc59 100644 --- a/exampleSite/content/posts/external-post.md +++ b/exampleSite/content/posts/external-post.md @@ -12,4 +12,5 @@ categories = [ ] externalLink = "https://github.com/luizdepra/hugo-coder/wiki" series = ["Hugo"] +authors = ["External link test"] +++ diff --git a/exampleSite/content/posts/goisforlovers.md b/exampleSite/content/posts/goisforlovers.md index c850d5c..4e6e7a4 100644 --- a/exampleSite/content/posts/goisforlovers.md +++ b/exampleSite/content/posts/goisforlovers.md @@ -14,6 +14,7 @@ categories = [ "golang", ] series = ["Getting Started", "Hugo"] +authors = ["Jane Smith"] +++ Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for diff --git a/exampleSite/content/posts/theme-demo.md b/exampleSite/content/posts/theme-demo.md index 78241b4..be8a989 100644 --- a/exampleSite/content/posts/theme-demo.md +++ b/exampleSite/content/posts/theme-demo.md @@ -5,6 +5,7 @@ description = "The post demonstrates features of the coder theme." images = ["/images/N90.jpg"] math = true series = ["Theme", "Hugo"] +authors = ["John Doe", "Jane Smith"] +++ ## Style Demo diff --git a/i18n/en.toml b/i18n/en.toml index 8dbe838..9715b85 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -7,6 +7,9 @@ other = "tag" [series] other = "series" +[author] +other = "author" + [reading_time] one = "One-minute read" other = "{{ .Count }}-minute read" diff --git a/layouts/partials/taxonomy/authors.html b/layouts/partials/taxonomy/authors.html new file mode 100644 index 0000000..366d8d8 --- /dev/null +++ b/layouts/partials/taxonomy/authors.html @@ -0,0 +1,9 @@ +
    + + {{- range $index, $el := . -}} + {{- if gt $index 0 }} + + {{- end }} + {{ . }} + {{- end -}} +
    \ No newline at end of file diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 1b5d642..0f38237 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -21,6 +21,7 @@ {{ i18n "reading_time" .ReadingTime }} + {{ with .Page.Params.Authors }}{{ partial "taxonomy/authors.html" . }}{{ end }} {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }} {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }} From ca2bcb100a87479b99e9442422e84eb15c41eff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pannetier?= <35581688+clement-pannetier@users.noreply.github.com> Date: Fri, 16 Oct 2020 20:45:58 +0200 Subject: [PATCH 53/96] Issue #438 | Fix stackbit validation errors (#440) --- exampleSite/config.toml | 1 - stackbit.yaml | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5aa32b2..976a514 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -145,7 +145,6 @@ disqusShortname = "yourdiscussshortname" [languages.pt-br] languagename = "Português" - languageinitials = "BR" title = "João Ninguém" [languages.pt-br.params] diff --git a/stackbit.yaml b/stackbit.yaml index a7dd3ed..95351b9 100644 --- a/stackbit.yaml +++ b/stackbit.yaml @@ -84,6 +84,8 @@ models: name: customSCSS - type: list name: customJS + - type: boolean + name: enableTwemoji - type: list name: social label: Social Media Icons @@ -128,6 +130,13 @@ models: - type: string name: serverURL label: URL for Plausible Analytics + - type: object + name: goatCounter + label: Goat Counter (optional) + fields: + - type: string + name: code + label: URL for Goat Counter - type: object name: languages fields: From d1ad7020024c2ab1e0a0828b8d5e586118a5e831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pannetier?= <35581688+clement-pannetier@users.noreply.github.com> Date: Mon, 19 Oct 2020 22:10:48 +0200 Subject: [PATCH 54/96] Update french translation (#442) --- i18n/fr.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n/fr.toml b/i18n/fr.toml index f27ee3a..1f55ba1 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -7,6 +7,9 @@ other = "tag" [series] other = "séries" +[author] +other = "auteur" + [reading_time] one = "Une minute de lecture" other = "{{ .Count }} minutes de lecture" From 9704f2106c9ca445c080af9fd0814e14ea0bb0f9 Mon Sep 17 00:00:00 2001 From: MineCola Date: Tue, 20 Oct 2020 04:13:21 +0800 Subject: [PATCH 55/96] Add zh-tw translation (#444) * Add zh-tw translation * Add contributors for translation zh-tw --- CONTRIBUTORS.md | 1 + i18n/zh-tw.toml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 i18n/zh-tw.toml diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 43d1607..c6861e3 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -83,3 +83,4 @@ - [Ellison Leão](https://github.com/ellisonleao) - [Lucas de Oliveira](https://github.com/lucas-dOliveira) - [earnest ma](https://github.com/earnestma) +- [TMineCola](https://github.com/tminecola) \ No newline at end of file diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml new file mode 100644 index 0000000..c86de6e --- /dev/null +++ b/i18n/zh-tw.toml @@ -0,0 +1,24 @@ +[category] +other = "分類" + +[tag] +other = "標籤" + +[series] +other = "系列" + +[reading_time] +one = "閱讀時間 1 分鐘" +other = "閱讀時間 {{ .Count }} 分鐘" + +[page_not_found] +other = "找不到頁面" + +[page_does_not_exist] +other = "此頁面不存在" + +[head_back] +other = "返回 首頁." + +[powered_by] +other = "技術支援" From 733bc740c64642f5d3479d10d9b1f0e13f26af71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Codru=C8=9B=20Constantin=20Gu=C8=99oi?= Date: Tue, 20 Oct 2020 20:37:57 +0100 Subject: [PATCH 56/96] Fix darkModeToggle javascript error (#447) --- layouts/_default/baseof.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8b7c2bc..516cfef 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -109,12 +109,14 @@ {{ partial "footer.html" . }} - {{ if .Site.IsServer }} - {{ $script := resources.Get "js/dark-mode.js" }} - - {{ else }} - {{ $script := resources.Get "js/dark-mode.js" | minify | fingerprint }} - + {{ if not .Site.Params.hidecolorschemetoggle }} + {{ if .Site.IsServer }} + {{ $script := resources.Get "js/dark-mode.js" }} + + {{ else }} + {{ $script := resources.Get "js/dark-mode.js" | minify | fingerprint }} + + {{ end }} {{ end }} {{ range .Site.Params.customJS }} From f43f2bb3fa0a83092972d0561b2124a304fc64ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Codru=C8=9B=20Constantin=20Gu=C8=99oi?= Date: Fri, 23 Oct 2020 13:50:00 +0100 Subject: [PATCH 57/96] Fix burger focus color change (#446) --- assets/scss/_navigation.scss | 6 ++++++ assets/scss/_navigation_dark.scss | 7 +++++++ ...oder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content | 2 +- .../coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json | 2 +- .../coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content | 2 +- .../scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json | 2 +- 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/assets/scss/_navigation.scss b/assets/scss/_navigation.scss index 60d90cc..84f7014 100644 --- a/assets/scss/_navigation.scss +++ b/assets/scss/_navigation.scss @@ -96,6 +96,12 @@ font-size: 2.4rem; font-weight: 400; } + + i { + &:hover, &:focus { + color: $alt-fg-color; + } + } } i { color: $fg-color; diff --git a/assets/scss/_navigation_dark.scss b/assets/scss/_navigation_dark.scss index d21161c..987366e 100644 --- a/assets/scss/_navigation_dark.scss +++ b/assets/scss/_navigation_dark.scss @@ -37,6 +37,13 @@ color: $link-color-dark; } } + .menu-button { + i { + &:hover, &:focus { + color: $alt-fg-color-dark; + } + } + } } } diff --git a/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content b/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content index 0e02035..7d644d2 100644 --- a/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content +++ b/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content @@ -1 +1 @@ -body.colorscheme-dark{color:#dadada;background-color:#212121}body.colorscheme-dark a{color:#42a5f5}body.colorscheme-dark h1,body.colorscheme-dark h2,body.colorscheme-dark h3,body.colorscheme-dark h4,body.colorscheme-dark h5,body.colorscheme-dark h6{color:#dadada}body.colorscheme-dark code{background-color:#424242;color:#dadada}body.colorscheme-dark pre code{background-color:inherit;color:inherit}body.colorscheme-dark blockquote{border-left:2px solid #424242}body.colorscheme-dark table td,body.colorscheme-dark table th{border:2px solid #dadada}@media(prefers-color-scheme:dark){body.colorscheme-auto{color:#dadada;background-color:#212121}body.colorscheme-auto a{color:#42a5f5}body.colorscheme-auto h1,body.colorscheme-auto h2,body.colorscheme-auto h3,body.colorscheme-auto h4,body.colorscheme-auto h5,body.colorscheme-auto h6{color:#dadada}body.colorscheme-auto code{background-color:#424242;color:#dadada}body.colorscheme-auto pre code{background-color:inherit;color:inherit}body.colorscheme-auto blockquote{border-left:2px solid #424242}body.colorscheme-auto table td,body.colorscheme-auto table th{border:2px solid #dadada}}body.colorscheme-dark .content .list ul li .title{color:#dadada}body.colorscheme-dark .content .list ul li .title:hover,body.colorscheme-dark .content .list ul li .title:focus{color:#42a5f5}body.colorscheme-dark .content .centered .about ul li a{color:#dadada}body.colorscheme-dark .content .centered .about ul li a:hover,body.colorscheme-dark .content .centered .about ul li a:focus{color:#42a5f5}@media(prefers-color-scheme:dark){body.colorscheme-auto .content .list ul li .title{color:#dadada}body.colorscheme-auto .content .list ul li .title:hover,body.colorscheme-auto .content .list ul li .title:focus{color:#42a5f5}body.colorscheme-auto .content .centered .about ul li a{color:#dadada}body.colorscheme-auto .content .centered .about ul li a:hover,body.colorscheme-auto .content .centered .about ul li a:focus{color:#42a5f5}}body.colorscheme-dark .navigation a,body.colorscheme-dark .navigation span{color:#dadada}body.colorscheme-dark .navigation a:hover,body.colorscheme-dark .navigation a:focus{color:#42a5f5}@media only screen and (max-width:768px){body.colorscheme-dark .navigation .navigation-list{background-color:#212121;border-top:solid 2px #424242;border-bottom:solid 2px #424242}}@media only screen and (max-width:768px){body.colorscheme-dark .navigation .navigation-list .menu-separator{border-top:2px solid #dadada}}@media only screen and (max-width:768px){body.colorscheme-dark .navigation #menu-toggle:checked+label>i{color:#424242}}body.colorscheme-dark .navigation i{color:#dadada}body.colorscheme-dark .navigation i:hover,body.colorscheme-dark .navigation i:focus{color:#42a5f5}@media(prefers-color-scheme:dark){body.colorscheme-auto .navigation a,body.colorscheme-auto .navigation span{color:#dadada}body.colorscheme-auto .navigation a:hover,body.colorscheme-auto .navigation a:focus{color:#42a5f5}}@media only screen and (prefers-color-scheme:dark) and (max-width:768px){body.colorscheme-auto .navigation .navigation-list{background-color:#212121;border-top:solid 2px #424242;border-bottom:solid 2px #424242}}@media only screen and (prefers-color-scheme:dark) and (max-width:768px){body.colorscheme-auto .navigation .navigation-list .menu-separator{border-top:2px solid #dadada}}@media only screen and (prefers-color-scheme:dark) and (max-width:768px){body.colorscheme-auto .navigation #menu-toggle:checked+label>i{color:#424242}}@media(prefers-color-scheme:dark){body.colorscheme-auto .navigation i{color:#dadada}body.colorscheme-auto .navigation i:hover,body.colorscheme-auto .navigation i:focus{color:#42a5f5}}body.colorscheme-dark .footer a{color:#42a5f5}@media(prefers-color-scheme:dark){body.colorscheme-auto .footer a{color:#42a5f5}} \ No newline at end of file +body.colorscheme-dark{color:#dadada;background-color:#212121}body.colorscheme-dark a{color:#42a5f5}body.colorscheme-dark h1,body.colorscheme-dark h2,body.colorscheme-dark h3,body.colorscheme-dark h4,body.colorscheme-dark h5,body.colorscheme-dark h6{color:#dadada}body.colorscheme-dark code{background-color:#424242;color:#dadada}body.colorscheme-dark pre code{background-color:inherit;color:inherit}body.colorscheme-dark blockquote{border-left:2px solid #424242}body.colorscheme-dark table td,body.colorscheme-dark table th{border:2px solid #dadada}@media(prefers-color-scheme:dark){body.colorscheme-auto{color:#dadada;background-color:#212121}body.colorscheme-auto a{color:#42a5f5}body.colorscheme-auto h1,body.colorscheme-auto h2,body.colorscheme-auto h3,body.colorscheme-auto h4,body.colorscheme-auto h5,body.colorscheme-auto h6{color:#dadada}body.colorscheme-auto code{background-color:#424242;color:#dadada}body.colorscheme-auto pre code{background-color:inherit;color:inherit}body.colorscheme-auto blockquote{border-left:2px solid #424242}body.colorscheme-auto table td,body.colorscheme-auto table th{border:2px solid #dadada}}body.colorscheme-dark .content .list ul li .title{color:#dadada}body.colorscheme-dark .content .list ul li .title:hover,body.colorscheme-dark .content .list ul li .title:focus{color:#42a5f5}body.colorscheme-dark .content .centered .about ul li a{color:#dadada}body.colorscheme-dark .content .centered .about ul li a:hover,body.colorscheme-dark .content .centered .about ul li a:focus{color:#42a5f5}@media(prefers-color-scheme:dark){body.colorscheme-auto .content .list ul li .title{color:#dadada}body.colorscheme-auto .content .list ul li .title:hover,body.colorscheme-auto .content .list ul li .title:focus{color:#42a5f5}body.colorscheme-auto .content .centered .about ul li a{color:#dadada}body.colorscheme-auto .content .centered .about ul li a:hover,body.colorscheme-auto .content .centered .about ul li a:focus{color:#42a5f5}}body.colorscheme-dark .navigation a,body.colorscheme-dark .navigation span{color:#dadada}body.colorscheme-dark .navigation a:hover,body.colorscheme-dark .navigation a:focus{color:#42a5f5}@media only screen and (max-width:768px){body.colorscheme-dark .navigation .navigation-list{background-color:#212121;border-top:solid 2px #424242;border-bottom:solid 2px #424242}}@media only screen and (max-width:768px){body.colorscheme-dark .navigation .navigation-list .menu-separator{border-top:2px solid #dadada}}@media only screen and (max-width:768px){body.colorscheme-dark .navigation #menu-toggle:checked+label>i{color:#424242}}body.colorscheme-dark .navigation i{color:#dadada}body.colorscheme-dark .navigation i:hover,body.colorscheme-dark .navigation i:focus{color:#42a5f5}body.colorscheme-dark .navigation .menu-button i:hover,body.colorscheme-dark .navigation .menu-button i:focus{color:#dadada}@media(prefers-color-scheme:dark){body.colorscheme-auto .navigation a,body.colorscheme-auto .navigation span{color:#dadada}body.colorscheme-auto .navigation a:hover,body.colorscheme-auto .navigation a:focus{color:#42a5f5}}@media only screen and (prefers-color-scheme:dark) and (max-width:768px){body.colorscheme-auto .navigation .navigation-list{background-color:#212121;border-top:solid 2px #424242;border-bottom:solid 2px #424242}}@media only screen and (prefers-color-scheme:dark) and (max-width:768px){body.colorscheme-auto .navigation .navigation-list .menu-separator{border-top:2px solid #dadada}}@media only screen and (prefers-color-scheme:dark) and (max-width:768px){body.colorscheme-auto .navigation #menu-toggle:checked+label>i{color:#424242}}@media(prefers-color-scheme:dark){body.colorscheme-auto .navigation i{color:#dadada}body.colorscheme-auto .navigation i:hover,body.colorscheme-auto .navigation i:focus{color:#42a5f5}body.colorscheme-auto .navigation .menu-button i:hover,body.colorscheme-auto .navigation .menu-button i:focus{color:#dadada}}body.colorscheme-dark .footer a{color:#42a5f5}@media(prefers-color-scheme:dark){body.colorscheme-auto .footer a{color:#42a5f5}} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json b/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json index d3cfec3..4a4a1f9 100644 --- a/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json +++ b/resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json @@ -1 +1 @@ -{"Target":"css/coder-dark.min.717236c74e0a5208ef73964a9f44c6b443b689a95b270d8b2a40d0c012460dac.css","MediaType":"text/css","Data":{"Integrity":"sha256-cXI2x04KUgjvc5ZKn0TGtEO2ialbJw2LKkDQwBJGDaw="}} \ No newline at end of file +{"Target":"css/coder-dark.min.ba5a9c70b9b1a615a836cc5f491aceda69f2fbda59bc30b873d6d37213b77c7b.css","MediaType":"text/css","Data":{"Integrity":"sha256-ulqccLmxphWoNsxfSRrO2mny+9pZvDC4c9bTchO3fHs="}} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content b/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content index 51927ad..f98fd80 100644 --- a/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content +++ b/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content @@ -1 +1 @@ -*,*:after,*:before{box-sizing:inherit}html{box-sizing:border-box;font-size:62.5%}body{color:#212121;background-color:#fafafa;font-family:Merriweather,Georgia,serif;font-size:1.6em;font-weight:300;line-height:1.8em}@media only screen and (max-width:768px){body{font-size:1.6em;line-height:1.6em}}a{font-weight:300;color:#1565c0;text-decoration:none}a:focus,a:hover{text-decoration:underline}p{margin:2rem 0}h1,h2,h3,h4,h5,h6{font-family:Lato,Helvetica,sans-serif;font-weight:700;color:#000;margin:6.4rem 0 3.2rem}h1{font-size:3.2rem;line-height:3.6rem}@media only screen and (max-width:768px){h1{font-size:3rem;line-height:3.4rem}}h2{font-size:2.8rem;line-height:3.2rem}@media only screen and (max-width:768px){h2{font-size:2.6rem;line-height:3rem}}h3{font-size:2.4rem;line-height:2.8rem}@media only screen and (max-width:768px){h3{font-size:2.2rem;line-height:2.6rem}}h4{font-size:2.2rem;line-height:2.6rem}@media only screen and (max-width:768px){h4{font-size:2rem;line-height:2.4rem}}h5{font-size:2rem;line-height:2.4rem}@media only screen and (max-width:768px){h5{font-size:1.8rem;line-height:2.2rem}}h6{font-size:1.8rem;line-height:2.2rem}@media only screen and (max-width:768px){h6{font-size:1.6rem;line-height:2rem}}b,strong{font-weight:700}.highlight>div,.highlight>pre{margin:0 0 2rem;padding:1rem;border-radius:1rem}pre{display:block;font-family:source code pro,lucida console,monospace;font-size:1.6rem;font-weight:400;line-height:2.6rem;overflow-x:auto;margin:0}pre code{display:inline-block;background-color:inherit;color:inherit}code{font-family:source code pro,lucida console,monospace;font-size:1.6rem;font-weight:400;background-color:#e0e0e0;color:#212121}blockquote{border-left:2px solid #e0e0e0;padding-left:2rem;line-height:2.2rem;font-weight:400;font-style:italic}th,td{padding:1.6rem}table{border-collapse:collapse}table td,table th{border:2px solid #000}table tr:first-child th{border-top:0}table tr:last-child td{border-bottom:0}table tr td:first-child,table tr th:first-child{border-left:0}table tr td:last-child,table tr th:last-child{border-right:0}img{max-width:100%}figure{text-align:center}.wrapper{display:flex;flex-direction:column;min-height:100vh;width:100%}.container{margin:0 auto;max-width:90rem;width:100%;padding-left:2rem;padding-right:2rem}.fab{font-weight:400}.fas{font-weight:700}.float-right{float:right}.float-left{float:left}.fab{font-weight:400}.fas{font-weight:900}img.emoji{height:1em;width:1em;margin:0 .05em 0 .1em;vertical-align:-.1em}.content{flex:1;display:flex;margin-top:1.6rem;margin-bottom:3.2rem}.content article header{margin-top:6.4rem;margin-bottom:3.2rem}.content article header h1{font-size:4.2rem;line-height:4.6rem;margin:0}@media only screen and (max-width:768px){.content article header h1{font-size:4rem;line-height:4.4rem}}.content article footer{margin-top:4rem}.content article footer .see-also{margin:3.2rem 0}.content article footer .see-also h3{margin:3.2rem 0}.content article p{text-align:justify;text-justify:auto;hyphens:auto}.content .post .post-title{margin-bottom:.75em}.content .post .post-meta i{text-align:center;width:1.6rem;margin-left:0;margin-right:.5rem}.content .post .post-meta .date .posted-on{margin-left:0;margin-right:1.5rem}.content figure{margin:0;padding:0}.content figcaption p{text-align:center;font-style:italic;font-size:1.6rem;margin:0}.avatar img{width:20rem;height:auto;border-radius:50%}@media only screen and (max-width:768px){.avatar img{width:10rem}}.list ul{margin:3.2rem 0;list-style:none;padding:0}.list ul li{font-size:1.8rem}@media only screen and (max-width:768px){.list ul li{margin:1.6rem 0}}.list ul li .date{display:inline-block;flex:1;width:20rem;text-align:right;margin-right:3rem}@media only screen and (max-width:768px){.list ul li .date{display:block;text-align:left}}.list ul li .title{font-size:1.8rem;flex:2;color:#212121;font-family:Lato,Helvetica,sans-serif;font-weight:700}.list ul li .title:hover,.list ul li .title:focus{color:#1565c0}@media only screen and (min-width:768.1px){.list ul:not(.pagination) li{display:flex}}.centered{display:flex;align-items:center;justify-content:center}.centered .about{text-align:center}.centered .about h1{margin-top:2rem;margin-bottom:.5rem}.centered .about h2{margin-top:1rem;margin-bottom:.5rem;font-size:2.4rem}@media only screen and (max-width:768px){.centered .about h2{font-size:2rem}}.centered .about ul{list-style:none;margin:3rem 0 1rem;padding:0}.centered .about ul li{display:inline-block;position:relative}.centered .about ul li a{color:#212121;text-transform:uppercase;margin-left:1rem;margin-right:1rem;font-size:1.6rem}.centered .about ul li a:hover,.centered .about ul li a:focus{color:#1565c0}@media only screen and (max-width:768px){.centered .about ul li a{font-size:1.4rem}}.centered .about ul li a i{font-size:3.2rem}.centered .error{text-align:center}.centered .error h1{margin-top:2rem;margin-bottom:.5rem;font-size:4.6rem}@media only screen and (max-width:768px){.centered .error h1{font-size:3.2rem}}.centered .error h2{margin-top:2rem;margin-bottom:3.2rem;font-size:3.2rem}@media only screen and (max-width:768px){.centered .error h2{font-size:2.8rem}}.navigation{height:6rem;width:100%}.navigation a,.navigation span{display:inline;font-size:1.6rem;font-family:Lato,Helvetica,sans-serif;font-weight:700;line-height:6rem;color:#212121}.navigation a:hover,.navigation a:focus{color:#1565c0}.navigation .navigation-title{letter-spacing:.1rem;text-transform:uppercase}.navigation .navigation-list{float:right;list-style:none;margin-bottom:0;margin-top:0}@media only screen and (max-width:768px){.navigation .navigation-list{position:absolute;top:6rem;right:0;z-index:5;visibility:hidden;opacity:0;padding:0;max-height:0;width:100%;background-color:#fafafa;border-top:solid 2px #e0e0e0;border-bottom:solid 2px #e0e0e0;transition:opacity .25s,max-height .15s linear}}.navigation .navigation-list .navigation-item{float:left;margin:0;position:relative}@media only screen and (max-width:768px){.navigation .navigation-list .navigation-item{float:none!important;text-align:center}.navigation .navigation-list .navigation-item a,.navigation .navigation-list .navigation-item span{line-height:5rem}}.navigation .navigation-list .navigation-item a,.navigation .navigation-list .navigation-item span{margin-left:1rem;margin-right:1rem}@media only screen and (max-width:768px){.navigation .navigation-list .separator{display:none}}@media only screen and (max-width:768px){.navigation .navigation-list .menu-separator{border-top:2px solid #212121;margin:0 8rem}.navigation .navigation-list .menu-separator span{display:none}}.navigation #dark-mode-toggle{margin:1.7rem 0;font-size:2.4rem;line-height:inherit}.navigation #menu-toggle{display:none}@media only screen and (max-width:768px){.navigation #menu-toggle:checked+label>i{color:#e0e0e0}.navigation #menu-toggle:checked+label+ul{visibility:visible;opacity:1;max-height:100rem}}.navigation .menu-button{display:none}@media only screen and (max-width:768px){.navigation .menu-button{display:block;margin:1.8rem 0;font-size:2.4rem;font-weight:400}}.navigation i{color:#212121;cursor:pointer}.navigation i:hover,.navigation i:focus{color:#1565c0}.pagination{margin-top:6rem;text-align:center;font-family:Lato,Helvetica,sans-serif}.pagination li{display:inline;text-align:center;font-weight:700}.pagination li span{margin:0;text-align:center;width:3.2rem}.pagination li a{font-weight:300}.pagination li a span{margin:0;text-align:center;width:3.2rem}.footer{width:100%;text-align:center;line-height:2rem;margin-bottom:1rem}.footer a{color:#1565c0} \ No newline at end of file +*,*:after,*:before{box-sizing:inherit}html{box-sizing:border-box;font-size:62.5%}body{color:#212121;background-color:#fafafa;font-family:Merriweather,Georgia,serif;font-size:1.6em;font-weight:300;line-height:1.8em}@media only screen and (max-width:768px){body{font-size:1.6em;line-height:1.6em}}a{font-weight:300;color:#1565c0;text-decoration:none}a:focus,a:hover{text-decoration:underline}p{margin:2rem 0}h1,h2,h3,h4,h5,h6{font-family:Lato,Helvetica,sans-serif;font-weight:700;color:#000;margin:6.4rem 0 3.2rem}h1{font-size:3.2rem;line-height:3.6rem}@media only screen and (max-width:768px){h1{font-size:3rem;line-height:3.4rem}}h2{font-size:2.8rem;line-height:3.2rem}@media only screen and (max-width:768px){h2{font-size:2.6rem;line-height:3rem}}h3{font-size:2.4rem;line-height:2.8rem}@media only screen and (max-width:768px){h3{font-size:2.2rem;line-height:2.6rem}}h4{font-size:2.2rem;line-height:2.6rem}@media only screen and (max-width:768px){h4{font-size:2rem;line-height:2.4rem}}h5{font-size:2rem;line-height:2.4rem}@media only screen and (max-width:768px){h5{font-size:1.8rem;line-height:2.2rem}}h6{font-size:1.8rem;line-height:2.2rem}@media only screen and (max-width:768px){h6{font-size:1.6rem;line-height:2rem}}b,strong{font-weight:700}.highlight>div,.highlight>pre{margin:0 0 2rem;padding:1rem;border-radius:1rem}pre{display:block;font-family:source code pro,lucida console,monospace;font-size:1.6rem;font-weight:400;line-height:2.6rem;overflow-x:auto;margin:0}pre code{display:inline-block;background-color:inherit;color:inherit}code{font-family:source code pro,lucida console,monospace;font-size:1.6rem;font-weight:400;background-color:#e0e0e0;color:#212121}blockquote{border-left:2px solid #e0e0e0;padding-left:2rem;line-height:2.2rem;font-weight:400;font-style:italic}th,td{padding:1.6rem}table{border-collapse:collapse}table td,table th{border:2px solid #000}table tr:first-child th{border-top:0}table tr:last-child td{border-bottom:0}table tr td:first-child,table tr th:first-child{border-left:0}table tr td:last-child,table tr th:last-child{border-right:0}img{max-width:100%}figure{text-align:center}.wrapper{display:flex;flex-direction:column;min-height:100vh;width:100%}.container{margin:0 auto;max-width:90rem;width:100%;padding-left:2rem;padding-right:2rem}.fab{font-weight:400}.fas{font-weight:700}.float-right{float:right}.float-left{float:left}.fab{font-weight:400}.fas{font-weight:900}img.emoji{height:1em;width:1em;margin:0 .05em 0 .1em;vertical-align:-.1em}.content{flex:1;display:flex;margin-top:1.6rem;margin-bottom:3.2rem}.content article header{margin-top:6.4rem;margin-bottom:3.2rem}.content article header h1{font-size:4.2rem;line-height:4.6rem;margin:0}@media only screen and (max-width:768px){.content article header h1{font-size:4rem;line-height:4.4rem}}.content article footer{margin-top:4rem}.content article footer .see-also{margin:3.2rem 0}.content article footer .see-also h3{margin:3.2rem 0}.content article p{text-align:justify;text-justify:auto;hyphens:auto}.content .post .post-title{margin-bottom:.75em}.content .post .post-meta i{text-align:center;width:1.6rem;margin-left:0;margin-right:.5rem}.content .post .post-meta .date .posted-on{margin-left:0;margin-right:1.5rem}.content figure{margin:0;padding:0}.content figcaption p{text-align:center;font-style:italic;font-size:1.6rem;margin:0}.avatar img{width:20rem;height:auto;border-radius:50%}@media only screen and (max-width:768px){.avatar img{width:10rem}}.list ul{margin:3.2rem 0;list-style:none;padding:0}.list ul li{font-size:1.8rem}@media only screen and (max-width:768px){.list ul li{margin:1.6rem 0}}.list ul li .date{display:inline-block;flex:1;width:20rem;text-align:right;margin-right:3rem}@media only screen and (max-width:768px){.list ul li .date{display:block;text-align:left}}.list ul li .title{font-size:1.8rem;flex:2;color:#212121;font-family:Lato,Helvetica,sans-serif;font-weight:700}.list ul li .title:hover,.list ul li .title:focus{color:#1565c0}@media only screen and (min-width:768.1px){.list ul:not(.pagination) li{display:flex}}.centered{display:flex;align-items:center;justify-content:center}.centered .about{text-align:center}.centered .about h1{margin-top:2rem;margin-bottom:.5rem}.centered .about h2{margin-top:1rem;margin-bottom:.5rem;font-size:2.4rem}@media only screen and (max-width:768px){.centered .about h2{font-size:2rem}}.centered .about ul{list-style:none;margin:3rem 0 1rem;padding:0}.centered .about ul li{display:inline-block;position:relative}.centered .about ul li a{color:#212121;text-transform:uppercase;margin-left:1rem;margin-right:1rem;font-size:1.6rem}.centered .about ul li a:hover,.centered .about ul li a:focus{color:#1565c0}@media only screen and (max-width:768px){.centered .about ul li a{font-size:1.4rem}}.centered .about ul li a i{font-size:3.2rem}.centered .error{text-align:center}.centered .error h1{margin-top:2rem;margin-bottom:.5rem;font-size:4.6rem}@media only screen and (max-width:768px){.centered .error h1{font-size:3.2rem}}.centered .error h2{margin-top:2rem;margin-bottom:3.2rem;font-size:3.2rem}@media only screen and (max-width:768px){.centered .error h2{font-size:2.8rem}}.navigation{height:6rem;width:100%}.navigation a,.navigation span{display:inline;font-size:1.6rem;font-family:Lato,Helvetica,sans-serif;font-weight:700;line-height:6rem;color:#212121}.navigation a:hover,.navigation a:focus{color:#1565c0}.navigation .navigation-title{letter-spacing:.1rem;text-transform:uppercase}.navigation .navigation-list{float:right;list-style:none;margin-bottom:0;margin-top:0}@media only screen and (max-width:768px){.navigation .navigation-list{position:absolute;top:6rem;right:0;z-index:5;visibility:hidden;opacity:0;padding:0;max-height:0;width:100%;background-color:#fafafa;border-top:solid 2px #e0e0e0;border-bottom:solid 2px #e0e0e0;transition:opacity .25s,max-height .15s linear}}.navigation .navigation-list .navigation-item{float:left;margin:0;position:relative}@media only screen and (max-width:768px){.navigation .navigation-list .navigation-item{float:none!important;text-align:center}.navigation .navigation-list .navigation-item a,.navigation .navigation-list .navigation-item span{line-height:5rem}}.navigation .navigation-list .navigation-item a,.navigation .navigation-list .navigation-item span{margin-left:1rem;margin-right:1rem}@media only screen and (max-width:768px){.navigation .navigation-list .separator{display:none}}@media only screen and (max-width:768px){.navigation .navigation-list .menu-separator{border-top:2px solid #212121;margin:0 8rem}.navigation .navigation-list .menu-separator span{display:none}}.navigation #dark-mode-toggle{margin:1.7rem 0;font-size:2.4rem;line-height:inherit}.navigation #menu-toggle{display:none}@media only screen and (max-width:768px){.navigation #menu-toggle:checked+label>i{color:#e0e0e0}.navigation #menu-toggle:checked+label+ul{visibility:visible;opacity:1;max-height:100rem}}.navigation .menu-button{display:none}@media only screen and (max-width:768px){.navigation .menu-button{display:block;margin:1.8rem 0;font-size:2.4rem;font-weight:400}}.navigation .menu-button i:hover,.navigation .menu-button i:focus{color:#000}.navigation i{color:#212121;cursor:pointer}.navigation i:hover,.navigation i:focus{color:#1565c0}.pagination{margin-top:6rem;text-align:center;font-family:Lato,Helvetica,sans-serif}.pagination li{display:inline;text-align:center;font-weight:700}.pagination li span{margin:0;text-align:center;width:3.2rem}.pagination li a{font-weight:300}.pagination li a span{margin:0;text-align:center;width:3.2rem}.footer{width:100%;text-align:center;line-height:2rem;margin-bottom:1rem}.footer a{color:#1565c0} \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json b/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json index 29ee4b6..c83b7fb 100644 --- a/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json +++ b/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json @@ -1 +1 @@ -{"Target":"css/coder.min.9836c03fe5c87d102278a33e86d0591ef36c89b1e17e8e547ebf84c05cee010e.css","MediaType":"text/css","Data":{"Integrity":"sha256-mDbAP+XIfRAieKM+htBZHvNsibHhfo5Ufr+EwFzuAQ4="}} \ No newline at end of file +{"Target":"css/coder.min.f19a84724525d6c44f67f32a7454077c01059aa7249da07789336656eaf64489.css","MediaType":"text/css","Data":{"Integrity":"sha256-8ZqEckUl1sRPZ/MqdFQHfAEFmqcknaB3iTNmVur2RIk="}} \ No newline at end of file From 4a31048a6413f7c6b4342b9a54ff590fe02d1f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20F=2E=20A=2E=20de=20Pr=C3=A1?= Date: Tue, 27 Oct 2020 16:18:28 -0300 Subject: [PATCH 58/96] Add missing translations for en and pt-br (#462) --- i18n/en.toml | 3 +++ i18n/pt-br.toml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/i18n/en.toml b/i18n/en.toml index 9715b85..c179de8 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -10,6 +10,9 @@ other = "series" [author] other = "author" +[posts] +other = "posts" + [reading_time] one = "One-minute read" other = "{{ .Count }}-minute read" diff --git a/i18n/pt-br.toml b/i18n/pt-br.toml index 679a6a6..8aa77ce 100644 --- a/i18n/pt-br.toml +++ b/i18n/pt-br.toml @@ -7,6 +7,12 @@ other = "tag" [series] other = "séries" +[author] +other = "autor" + +[posts] +other = "artigos" + [reading_time] one = "Um minuto de leitura" other = "{{ .Count }} minutos de leitura" From 24997cbb50ca6d251bcb2ff3a91a75a3471cd660 Mon Sep 17 00:00:00 2001 From: Erno Salo <39559256+endormi@users.noreply.github.com> Date: Tue, 27 Oct 2020 21:59:42 +0200 Subject: [PATCH 59/96] Add missing fi translations (#456) --- i18n/fi.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/i18n/fi.toml b/i18n/fi.toml index 253213f..b883f50 100644 --- a/i18n/fi.toml +++ b/i18n/fi.toml @@ -7,6 +7,9 @@ other = "merkki" [series] other = "sarja" +[author] +other = "Kirjoittaja" + [reading_time] one = "Yksi lukuminuutti" other = "{{ .Count }} lukuminuuttia" @@ -22,3 +25,9 @@ other = "Voit palata takaisin kotisivulle." [powered_by] other = "Tarjoaa" + +[see_also] +other = "Katso myös" + +[posts] +other = "Artikkelit" From 04be75e5a175e1881be8fd28ad9ebaef1acd3e28 Mon Sep 17 00:00:00 2001 From: MineCola Date: Wed, 28 Oct 2020 04:01:39 +0800 Subject: [PATCH 60/96] Added lack translation, Issue #417 (#457) --- i18n/zh-tw.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml index c86de6e..654c92a 100644 --- a/i18n/zh-tw.toml +++ b/i18n/zh-tw.toml @@ -7,6 +7,9 @@ other = "標籤" [series] other = "系列" +[author] +other = "作者" + [reading_time] one = "閱讀時間 1 分鐘" other = "閱讀時間 {{ .Count }} 分鐘" @@ -22,3 +25,9 @@ other = "返回 首頁." [powered_by] other = "技術支援" + +[see_also] +other = "參見" + +[posts] +other = "文章" \ No newline at end of file From 7ebb70014ed3065df30febabc55f0ff53ab351f1 Mon Sep 17 00:00:00 2001 From: Mustafa Dur <971530+tosbaha@users.noreply.github.com> Date: Tue, 27 Oct 2020 23:14:32 +0300 Subject: [PATCH 61/96] Turkish translation update (#459) --- i18n/tr.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/i18n/tr.toml b/i18n/tr.toml index 0d0f431..7436f05 100644 --- a/i18n/tr.toml +++ b/i18n/tr.toml @@ -7,6 +7,9 @@ other = "tag" [series] other = "dizi" +[author] +other = "yazar" + [reading_time] one = "Bir dakikalık okuma" other = "{{ .Count }} dakikalık okuma" @@ -22,3 +25,9 @@ other = "Ana sayfaya dönebilirsiniz." [powered_by] other = "Site program altyapısı" + +[see_also] +other = "Ayrıca bakınız" + +[posts] +other = "Gönderiler" From 79d5f656f0e6789de42ba5e34b9f7437a52ba81f Mon Sep 17 00:00:00 2001 From: Rajiv Singh Date: Wed, 28 Oct 2020 01:52:08 +0530 Subject: [PATCH 62/96] Added missing i18n strings in hi.toml (#454) * Update hi.toml * Update hi.toml --- i18n/hi.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/i18n/hi.toml b/i18n/hi.toml index 5f25212..9dc3f33 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -7,6 +7,9 @@ other = "टैग" [series] other = "श्रृंखला" +[author] +other = "लेखक" + [reading_time] one = "एक पढ़ने का समय" other = "{{ .Count }} पढ़ने का समय" @@ -22,3 +25,9 @@ other = "आप वापस आ सकते हैं म [powered_by] other = "द्वारा संचालित" + +[see_also] +other = "यह भी देखें" + +[posts] +other = "सामग्री" From 785dfc9e8db79b17db74beca34a83be6f5f5e301 Mon Sep 17 00:00:00 2001 From: FIGBERT Date: Tue, 27 Oct 2020 13:25:51 -0700 Subject: [PATCH 63/96] Update Hebrew i18m (#417) (#460) --- i18n/he.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/i18n/he.toml b/i18n/he.toml index 3ab19f1..ac71b5a 100644 --- a/i18n/he.toml +++ b/i18n/he.toml @@ -7,6 +7,9 @@ other = "תגית" [series] other = "סדרה" +[author] +other = "סופר" + [reading_time] one = "דקה אחת לקרוא" other = "דקות לקרוא {{ .Count }}" @@ -20,6 +23,12 @@ other = "מצטערים, דף אינטרנט זה אינו קיים" [head_back] other = " אתה יכול לחזורלדף הבית." - [powered_by] other = "מופעל על ידי" + +[see_also] +other = "רואה עוד ב" + +[posts] +other = "פוסטים" + From 1eac5386c612bf99c3264ab18deb2ca84c68d951 Mon Sep 17 00:00:00 2001 From: Joseph Ting Date: Wed, 28 Oct 2020 22:09:09 +0900 Subject: [PATCH 64/96] Update Japanese translation (#455) * Update Japanese translation * Add posts translation --- i18n/ja.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/i18n/ja.toml b/i18n/ja.toml index bcb1e7b..530f9be 100644 --- a/i18n/ja.toml +++ b/i18n/ja.toml @@ -7,6 +7,12 @@ other = "タグ" [series] other = "シリーズ" +[author] +other = "筆者" + +[posts] +other = "記事" + [reading_time] one = "1分で読めます" other = "{{ .Count }}分で読めます" @@ -18,7 +24,10 @@ other = "ページが見つかりません" other = "申し訳ございません。アクセスしようとしたページが見つかりませんでした。" [head_back] -other = "ホームページからお探しいただきますようお願い申し上げます。" +other = "トップページからお探しいただきますようお願い申し上げます。" [powered_by] other = "利用技術" + +[see_also] +other = "関連記事:" From aa1b91b5f8e6f53b0b71576cd0a2fb4d6500f1e9 Mon Sep 17 00:00:00 2001 From: Arafat Hasan Jenin Date: Wed, 28 Oct 2020 19:12:19 +0600 Subject: [PATCH 65/96] Update Bangla Translation (#461) * Bengali translation added * Update Bangla Translation * Update Bangla Translation * posts added to Bangla translation --- CONTRIBUTORS.md | 3 ++- i18n/bn.toml | 17 ++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c6861e3..c4b88eb 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -83,4 +83,5 @@ - [Ellison Leão](https://github.com/ellisonleao) - [Lucas de Oliveira](https://github.com/lucas-dOliveira) - [earnest ma](https://github.com/earnestma) -- [TMineCola](https://github.com/tminecola) \ No newline at end of file +- [TMineCola](https://github.com/tminecola) +- [Arafat Hasan](https://github.com/arafat-hasan) \ No newline at end of file diff --git a/i18n/bn.toml b/i18n/bn.toml index 0bf5f6f..84d9720 100644 --- a/i18n/bn.toml +++ b/i18n/bn.toml @@ -5,26 +5,29 @@ other = "বিভাগ" other = "ট্যাগ" [series] -other = "সারি" +other = "সিরিজ" + +[author] +other = "লেখক" + +[posts] +other = "সব পোস্ট" [reading_time] one = "পড়তে এক মিনিট লাগবে" other = "পড়তে {{ .Count }} মিনিট লাগবে" [page_not_found] -other = "কাঙ্ক্ষিত পাতাটি পাওয়া যায় নি" +other = "পাতাটি পাওয়া যায় নি" [page_does_not_exist] -other = "দুঃখিত, পাতাটির অস্তিত্ব নেই" +other = "দুঃখিত, কাঙ্ক্ষিত পাতাটির অস্তিত্ব নেই" [head_back] -other = "আপনি মূল পাতায় ফিরে যেতে পারেন" +other = "আপনি নীড়পাতায় ফিরে যেতে পারেন" [powered_by] other = "চালনায়" [see_also] other = "আরও দেখুন" - -[posts] -other = "সব পোস্ট" From 98b24b8186f83afaaa9cd1cf5b681ddae69132db Mon Sep 17 00:00:00 2001 From: Lorenzo Cameroni Date: Wed, 28 Oct 2020 14:14:09 +0100 Subject: [PATCH 66/96] Update italian translation (#463) --- i18n/it.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/i18n/it.toml b/i18n/it.toml index aae573f..a6f622a 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -5,7 +5,13 @@ other = "categoria" other = "tag" [series] -other = "series" +other = "serie" + +[author] +other = "autore" + +[posts] +other = "post" [reading_time] one = "Lettura di un minuto" From 3caad6cc756aa3eb08e8ffdaab3285fc8b1bf471 Mon Sep 17 00:00:00 2001 From: Erick Castellanos Date: Wed, 28 Oct 2020 14:01:59 -0600 Subject: [PATCH 67/96] Improving spanish translation, and adding missing keys. (#464) --- i18n/es.toml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/i18n/es.toml b/i18n/es.toml index 3f16c8c..687dc05 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -2,23 +2,32 @@ other = "categoría" [tag] -other = "tag" +other = "etiqueta" [series] other = "serie" +[author] +other = "autor" + +[posts] +other = "publicaciones" + [reading_time] one = "Un minuto de lectura" other = "{{ .Count }} minutos de lectura." [page_not_found] -other = "Página no existe." +other = "Página no encontrada." [page_does_not_exist] -other = "Disculpa, aquí no hay nada." +other = "Disculpa, la página no existe." [head_back] -other = "Puedes regresar a la primera página." +other = "Puedes regresar a la página inicial." [powered_by] -other = "Promovido por" +other = "Desarrollado por" + +[see_also] +other = "También ver en" From 141dedd0c07de2cb3d8a434e85e153e71e18c558 Mon Sep 17 00:00:00 2001 From: a1x42 Date: Wed, 28 Oct 2020 21:03:54 +0100 Subject: [PATCH 68/96] added missing translations (#465) Co-authored-by: a1x42 --- i18n/sk.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/i18n/sk.toml b/i18n/sk.toml index 0b99241..afb04c2 100644 --- a/i18n/sk.toml +++ b/i18n/sk.toml @@ -1,3 +1,6 @@ +[posts] +other = "články" + [category] other = "kategória" @@ -22,5 +25,11 @@ other = "Prepáčte, ale táto stránka neexistuje." [head_back] other = "Späť na domácu stránku." +[see_also] +other = "Pozrite tiež" + +[author] +other = "autor" + [powered_by] other = "Táto stránka bola vytvorená cez" From acef79480ddd506a4246540c69d4ad82610698ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20F=2E=20A=2E=20de=20Pr=C3=A1?= Date: Wed, 28 Oct 2020 21:37:28 -0300 Subject: [PATCH 69/96] Change Colorscheme Toggle Button to be floating (#466) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Moved colour scheme toggle and squashed commits (#433) Co-authored-by: Luiz F. A. de Prá * Fix toggle button code * Add built CSS files Co-authored-by: Jian Liew --- CONTRIBUTORS.md | 3 ++- assets/scss/_float.scss | 25 +++++++++++++++++++ assets/scss/_float_dark.scss | 24 ++++++++++++++++++ assets/scss/_navigation.scss | 4 +++ assets/scss/coder-dark.scss | 1 + assets/scss/coder.scss | 1 + layouts/_default/baseof.html | 1 + layouts/partials/float.html | 7 ++++++ layouts/partials/footer.html | 2 +- layouts/partials/header.html | 10 -------- ...s_1fcd9040f1144c65015c77e7b93bc5ac.content | 2 +- ...scss_1fcd9040f1144c65015c77e7b93bc5ac.json | 2 +- ...s_5e1eb8e37c42cdfb6215b61e44dcfa5f.content | 2 +- ...scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json | 2 +- 14 files changed, 70 insertions(+), 16 deletions(-) create mode 100644 assets/scss/_float.scss create mode 100644 assets/scss/_float_dark.scss create mode 100644 layouts/partials/float.html diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c4b88eb..51b373c 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -82,6 +82,7 @@ - [Hussaini Zulkifli](https://github.com/hussaini/) - [Ellison Leão](https://github.com/ellisonleao) - [Lucas de Oliveira](https://github.com/lucas-dOliveira) +- [Jian Loong Liew](https://github.com/JianLoong) - [earnest ma](https://github.com/earnestma) - [TMineCola](https://github.com/tminecola) -- [Arafat Hasan](https://github.com/arafat-hasan) \ No newline at end of file +- [Arafat Hasan](https://github.com/arafat-hasan) diff --git a/assets/scss/_float.scss b/assets/scss/_float.scss new file mode 100644 index 0000000..c98e1f4 --- /dev/null +++ b/assets/scss/_float.scss @@ -0,0 +1,25 @@ +.float-container { + bottom: 2rem; + right: 2rem; + z-index: 100; + position: fixed; + font-size: 1.6em; + a { + display: block; + color: $alt-fg-color; + background-color: $alt-bg-color; + font-size: 2.0rem; + padding: 0.5rem; + border-radius: 0.5rem; + opacity: 50%; + transition: opacity 0.5s, color 0.5s; + &:hover, &:focus { + color: $link-color; + opacity: 100%; + @media only screen and (max-width : 768px) { + color: $alt-fg-color; + opacity: 50%; + } + } + } +} diff --git a/assets/scss/_float_dark.scss b/assets/scss/_float_dark.scss new file mode 100644 index 0000000..40b984b --- /dev/null +++ b/assets/scss/_float_dark.scss @@ -0,0 +1,24 @@ +@mixin float_dark { + .float-container { + a { + color: $alt-fg-color-dark; + background-color: $alt-bg-color-dark; + &:hover, &:focus { + color: $link-color-dark; + @media only screen and (max-width : 768px) { + color: $alt-fg-color-dark; + } + } + } + } +} + +body.colorscheme-dark { + @include float_dark() +} + + body.colorscheme-auto { + @media (prefers-color-scheme: dark) { + @include float_dark() + } +} diff --git a/assets/scss/_navigation.scss b/assets/scss/_navigation.scss index 84f7014..343a46d 100644 --- a/assets/scss/_navigation.scss +++ b/assets/scss/_navigation.scss @@ -74,6 +74,10 @@ margin: 1.7rem 0; font-size: 2.4rem; line-height: inherit; + bottom: 2rem; + left: 2rem; + z-index: 100; + position: fixed; } #menu-toggle { display: none; diff --git a/assets/scss/coder-dark.scss b/assets/scss/coder-dark.scss index 2cd4cf9..9f7576b 100644 --- a/assets/scss/coder-dark.scss +++ b/assets/scss/coder-dark.scss @@ -3,3 +3,4 @@ @import "content_dark"; @import "navigation_dark"; @import "footer_dark"; +@import "float_dark"; diff --git a/assets/scss/coder.scss b/assets/scss/coder.scss index 2866b6c..6e27811 100644 --- a/assets/scss/coder.scss +++ b/assets/scss/coder.scss @@ -4,3 +4,4 @@ @import "navigation"; @import "pagination"; @import "footer"; +@import "float"; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 516cfef..ec7eff4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -99,6 +99,7 @@ + {{ partial "float" . }}
    {{ partial "header.html" . }} diff --git a/layouts/partials/float.html b/layouts/partials/float.html new file mode 100644 index 0000000..2113d07 --- /dev/null +++ b/layouts/partials/float.html @@ -0,0 +1,7 @@ +{{ if not .Site.Params.hidecolorschemetoggle }} + +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b2048ee..5131448 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -23,4 +23,4 @@ {{ end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c4b5cb5..d2d9967 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -4,11 +4,6 @@ {{ .Site.Title }} {{ if or .Site.Menus.main .Site.IsMultiLingual }} - {{ if not .Site.Params.hidecolorschemetoggle }} - - - - {{ end }}