diff --git a/README.md b/README.md index d373e22a..49c969e9 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,8 @@ copyright = "© Copyright Year, Your Name" header_title = "Your Name" # Your header title header_subtitle = "Your Creative Subtitle" # Your header subtitle home_image = "/images/avatar.png" # Path to header image starting from the static directory (optional) + favicon = "/favicon.ico" # Path to favicon image starting from static. Defaults to "./favicon.ico" + favicon_type = "x-icon" # Image extension. Defaults to x-icon recent_posts = 5 # Max amount of recent posts to show mainSections = ["posts", "post", "blog"] # Main sections to include in recent posts [params.style] # CSS style overrides @@ -99,6 +101,7 @@ copyright = "© Copyright Year, Your Name" homeImageBorderColor = "#ffffff" fontFamilyBase = "Helvetica Neue" # First-choice font fontColor = "#212529" + codeColor = "#e83e8c" [[params.social]] fa_icon = "fab fa-github fa-1x" # Font Awesome icon class href = "http://github.com/youruser" # Link to associate with icon (http://, https://, mailto:) diff --git a/assets/sass/override.scss b/assets/sass/override.scss index ce2515ca..b0459682 100644 --- a/assets/sass/override.scss +++ b/assets/sass/override.scss @@ -4,6 +4,7 @@ $body-color: {{ if .Param "style.fontColor" }}{{ .Param "style.fontColor"}}{{ el $home-image-border-color: {{ if .Param "style.homeImageBorderColor" }}{{ .Param "style.homeImageBorderColor"}}{{ else }}#ffffff{{ end }}; $font-family-base: {{ if .Param "style.fontFamilyBase"}}{{ .Param "style.fontFamilyBase"}},{{end}}"Helvetica Neue", Arial, sans-serif; $font-size-base: 0.95rem; +$code-color: {{ if .Param "style.codeColor" }}{{ .Param "style.codeColor"}}{{ else }}"inherit"{{ end }}; @import "../../node_modules/bootstrap/scss/bootstrap"; // === Import Font Awesome === diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 516b02f2..f199bc25 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,6 +4,13 @@ + {{/* Adds favicon specification to config.toml */}} + + {{/* Adds complete override capability */}} {{ $overrideTemplate := resources.Get "sass/override.scss" }} {{ $override := $overrideTemplate | resources.ExecuteAsTemplate "css/theme.scss" . | toCSS | minify }}