diff --git a/CHANGELOG.md b/CHANGELOG.md index 36a33b9..30a0c47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +* Option to set color variables in config.toml. Options are: + * **font**, general font color, default to *black*; + * **background**, general background color, default to *white*; + * **main**, theme color, used for footer among others, default to *grey*; + * **font_above**, used for font above *main* color, default to *white*. ## [1.0.0] - 2020-04-27 ### Added diff --git a/README.md b/README.md index c6aa550..d149ffc 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,10 @@ It is possible to basicaly change some colors: ```toml [params.colors] - main = "green" # Color of the footer - alt_text = "black" # Color of the text above 'main' color + font = "black" # General font color, default to black + background = "white" # General background color, default to white + main = "grey" # Theme color, used for footer among others, default to grey + font_above = "white" # Used for font above *main* color, default to white ``` ### Custom CSS diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 006eb53..eaad61f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,19 @@ {{- partial "head.html" . -}} - +{{ if .Site.Params.colors }} + +{{ end }} - {{- partial "header.html" . -}} - {{- block "main" . }}{{- end }} - {{- partial "footer.html" . -}} + {{- partial "header.html" . -}} + {{- block "main" . }}{{- end }} + {{- partial "footer.html" . -}} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 59e05c6..d76eea8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,13 +1,10 @@