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:
commit
12a110a131
|
@ -296,6 +296,7 @@ Finally, make sure to edit your config.toml to include the following:
|
||||||
# ...
|
# ...
|
||||||
[params]
|
[params]
|
||||||
logo = "/logo.svg"
|
logo = "/logo.svg"
|
||||||
|
logoAltText = "Logo"
|
||||||
favicon = "/favicon.png"
|
favicon = "/favicon.png"
|
||||||
faviconIco = "/favicon.ico"
|
faviconIco = "/favicon.ico"
|
||||||
appletouch = "/apple-touch-icon.png"
|
appletouch = "/apple-touch-icon.png"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div id="titleContainer">
|
<div id="titleContainer">
|
||||||
{{ if not (.Site.Params.logoRightOfTitle | default false) }}
|
{{ if not (.Site.Params.logoRightOfTitle | default false) }}
|
||||||
<a class="unstyledLink" href="/">
|
<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>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="rightOfLogo">
|
<div class="rightOfLogo">
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<h1>
|
<h1>
|
||||||
<a class="unstyledLink" href="/">{{ .Site.Title | default "Ficurinia" }}</a>
|
<a class="unstyledLink" href="/">{{ .Site.Title | default "Ficurinia" }}</a>
|
||||||
{{ if .Site.Params.logoRightOfTitle | default false }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
{{ if (.Site.Params.mobileHamburgerNav | default false) }}
|
{{ if (.Site.Params.mobileHamburgerNav | default false) }}
|
||||||
|
|
Loading…
Reference in New Issue