Remove alt descriptions on images

main
Bob Mottram 2021-02-01 19:48:46 +00:00
parent 67b8c58b0a
commit 5387df1c09
3 changed files with 7 additions and 8 deletions

View File

@ -90,8 +90,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
htmlStr += \ htmlStr += \
'\n <center>\n' + \ '\n <center>\n' + \
' <img class="leftColImg" ' + \ ' <img class="leftColImg" ' + \
'alt="' + translate['Left column image'] + '" ' + \ 'alt="" loading="lazy" src="/users/' + \
'loading="lazy" src="/users/' + \
nickname + '/' + leftImageFile + '" />\n' + \ nickname + '/' + leftImageFile + '" />\n' + \
' </center>\n' ' </center>\n'
@ -269,6 +268,7 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
htmlStr += \ htmlStr += \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \ '<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
'<img loading="lazy" class="timeline-banner" ' + \ '<img loading="lazy" class="timeline-banner" ' + \
'alt="' + translate['Switch to timeline view'] + '" ' + \
'src="/users/' + nickname + '/' + bannerFile + '" /></a>\n' 'src="/users/' + nickname + '/' + bannerFile + '" /></a>\n'
htmlStr += '<div class="col-left-mobile">\n' htmlStr += '<div class="col-left-mobile">\n'
@ -334,7 +334,8 @@ def htmlEditLinks(cssCache: {}, translate: {}, baseDir: str, path: str,
'<a href="/users/' + nickname + '/' + defaultTimeline + '" title="' + \ '<a href="/users/' + nickname + '/' + defaultTimeline + '" title="' + \
translate['Switch to timeline view'] + '" alt="' + \ translate['Switch to timeline view'] + '" alt="' + \
translate['Switch to timeline view'] + '">\n' translate['Switch to timeline view'] + '">\n'
editLinksForm += '<img loading="lazy" class="timeline-banner" src="' + \ editLinksForm += '<img loading="lazy" class="timeline-banner" ' + \
'alt = "" src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n' + \ '/users/' + nickname + '/' + bannerFile + '" /></a>\n' + \
'</header>\n' '</header>\n'

View File

@ -92,8 +92,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
htmlStr += \ htmlStr += \
'\n <center>\n' + \ '\n <center>\n' + \
' <img class="rightColImg" ' + \ ' <img class="rightColImg" ' + \
'alt="' + translate['Right column image'] + '" ' + \ 'alt="" loading="lazy" src="/users/' + \
'loading="lazy" src="/users/' + \
nickname + '/' + rightImageFile + '" />\n' + \ nickname + '/' + rightImageFile + '" />\n' + \
' </center>\n' ' </center>\n'
@ -359,8 +358,7 @@ def htmlCitations(baseDir: str, nickname: str, domain: str,
translate['Go Back'] + '" alt="' + \ translate['Go Back'] + '" alt="' + \
translate['Go Back'] + '">\n' translate['Go Back'] + '">\n'
htmlStr += '<img loading="lazy" class="timeline-banner" ' + \ htmlStr += '<img loading="lazy" class="timeline-banner" ' + \
'alt="' + translate['Timeline banner image'] + '" ' + \ 'alt="" src="' + \
'src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n' '/users/' + nickname + '/' + bannerFile + '" /></a>\n'
htmlStr += \ htmlStr += \

View File

@ -389,7 +389,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
translate['Switch to profile view'] + '" alt="' + \ translate['Switch to profile view'] + '" alt="' + \
translate['Switch to profile view'] + '">\n' translate['Switch to profile view'] + '">\n'
tlStr += '<img loading="lazy" class="timeline-banner" ' + \ tlStr += '<img loading="lazy" class="timeline-banner" ' + \
'alt="' + translate['Timeline banner image'] + '" ' + \ 'alt="" ' + \
'src="' + usersPath + '/' + bannerFile + '" /></a>\n' + \ 'src="' + usersPath + '/' + bannerFile + '" /></a>\n' + \
'</header>\n' '</header>\n'