summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assets/sass/style.scss2
-rw-r--r--exampleSite/config.toml6
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/post-meta.html2
-rw-r--r--layouts/shortcodes/link.html4
-rw-r--r--resources/_gen/assets/scss/sass/style.scss_f300667da4f5b5f84e1a9e0702b2fdde.content2
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 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }} prefix="og: http://ogp.me/ns#">
{{- partial "head.html" . -}}
- <body class="theme-base-{{ site.Params.color_scheme }}">
+ <body class="theme-base-{{ site.Params.colorScheme }}">
{{ if .Params.toc }}{{ partial "sidebar-toc.html" . }}{{ else }}{{ partial "sidebar.html" . }}{{ end }}
<div class="wrap">
<header class="masthead">
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 @@
</ul>
</div>
{{- else }}
- {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.main_sections) }}
+ {{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
<div class="articles">
{{- 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 @@
<div class="post-meta">
{{- $root := . -}}
- {{- with .Param "post_meta" -}}
+ {{- with .Param "postMeta" -}}
{{- range $field := . -}}
{{- $p := printf "post-meta/%s.html" $field -}}
{{- partial $p $root -}}
diff --git a/layouts/shortcodes/link.html b/layouts/shortcodes/link.html
index 362ce94..e347adc 100644
--- a/layouts/shortcodes/link.html
+++ b/layouts/shortcodes/link.html
@@ -1,3 +1 @@
-<a href="{{ .Get 0 | absURL }}" {{- with .Get "title" }} title="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }} {{- with .Get "target" }} target="{{.}}"{{ end }} {{- with .Get "rel" }} rel="{{.}}"{{ end }}>
- {{ .Inner }}
-</a>
+<a href="{{ .Get 0 | absURL }}" {{- with .Get "title" }} title="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }} {{- with .Get "target" }} target="{{.}}"{{ end }} {{- with .Get "rel" }} rel="{{.}}"{{ end }}>{{ .Inner }}</a>
diff --git a/resources/_gen/assets/scss/sass/style.scss_f300667da4f5b5f84e1a9e0702b2fdde.content b/resources/_gen/assets/scss/sass/style.scss_f300667da4f5b5f84e1a9e0702b2fdde.content
index 4b109c5..da3695c 100644
--- a/resources/_gen/assets/scss/sass/style.scss_f300667da4f5b5f84e1a9e0702b2fdde.content
+++ b/resources/_gen/assets/scss/sass/style.scss_f300667da4f5b5f84e1a9e0702b2fdde.content
@@ -8,7 +8,7 @@
/*
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
*/
/* Ed: the minimal edition theme.
* ___________________