From db8f05dfb49e0774ff8cc17252facde6248d455a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 14 Apr 2023 00:53:55 -0300 Subject: quick tweaks for site release (limit 4 icons per artist) --- src/misc-templates.js | 7 +++---- src/static/site3.css | 4 ++-- src/upd8.js | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/misc-templates.js b/src/misc-templates.js index 867193c7..b7c64597 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -104,9 +104,9 @@ function unbound_getArtistString(artists, { class: 'icons' }, language.formatUnitList( - urls.map(url => iconifyURL(url, {language})))); + urls.slice(0, 4).map(url => iconifyURL(url, {language})))); - return ( + return html.tag('span', {class: 'nowrap'}, (hasContribPart ? (hasExternalPart ? language.$('misc.artistLink.withContribution.withExternalLinks', { @@ -125,8 +125,7 @@ function unbound_getArtistString(artists, { }) : language.$('misc.artistLink', { artist: artistLink, - }))) - ); + })))); })); } diff --git a/src/static/site3.css b/src/static/site3.css index 80624758..3ebe782d 100644 --- a/src/static/site3.css +++ b/src/static/site3.css @@ -1537,12 +1537,12 @@ html[data-language-code="preview-en"][data-url-key="localized.home"] #content z-index: 2; } - html[data-url-key="localized.home"] .layout-columns.has-one-sidebar .grid-listing > .grid-item:not(:nth-child(n+10)) { + html[data-url-key="localized.home"] .layout-columns.has-one-sidebar .grid-listing > .grid-item:not(:nth-child(n+7)) { flex-basis: 23%; margin: 15px; } - html[data-url-key="localized.home"] .layout-columns.has-one-sidebar .grid-listing > .grid-item:nth-child(n+10) { + html[data-url-key="localized.home"] .layout-columns.has-one-sidebar .grid-listing > .grid-item:nth-child(n+7) { flex-basis: 18%; margin: 10px; } diff --git a/src/upd8.js b/src/upd8.js index 9fff67cc..9f54b3bb 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -87,7 +87,7 @@ import FileSizePreloader from './file-size-preloader.js'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const CACHEBUST = 19; +const CACHEBUST = 20; let COMMIT; try { -- cgit 1.3.0-6-gf8a5