Changeset adb6291 in Klonkt for src/routes/types.js


Ignore:
Timestamp:
06/30/2026 06:11:50 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
a95dbfd
Parents:
1c33804
Message:

feat(video-cover): render iOS video covers across grid, list, related + listing pages

  • post-tile.ejs / post-card.ejs / post.ejs(related): the cover <img> carries data-ios-mp4 when a loop MP4 exists; shell.ejs's iOS swap upgrades it everywhere covers render
  • cover_video_url threaded through the explicit listing SELECTs (tags/types/users/related); the home grid + main list already use SELECT p.*

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/types.js

    r1c33804 radb6291  
    2121
    2222  const posts = db.prepare(`
    23     SELECT p.id, p.slug, p.title, p.excerpt, p.cover_image_url,
     23    SELECT p.id, p.slug, p.title, p.excerpt, p.cover_image_url, p.cover_video_url,
    2424           p.published_at, p.type, u.username AS author_username
    2525    FROM posts p JOIN users u ON u.id = p.author_id
Note: See TracChangeset for help on using the changeset viewer.