diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2021-05-16 09:44:41 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2021-05-16 09:44:41 +0300 |
commit | fa9968a3ed2ff11a41c36d76cf752f0aa1701e6a (patch) | |
tree | 113596cba6225535690305fbfd88acb893ac0ef2 | |
parent | 78021345d9f3bd1f342d87d82333d9718786e327 (diff) |
new site param: logoAlt
-rw-r--r-- | exampleSite/config.yaml | 1 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index a8566b6..6949c55 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -28,6 +28,7 @@ params: search: true showThemeSwitcher: true moveFooterToHeader: false + logoAlt: "An alternative text description of the logo" customCss: - css/custom_01.css - css/custom_02.css diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 05f45c8..245d510 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,7 +6,9 @@ href="{{ .Site.BaseURL }}" aria-label="{{ .Site.Title }} home page" > - <img src="{{ "images/logo.svg" | relURL }}" alt=""> + <img + src="{{ "images/logo.svg" | relURL }}" + alt="{{ .Site.Params.logoAlt | default "Logo" }}"> </a> <p class="library-desc"> {{ with .Site.Params.description }} {{ . | markdownify }} {{ end }} |