[opt] albums & posters
This commit is contained in:
parent
1fa700d8db
commit
a7f4eee1b8
|
@ -30,7 +30,7 @@ module.exports = ctx => function(args) {
|
|||
if (item?.url) {
|
||||
el += `<div class="grid-cell album-card">`
|
||||
el += `<a class="card-link" target="_blank" rel="external nofollow noopener noreferrer" href="${item.url}">`
|
||||
el += `<img src="${item.icon || item.avatar || ctx.theme.config.default.cover}" onerror="javascript:this.removeAttribute("data-src");this.src="${ctx.theme.config.default.cover}";"/>`
|
||||
el += `<img src="${item.cover || item.icon || item.avatar || ctx.theme.config.default.cover}" onerror="javascript:this.removeAttribute("data-src");this.src="${ctx.theme.config.default.cover}";"/>`
|
||||
el += `<div class="image-meta">`
|
||||
if (item.title) {
|
||||
el += `<span class="image-caption">${item.title}</span>`
|
||||
|
|
|
@ -30,7 +30,7 @@ module.exports = ctx => function(args) {
|
|||
if (item?.url) {
|
||||
el += `<div class="grid-cell poster-card">`
|
||||
el += `<a class="card-link" target="_blank" rel="external nofollow noopener noreferrer" href="${item.url}">`
|
||||
el += `<img src="${item.icon || item.avatar || ctx.theme.config.default.cover}" onerror="javascript:this.removeAttribute("data-src");this.src="${ctx.theme.config.default.cover}";"/>`
|
||||
el += `<img src="${item.cover || item.icon || item.avatar || ctx.theme.config.default.cover}" onerror="javascript:this.removeAttribute("data-src");this.src="${ctx.theme.config.default.cover}";"/>`
|
||||
el += `<div class="image-meta">`
|
||||
if (item.title) {
|
||||
el += `<span class="image-caption">${item.title}</span>`
|
||||
|
|
Loading…
Reference in New Issue