diff options
author | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2016-11-04 19:29:27 +0300 |
---|---|---|
committer | Jonathan Rutheiser <jonathan.rutheiser@gmail.com> | 2016-11-04 19:29:27 +0300 |
commit | c1ea7b100842f04c0ea2a0b63ba44e7a96cfa830 (patch) | |
tree | 196bfd39b5882434359992170c62221aa74ee9bc | |
parent | 9e1c220dc8806bc44bceb7561f5c21ae59fedb8c (diff) |
Add alt attribute to logo
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/nav.html | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9abc627..82e5ae6 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -26,4 +26,5 @@ disqusShortname = "" url = "logo.png" width = 50 height = 50 + alt = "Logo" diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 5bf34f1..84ca9f8 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,5 +1,8 @@ <nav class="nav"> - <a href="{{ .Site.BaseURL }}" class="nav-logo"><img src="{{ .Site.BaseURL }}images/{{ .Site.Params.logo.url }}" width="{{ .Site.Params.logo.width }}" height="{{ .Site.Params.logo.height }}"></a> + <a href="{{ .Site.BaseURL }}" class="nav-logo"> + <img src="{{ .Site.BaseURL }}images/{{ .Site.Params.logo.url }}" width="{{ + .Site.Params.logo.width }}" height="{{ .Site.Params.logo.height }}" alt="{{ .Site.Params.logo.alt }}"> + </a> <ul class="nav-links"> {{ range .Site.Menus.main }} |