Remove alt descriptions on images

This commit is contained in:
bashrc committed 2021-02-01 19:48:46 +00:00
1 parent 67b8c58b0a
commit 5387df1c09
3 files changed
+7 -8

No files matched your search

+4 -3
View File
@@ -90,8 +90,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
htmlStr += \
'\n <center>\n' + \
' <img class="leftColImg" ' + \
'alt="' + translate['Left column image'] + '" ' + \
'loading="lazy" src="/users/' + \
'alt="" loading="lazy" src="/users/' + \
nickname + '/' + leftImageFile + '" />\n' + \
' </center>\n'
@@ -269,6 +268,7 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
htmlStr += \
'<a href="/users/' + nickname + '/' + defaultTimeline + '">' + \
'<img loading="lazy" class="timeline-banner" ' + \
'alt="' + translate['Switch to timeline view'] + '" ' + \
'src="/users/' + nickname + '/' + bannerFile + '" /></a>\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="' + \
translate['Switch to timeline view'] + '" alt="' + \
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' + \
'</header>\n'
+2 -4
View File
@@ -92,8 +92,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
htmlStr += \
'\n <center>\n' + \
' <img class="rightColImg" ' + \
'alt="' + translate['Right column image'] + '" ' + \
'loading="lazy" src="/users/' + \
'alt="" loading="lazy" src="/users/' + \
nickname + '/' + rightImageFile + '" />\n' + \
' </center>\n'
@@ -359,8 +358,7 @@ def htmlCitations(baseDir: str, nickname: str, domain: str,
translate['Go Back'] + '" alt="' + \
translate['Go Back'] + '">\n'
htmlStr += '<img loading="lazy" class="timeline-banner" ' + \
'alt="' + translate['Timeline banner image'] + '" ' + \
'src="' + \
'alt="" src="' + \
'/users/' + nickname + '/' + bannerFile + '" /></a>\n'
htmlStr += \
+1 -1
View File
@@ -389,7 +389,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
translate['Switch to profile view'] + '" alt="' + \
translate['Switch to profile view'] + '">\n'
tlStr += '<img loading="lazy" class="timeline-banner" ' + \
'alt="' + translate['Timeline banner image'] + '" ' + \
'alt="" ' + \
'src="' + usersPath + '/' + bannerFile + '" /></a>\n' + \
'</header>\n'