mirror of https://gitlab.com/bashrc2/epicyon
Support png favicons
parent
d5e9652b16
commit
adedd62251
|
@ -244,6 +244,12 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool,
|
||||||
cachedFaviconFilename = baseDir + favBase
|
cachedFaviconFilename = baseDir + favBase
|
||||||
if os.path.isfile(cachedFaviconFilename):
|
if os.path.isfile(cachedFaviconFilename):
|
||||||
faviconUrl = favBase
|
faviconUrl = favBase
|
||||||
|
else:
|
||||||
|
favBase = favBase.replace('.ico', '.png')
|
||||||
|
cachedFaviconFilename = baseDir + favBase
|
||||||
|
if os.path.isfile(cachedFaviconFilename):
|
||||||
|
faviconUrl = favBase
|
||||||
|
|
||||||
faviconLink = \
|
faviconLink = \
|
||||||
'<img loading="lazy" src="' + faviconUrl + '" ' + \
|
'<img loading="lazy" src="' + faviconUrl + '" ' + \
|
||||||
'alt="" ' + _getBrokenFavSubstitute() + '/>'
|
'alt="" ' + _getBrokenFavSubstitute() + '/>'
|
||||||
|
|
Loading…
Reference in New Issue