fix: fix 404s from templates trying to load bad image urls

This commit is contained in:
Andy Burke 2025-11-09 13:33:14 -08:00
parent 0bc303a762
commit 19afb7f9fa
5 changed files with 8 additions and 3 deletions

View file

@ -170,6 +170,7 @@
${context.essay.data?.media?.length ?
context.essay.data.media.map(function(url) { return `<img
src="${url}"
loading="lazy"
/>` }).join('\n') : ''}
</div>
@ -178,6 +179,7 @@
<img
src="${context.creator.meta?.avatar ?? '/images/default_avatar.gif'}"
alt="user avatar"
loading="lazy"
/>
</div>
<div class="username-container">