From b95f6a69bb0b96f63b370bf5bce66cf2f048a3fa Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sat, 13 Aug 2022 13:08:56 +0200 Subject: [PATCH 1/5] fix jumbotron background overlay color --- assets/scss/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 4dd0276..cd76151 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -951,8 +951,8 @@ header.jumbotronContainer { }} background: linear-gradient( - transparentize(var(--default_bg), 0.2), - transparentize(var(--default_bg), 0.2) + transparentize(dark_bg, 0.2), + transparentize(dark_bg, 0.2) ), url({{ .Site.Data.jumbotron.background }}); background-size: cover; From 5de2c29a299874baff47da88286eb356a9ba7b9f Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sat, 13 Aug 2022 13:11:07 +0200 Subject: [PATCH 2/5] fix jumbotron background overlay color (2) --- assets/scss/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index c832385..0a9252b 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -960,8 +960,8 @@ header.jumbotronContainer { }} background: linear-gradient( - transparentize(dark_bg, 0.2), - transparentize(dark_bg, 0.2) + transparentize($dark_bg, 0.2), + transparentize($dark_bg, 0.2) ), url({{ .Site.Data.jumbotron.background }}); background-size: cover; From d44096143e2eeb4e2d499f0b7c5c6ee48583b976 Mon Sep 17 00:00:00 2001 From: Olof Nord Date: Sun, 9 Oct 2022 21:40:22 +0200 Subject: [PATCH 3/5] Add single post image alt text, if present. The current template does not allow for an alt text to the single layout. This small change adds the alt text if present in the page front matter. --- layouts/partials/single_post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/single_post.html b/layouts/partials/single_post.html index 756081b..87f5309 100644 --- a/layouts/partials/single_post.html +++ b/layouts/partials/single_post.html @@ -14,7 +14,7 @@ {{ end }} {{ if .Params.Image }}
- + {{ .Params.Alt }} {{ if .Params.ImageCaption }}

{{ .Params.ImageCaption | markdownify }}

From c46dc4b5f676e8d454eb8c4fcbae7b5ecbced2d0 Mon Sep 17 00:00:00 2001 From: GabMus Date: Sun, 9 Oct 2022 21:21:15 +0000 Subject: [PATCH 4/5] Mention "alt" post param in readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2a5ac0b..67dc5bb 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,7 @@ Every post can have various parameters in the frontmatter, here are some that yo - `description`: a brief description of the post, useful for SEO optimization - `tags`: an array of tags, useful for searching similar articles - `image`: a link to a feature image for the article, shown in the preview as well +- `alt`: alternative text to be shown if image is not available or fails to download - `imageCaption`: a markdown text rendered as a caption for the article image described above - `featured`: boolean, indicate if the post should be shown as featured - `comments`: boolean, if true it enables comments for the current post, if false it disables them (default is true) From a0710454944a27b475a6b78acd45da64744f6bb0 Mon Sep 17 00:00:00 2001 From: Olof Nord Date: Sun, 16 Oct 2022 21:34:42 +0000 Subject: [PATCH 5/5] Add header logo alt text --- README.md | 1 + layouts/partials/header.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67dc5bb..958ee2c 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,7 @@ Finally, make sure to edit your config.toml to include the following: # ... [params] logo = "/logo.svg" + logoAltText = "Logo" favicon = "/favicon.png" faviconIco = "/favicon.ico" appletouch = "/apple-touch-icon.png" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2ef48b1..929af92 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -4,7 +4,7 @@
{{ if not (.Site.Params.logoRightOfTitle | default false) }} - + {{ .Site.Params.LogoAltText | default "Logo" }} {{ end }}