From: Vladimír Vondruš Date: Fri, 8 May 2020 15:01:01 +0000 (+0200) Subject: templates: use an empty alt for navbar brand image. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=76f5921f35f35db62574da16d019dce4e9b7ca41;p=blog.git templates: use an empty alt for navbar brand image. Helps screen readers (and textual browsers) ignore the image as non-essential. Another variant would be putting some text there, but since the brand name is right after, it would be superfluous, not giving any additional information. --- diff --git a/documentation/templates/doxygen/base.html b/documentation/templates/doxygen/base.html index 39ea7c26..30477a99 100644 --- a/documentation/templates/doxygen/base.html +++ b/documentation/templates/doxygen/base.html @@ -28,10 +28,10 @@
{% if M_MAIN_PROJECT_URL and PROJECT_BRIEF %} - {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_NAME }} | {{ PROJECT_BRIEF }} + {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_NAME }} | {{ PROJECT_BRIEF }} {% else %} - {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_NAME }}{% if PROJECT_BRIEF %} {{ PROJECT_BRIEF }}{% endif %} + {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_NAME }}{% if PROJECT_BRIEF %} {{ PROJECT_BRIEF }}{% endif %} {% endif %} {% if M_LINKS_NAVBAR1 or M_LINKS_NAVBAR2 or not M_SEARCH_DISABLED %}
diff --git a/documentation/templates/python/base.html b/documentation/templates/python/base.html index 54162563..79718698 100644 --- a/documentation/templates/python/base.html +++ b/documentation/templates/python/base.html @@ -28,10 +28,10 @@
{% if MAIN_PROJECT_URL and PROJECT_SUBTITLE %} - {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_TITLE }} | {{ PROJECT_SUBTITLE }} + {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_TITLE }} | {{ PROJECT_SUBTITLE }} {% else %} - {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_TITLE }}{% if PROJECT_SUBTITLE %} {{ PROJECT_SUBTITLE }}{% endif %} + {% if PROJECT_LOGO %}{% endif %}{{ PROJECT_TITLE }}{% if PROJECT_SUBTITLE %} {{ PROJECT_SUBTITLE }}{% endif %} {% endif %} {% if LINKS_NAVBAR1 or LINKS_NAVBAR2 or not SEARCH_DISABLED %}
diff --git a/documentation/test_doxygen/layout_navbar_project_logo/index.html b/documentation/test_doxygen/layout_navbar_project_logo/index.html index cdcf6574..1869ee84 100644 --- a/documentation/test_doxygen/layout_navbar_project_logo/index.html +++ b/documentation/test_doxygen/layout_navbar_project_logo/index.html @@ -11,7 +11,7 @@
diff --git a/documentation/test_doxygen/layout_navbar_project_logo_main_project_url/index.html b/documentation/test_doxygen/layout_navbar_project_logo_main_project_url/index.html index cd8cdf1d..7f6c66cc 100644 --- a/documentation/test_doxygen/layout_navbar_project_logo_main_project_url/index.html +++ b/documentation/test_doxygen/layout_navbar_project_logo_main_project_url/index.html @@ -12,7 +12,7 @@ diff --git a/documentation/test_python/layout_project_logo/index.html b/documentation/test_python/layout_project_logo/index.html index b6902a10..0111ee83 100644 --- a/documentation/test_python/layout_project_logo/index.html +++ b/documentation/test_python/layout_project_logo/index.html @@ -11,7 +11,7 @@
diff --git a/documentation/test_python/layout_project_logo_main_project_url/index.html b/documentation/test_python/layout_project_logo_main_project_url/index.html index cbd1618e..1659179e 100644 --- a/documentation/test_python/layout_project_logo_main_project_url/index.html +++ b/documentation/test_python/layout_project_logo_main_project_url/index.html @@ -12,7 +12,7 @@ diff --git a/pelican-theme/templates/base.html b/pelican-theme/templates/base.html index 9c602e40..e354ae6f 100644 --- a/pelican-theme/templates/base.html +++ b/pelican-theme/templates/base.html @@ -47,7 +47,7 @@
- {%- if M_SITE_LOGO %}{% endif -%} + {%- if M_SITE_LOGO %}{% endif -%} {{- (M_SITE_LOGO_TEXT or SITENAME)|e -}} {% if M_LINKS_NAVBAR1 or M_LINKS_NAVBAR2 %} diff --git a/pelican-theme/test/layout_brand_logo/index.html b/pelican-theme/test/layout_brand_logo/index.html index 0f2fc92e..53d99075 100644 --- a/pelican-theme/test/layout_brand_logo/index.html +++ b/pelican-theme/test/layout_brand_logo/index.html @@ -18,7 +18,7 @@
diff --git a/pelican-theme/test/layout_html_escape/index.html b/pelican-theme/test/layout_html_escape/index.html index 8a2a7bc5..f9a20116 100644 --- a/pelican-theme/test/layout_html_escape/index.html +++ b/pelican-theme/test/layout_html_escape/index.html @@ -18,7 +18,7 @@