diff --git a/README.md b/README.md index 72134a4..0c075ae 100644 --- a/README.md +++ b/README.md @@ -73,10 +73,12 @@ items = [ [extra.index] title = "Main title" image = "https://via.placeholder.com/200" +image_alt = "Placeholder text describing the index's image." [extra.default_author] name = "John Doe" avatar = "https://via.placeholder.com/200" +avatar_alt = "Placeholder text describing the default author's avatar." [extra.social] github = "https://github.com/johndoe" diff --git a/templates/categories/single.html b/templates/categories/single.html index 164f03d..24fb3a6 100644 --- a/templates/categories/single.html +++ b/templates/categories/single.html @@ -54,11 +54,11 @@ {% if page.extra.author.name %} {{ page.extra.author.name }} {% if page.extra.author.avatar %} - + {{ page.extra.author.avatar_alt }} {% endif %} {% else %} {{ config.extra.default_author.name }} - + {{ config.extra.default_author.avatar_alt }} {% endif %} diff --git a/templates/index.html b/templates/index.html index ce13261..4958145 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,7 +5,7 @@

{{ config.extra.index.title }}

- + {{ config.extra.index.image_alt }}
{% if config.extra.social.github %} diff --git a/templates/page.html b/templates/page.html index 8c9ed83..b81d646 100644 --- a/templates/page.html +++ b/templates/page.html @@ -49,11 +49,11 @@ {% if page.extra.author.name %} {{ page.extra.author.name }} {% if page.extra.author.avatar %} - + {{ page.extra.author.avatar_alt }} {% endif %} {% else %} {{ config.extra.default_author.name }} - + {{ config.extra.default_author.avatar_alt }} {% endif %}
diff --git a/templates/tags/single.html b/templates/tags/single.html index c622357..179d13b 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -54,11 +54,11 @@ {% if page.extra.author.name %} {{ page.extra.author.name }} {% if page.extra.author.avatar %} - + {{ page.extra.author.avatar_alt }} {% endif %} {% else %} {{ config.extra.default_author.name }} - + {{ config.extra.default_author.avatar_alt }} {% endif %} diff --git a/theme.toml b/theme.toml index fad2219..18b9aec 100644 --- a/theme.toml +++ b/theme.toml @@ -73,10 +73,12 @@ items = [ [extra.index] title = "Main title" image = "https://via.placeholder.com/200" +image_alt = "Placeholder text describing the index's image." [extra.default_author] name = "John Doe" avatar = "https://via.placeholder.com/200" +avatar_alt = "Placeholder text describing the default author's avatar." [extra.social] github = "https://github.com/johndoe"