Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jrutheiser/hugo-lithium-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rutheiser <jonathan.rutheiser@gmail.com>2016-11-04 19:31:31 +0300
committerGitHub <noreply@github.com>2016-11-04 19:31:31 +0300
commit8761c389cc3c9b9ae71719d573ea7fe4a92a8e94 (patch)
tree196bfd39b5882434359992170c62221aa74ee9bc
parent9e1c220dc8806bc44bceb7561f5c21ae59fedb8c (diff)
parentc1ea7b100842f04c0ea2a0b63ba44e7a96cfa830 (diff)
Merge pull request #4 from jrutheiser/jrutheiser/add-logo-alt-attribute
Add alt attribute to logo
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/nav.html5
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 }}