diff mbox

[qemu-web,2/2] Add "alt" attributes to the img tags

Message ID 1486463022-4780-3-git-send-email-thuth@redhat.com
State New
Headers show

Commit Message

Thomas Huth Feb. 7, 2017, 10:23 a.m. UTC
The "alt" attribute is mandatory for the img tags according to
the HTML standard, so we need this to get valid HTML.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 _includes/screenshot.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/_includes/screenshot.html b/_includes/screenshot.html
index 3f85791..70b0d11 100644
--- a/_includes/screenshot.html
+++ b/_includes/screenshot.html
@@ -5,5 +5,5 @@ 
    else %}{{screenshot.description}}{%endif %}{%
    if screenshot.author %} {{screenshot.author | markdownify | remove: '<p>' | remove: '</p>' | strip_newlines | escape}} {% endif %}{%
    if screenshot.source %} (&lt;a href=&quot;{{screenshot.source}}&quot;&gt;Source&lt;/a&gt;){%endif %}"><img
-   src="screenshots/{{screenshot.file}}"/></a>
+   src="screenshots/{{screenshot.file}}" alt="Screenshot: {{screenshot.description}}"/></a>
 {% endfor %}