diff --git a/.gitignore b/.gitignore index b1705b4..f389b1f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -.hugo_build.lock -.DS_Store -resources/ -todo.md -exampleSite/public/ +public/* .env +.hugo_build.lock diff --git a/assets/herman.css b/assets/herman.css index d59cdf7..daba1dd 100644 --- a/assets/herman.css +++ b/assets/herman.css @@ -10,7 +10,7 @@ font-size: 75%; --color-dark: #1a1a1a; --color-light: #faf8f4; - --color-primary: #EF9F27; + --color-primary: {{ .Site.Params.accentColor }}; --size: 1rem; --spacing: calc(var(--size) * 2.4); } diff --git a/hugo.toml b/hugo.toml index 96dc156..2309541 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,3 +1,5 @@ +[params] +accentColor = "#EF9F27" [module] [[module.imports]] path = 'forge.alexselimov.com/aselimov/hugo-unified-git-activity' diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 294749a..f7c093a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - +
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 70d1193..f35b51a 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,4 +1,3 @@ -{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} {{- $authorEmail := "" }} {{- with site.Params.author }} {{- if reflect.IsMap . }} @@ -6,14 +5,8 @@ {{- $authorEmail = . }} {{- end }} {{- end }} -{{- else }} - {{- with site.Author.email }} - {{- $authorEmail = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} - {{- end }} {{- end }} -{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} {{- $authorName := "" }} {{- with site.Params.author }} {{- if reflect.IsMap . }} @@ -21,12 +14,7 @@ {{- $authorName = . }} {{- end }} {{- else }} - {{- $authorName = . }} - {{- end }} -{{- else }} - {{- with site.Author.name }} {{- $authorName = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} {{- end }} {{- end }} @@ -49,7 +37,11 @@ {{ .Permalink }}