diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/partials/icon.html | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a16f1f0..542130a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ <!doctype html> -<html> +<html lang="{{ .Site.LanguageCode | default "en-us" }}"> <head> <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} // {{ .Site.Title }}{{ end }}</title> <meta charset="utf-8" /> @@ -17,7 +17,7 @@ </head> <body> <header class="app-header"> - <a href="/"><img class="app-header-avatar" src="{{ .Site.BaseURL }}/avatar.jpg" /></a> + <a href="/"><img class="app-header-avatar" src="{{ .Site.BaseURL }}/avatar.jpg" alt="{{ .Site.Params.author | default "John Doe" }}" /></a> <h1>{{ .Site.Title }}</h1> <p>{{ .Site.Params.description | default "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vehicula turpis sit amet elit pretium." }}</p> <div class="app-header-social"> diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html index e3f67f0..123bd23 100644 --- a/layouts/partials/icon.html +++ b/layouts/partials/icon.html @@ -1,5 +1,6 @@ {{- if isset .ctx.Site.Data.m10c.icons .name -}} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-{{ .name }}"> + <title>{{ .name }}</title> {{ safeHTML (index .ctx.Site.Data.m10c.icons .name) }} </svg> {{- else -}} |