Images download on click
This commit is contained in:
2
lib.js
2
lib.js
@@ -342,7 +342,7 @@ export const renderPostDetail = (name, value) =>
|
|||||||
|
|
||||||
export const renderImage = href => {
|
export const renderImage = href => {
|
||||||
return `\
|
return `\
|
||||||
<a href="${href}"><img src="${href}" loading="lazy"></img></a>`
|
<a href="${href}" download><img src="${href}" loading="lazy"></img></a>`
|
||||||
}
|
}
|
||||||
|
|
||||||
export const renderDate = date =>
|
export const renderDate = date =>
|
||||||
|
|||||||
Reference in New Issue
Block a user