Merge branch 'add-header-logo-alt-text' into 'master'

Add header logo alt text

See merge request gabmus/hugo-ficurinia!3
This commit is contained in:
GabMus 2022-10-16 21:34:43 +00:00
commit 12a110a131
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -4,7 +4,7 @@
<div id="titleContainer">
{{ if not (.Site.Params.logoRightOfTitle | default false) }}
<a class="unstyledLink" href="/">
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' />
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' alt='{{ .Site.Params.LogoAltText | default "Logo" }}'/>
</a>
{{ end }}
<div class="rightOfLogo">
@ -12,7 +12,7 @@
<h1>
<a class="unstyledLink" href="/">{{ .Site.Title | default "Ficurinia" }}</a>
{{ if .Site.Params.logoRightOfTitle | default false }}
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' />
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' alt='{{ .Site.Params.LogoAltText | default "Logo" }}'/>
{{ end }}
</h1>
{{ if (.Site.Params.mobileHamburgerNav | default false) }}