new site param: logoAlt

This commit is contained in:
zwbetz-gh 2021-05-16 01:44:41 -05:00
parent 78021345d9
commit fa9968a3ed
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 }}