Changeset 99989f9 in Klonkt for src/views/pages/epk.ejs


Ignore:
Timestamp:
06/28/2026 04:57:19 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
201ec06
Parents:
74c5abc
Message:

feat(images): route all remaining avatars through avatar() (downscaled)

Wrap every avatar/profile-photo <img> src in avatar(): feed/comment/follow + nav, profile
header/sheet/bottom-tab, account, EPK hero, admin user list, site-edit preview. Local avatars
go through the thumb route, remote ones through the signed proxy. Covers (thumb()) untouched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/epk.ejs

    r74c5abc r99989f9  
    99<section class="epk" <%= _accent ? ('style="--epk-accent:' + _accent + '"') : '' %>>
    1010  <header class="epk-hero">
    11     <% if (_photo) { %><div class="epk-photo"><img src="<%= _photo %>" alt="<%= site.title %>"></div><% } %>
     11    <% if (_photo) { %><div class="epk-photo"><img src="<%= avatar(_photo, 320) %>" alt="<%= site.title %>"></div><% } %>
    1212    <div class="epk-hero-text">
    1313      <div class="epk-kicker"><%= t('epk.kicker') %><% if (typeof user !== 'undefined' && user && user.role === 'god') { %> <a class="epk-edit-link" href="/admin/epk">✎ <%= t('epk.edit') %></a><% } %></div>
Note: See TracChangeset for help on using the changeset viewer.