refactor: move fallback theme from config to theme parser

This commit is contained in:
George Cushen committed 2022-01-19 22:32:20 +00:00
1 parent 6d6b4b4c83
commit 273bbe2370
3 files changed
+5 -6

No files matched your search

@@ -6,9 +6,9 @@
# Appearance
appearance:
theme_day:
theme_night:
font:
theme_day: minimal
theme_night: minimal
font: minimal
font_size: L
# SEO
@@ -48,6 +48,8 @@ locale:
features:
privacy_pack: false
require_isotope: false
marketing:
google_analytics: ''
google_tag_manager: ''
-2
View File
@@ -52,8 +52,6 @@ security:
- ^HUGO_
- ^WC_
params:
theme: minimal
font: native
locale:
date_format: 'Jan 2, 2006'
time_format: '3:04 PM'
-1
View File
@@ -2,7 +2,6 @@
{{- $index := slice -}}
{{- $pages := site.RegularPages -}}
{{- /* Add the index page of multi-page content separately since it's not in RegularPages above. */ -}}
{{- $pages := $pages | union (where (where site.Pages "Kind" "section") "Type" "docs") -}}
{{- $pages := $pages | union (where (where site.Pages "Kind" "section") "Type" "book") -}}
{{- /* Add author pages to index so their bios can be searched. Hide empty `/authors/` node. */ -}}
{{- $pages := $pages | union (where (where site.Pages "Section" "authors") "Params.superuser" "!=" nil) -}}