mirror of https://gitlab.com/bashrc2/epicyon
Style on the link
parent
027d6fb667
commit
a829c965d5
|
@ -1408,18 +1408,19 @@ def get_post_attachments_as_html(base_dir: str,
|
||||||
show_img_str + '</summary>' + \
|
show_img_str + '</summary>' + \
|
||||||
'<div id="' + post_id + '">\n'
|
'<div id="' + post_id + '">\n'
|
||||||
|
|
||||||
attachment_str += '<a href="' + image_url + '" tabindex="10">'
|
|
||||||
if media_license and media_creator:
|
|
||||||
attachment_str += '<figure>'
|
|
||||||
img_attachment_style = \
|
img_attachment_style = \
|
||||||
'min-height:100%;min-width:100%;' + \
|
'min-height:100%;min-width:100%;' + \
|
||||||
'height:auto;width:auto;position:absolute;' + \
|
'height:auto;width:auto;position:absolute;' + \
|
||||||
'top:-100%;bottom:-100%;left:-100%;right:-100%;' + \
|
'top:-100%;bottom:-100%;left:-100%;right:-100%;' + \
|
||||||
'margin:auto;'
|
'margin:auto;'
|
||||||
|
attachment_str += \
|
||||||
|
'<a href="' + image_url + \
|
||||||
|
'" style="' + img_attachment_style + '" tabindex="10">'
|
||||||
|
if media_license and media_creator:
|
||||||
|
attachment_str += '<figure>'
|
||||||
attachment_str += \
|
attachment_str += \
|
||||||
'<img loading="lazy" decoding="async" ' + \
|
'<img loading="lazy" decoding="async" ' + \
|
||||||
'src="' + image_url + \
|
'src="' + image_url + \
|
||||||
'" style="' + img_attachment_style + \
|
|
||||||
'" alt="' + image_description + '" title="' + \
|
'" alt="' + image_description + '" title="' + \
|
||||||
image_description + '" class="attachment"></a>\n'
|
image_description + '" class="attachment"></a>\n'
|
||||||
if media_license and media_creator:
|
if media_license and media_creator:
|
||||||
|
|
Loading…
Reference in New Issue