Changeset 226b563 in Klonkt


Ignore:
Timestamp:
07/16/2026 12:20:51 PM (8 weeks ago)
Author:
Robin <roboburr@…>
Branches:
main
Children:
ae05747
Parents:
e276d03
git-author:
Robin <roboburr@…> (07/12/2026 10:32:29 PM)
git-committer:
Robin <roboburr@…> (07/16/2026 12:20:51 PM)
Message:

Fix: Solo view renders video-only covers with mp4 thumbnail poster

post.ejs had no branch for a cover_video_url without a cover_image_url, so
a video-only cover showed nothing. Mirror post-card.ejs: render a <video>
with poster=thumb(cover_video_url) (adds controls for the full-post hero).
The two cover paths should later collapse into one shared partial (Spoor A).

Co-Authored-By: Claude Opus 4.8 <noreply@…>

File:
1 edited

Legend:

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

    re276d03 r226b563  
    2121    <figure class="post-cover">
    2222      <img src="<%= post.cover_image_url %>" alt="<%= post.cover_alt || '' %>"<% if (post.cover_video_url) { %> data-ios-mp4="<%= post.cover_video_url %>"<% } %>>
     23    </figure>
     24  <% } else if (post.cover_video_url) { %>
     25    <figure class="post-cover">
     26      <video src="<%= post.cover_video_url %>" poster="<%= thumb(post.cover_video_url, 1280) %>" controls loop muted playsinline preload="metadata"></video>
    2327    </figure>
    2428  <% } %>
Note: See TracChangeset for help on using the changeset viewer.