Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/hallo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2019-01-13 15:41:51 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-01-13 15:42:48 +0300
commit4c20e50dbe33888aa98da15a38c1ee726fc5a392 (patch)
tree9abc2686f33e8236540925ed27a5237efcac7d7f /layouts
parentb0f7e8160e046d40fd67deb380d0af0bbad6a8f3 (diff)
Add configuration options for colors
It's now possible to add a [params.colors] section to config.toml to configure the colors the site uses. It is used like this: [params.colors] background = "#81c6ff" foreground = "#edf7ff" hover = "#ffba82" Breaking changes: The SCSS variables have been renamed. * $background-1 is now $color-background * $default-light is now $color-foreground * $default-dark is now $color-hover See #4
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 829e9b8..193f38b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -19,7 +19,7 @@
{{- $inServerMode := .Site.IsServer }}
{{- $cssTarget := "css/style.css" }}
{{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
- {{- $style := resources.Get "scss/hallo.scss" | toCSS $cssOptions }}
+ {{- $style := resources.Get "scss/hallo.scss" | resources.ExecuteAsTemplate "style.hallo.scss" . | toCSS $cssOptions }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700">