From 358f43126e84b0199f57c7346631a3cd1ac72dc4 Mon Sep 17 00:00:00 2001 From: avery Date: Thu, 1 Jun 2023 20:01:10 -0700 Subject: [PATCH 1/3] code color config support --- assets/sass/override.scss | 1 + 1 file changed, 1 insertion(+) 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 === From 6d8f0ca5faf0bbe20cf0505b82babc807d9499dc Mon Sep 17 00:00:00 2001 From: avery Date: Thu, 1 Jun 2023 20:01:18 -0700 Subject: [PATCH 2/3] favicon config support + documentation --- README.md | 4 ++++ layouts/partials/head.html | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index d373e22a..805e0c80 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,8 @@ copyright = "© Copyright Year, Your Name" homeImageBorderColor = "#ffffff" fontFamilyBase = "Helvetica Neue" # First-choice font fontColor = "#212529" + fontFamilyBase = "Helvetica Neue" + 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/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 }} From 1bd78191d6892469464a11026eeb36cbb21cefb4 Mon Sep 17 00:00:00 2001 From: avery Date: Thu, 1 Jun 2023 20:11:23 -0700 Subject: [PATCH 3/3] removed redundant fontfamily param --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 805e0c80..49c969e9 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,6 @@ copyright = "© Copyright Year, Your Name" homeImageBorderColor = "#ffffff" fontFamilyBase = "Helvetica Neue" # First-choice font fontColor = "#212529" - fontFamilyBase = "Helvetica Neue" codeColor = "#e83e8c" [[params.social]] fa_icon = "fab fa-github fa-1x" # Font Awesome icon class