Changeset cf4cf27 in Klonkt
- Timestamp:
- 06/26/2026 05:10:47 PM (2 months ago)
- Branches:
- main
- Children:
- eacd3d6
- Parents:
- eefd302
- Location:
- src
- Files:
-
- 3 edited
-
assets/css/style.css (modified) (1 diff)
-
routes/circle.js (modified) (2 diffs)
-
views/shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/assets/css/style.css
reefd302 rcf4cf27 2398 2398 .grid-tile-overlay-src { 2399 2399 color: #fff; opacity: .85; 2400 font-size: .72rem; margin-top: .2rem;2400 font-size: 1.44rem; margin-top: .2rem; 2401 2401 display: inline-flex; align-items: center; 2402 2402 } 2403 2403 .grid-tile-overlay-src::before { content: "⛓"; margin-right: .25rem; font-size: .9em; } 2404 2404 .grid-tile-gradient-src { 2405 margin-top: .35rem; font-size: .72rem; opacity: .85;2405 margin-top: .35rem; font-size: 1.44rem; opacity: .85; 2406 2406 color: var(--ink-soft); 2407 2407 display: inline-flex; align-items: center; -
src/routes/circle.js
reefd302 rcf4cf27 33 33 const posts = ActivityPubService.getCirkelPosts(site.slug, 80).map((r) => { 34 34 const text = htmlToText(r.content); 35 // Show ONLY the title (the bold first line a Klonkt note carries), not the whole 36 // body. Title-less notes (e.g. plain Mastodon) fall back to a short text snippet. 37 const titleM = (r.content || '').match(/^\s*<p>\s*<strong>([\s\S]*?)<\/strong>/i); 38 const realTitle = titleM ? htmlToText(titleM[1]).trim() : ''; 35 39 const image = mediaImage(r.media_json); 36 40 const name = r.author_name || r.author_handle || 'Onbekend'; … … 38 42 id: 'ap-' + r.id, 39 43 slug: '', 40 title: text ? (text.length > 90 ? text.slice(0, 90) + '…' : text) : name, 44 title: realTitle 45 ? (realTitle.length > 90 ? realTitle.slice(0, 90) + '…' : realTitle) 46 : (text ? (text.length > 90 ? text.slice(0, 90) + '…' : text) : name), 41 47 excerpt: '', 42 48 cover_image_url: image ? image.url : null, -
src/views/shell.ejs
reefd302 rcf4cf27 198 198 199 199 <!-- v9 stylesheet (full palette system) --> 200 <link rel="stylesheet" href="/assets/css/style.css?v=5 4">200 <link rel="stylesheet" href="/assets/css/style.css?v=55"> 201 201 <script> 202 202 /* iOS safe-area, built by hand. env(safe-area-inset-top) resolves to 0 on this iOS in
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)