Add header logo alt text
This commit is contained in:
parent
c46dc4b5f6
commit
a071045494
|
@ -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"
|
||||
|
|
|
@ -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) }}
|
||||
|
|
Loading…
Reference in New Issue