From db5d361b777e3669b1169dc8f7f68c89b43e0bd3 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 15 May 2022 17:12:28 +0200 Subject: Update config format --- assets/sass/style.scss | 2 +- exampleSite/config.toml | 6 +++--- layouts/_default/baseof.html | 2 +- layouts/index.html | 2 +- layouts/partials/post-meta.html | 2 +- layouts/shortcodes/link.html | 4 +--- .../scss/sass/style.scss_f300667da4f5b5f84e1a9e0702b2fdde.content | 2 +- 7 files changed, 9 insertions(+), 11 deletions(-) diff --git a/assets/sass/style.scss b/assets/sass/style.scss index 9e08ea5..3e5b83c 100644 --- a/assets/sass/style.scss +++ b/assets/sass/style.scss @@ -13,7 +13,7 @@ $regular-font-size: 1.25em; /* 20px / 16px = 1.25em; support text resizing in al /* Color - Make sure to leave color_scheme in `config.toml` file empty for granular control + Make sure to leave colorScheme in `config.toml` file empty for granular control */ $text-light-color: #676767; $text-color: #454545; diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5e67239..306b995 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -65,15 +65,15 @@ enableRobotsTXT = true # Site description. Used in meta description description = 'Ed is a Hugo theme designed for textual editors based on minimal computing principles, and focused on legibility and flexibility.' # Color scheme. Options: red, orange, magenta, cyan, blue, brown - color_scheme = '' + colorScheme = '' # Used in site header tagline = 'a Hugo theme for minimal editions' # Custom footer text footer = '' # Sections to be displayed in the main page - main_sections = ['posts', 'dramas', 'narratives', 'poems'] + mainSections = ['posts', 'dramas', 'narratives', 'poems'] # Order of post meta information - post_meta = ['date'] + postMeta = ['date'] # Posts date format, for example: 2006-01-02 dateformat = 'January 02, 2006' # Show "Read more" button in list if true diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e93b718..bed0257 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,7 @@ {{- partial "head.html" . -}} - + {{ if .Params.toc }}{{ partial "sidebar-toc.html" . }}{{ else }}{{ partial "sidebar.html" . }}{{ end }}
diff --git a/layouts/index.html b/layouts/index.html index 7b54a46..a9c9279 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -16,7 +16,7 @@
{{- else }} - {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.main_sections) }} + {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{- range $paginator.Pages }} {{- .Render "teaser" }} diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index a539c54..19c3ce6 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -1,6 +1,6 @@