Changeset 535f955 in Klonkt for src/views/pages
- Timestamp:
- 06/19/2026 09:49:35 AM (3 months ago)
- Branches:
- main
- Children:
- 247988e
- Parents:
- 8cdb377
- Location:
- src/views/pages
- Files:
-
- 1 added
- 1 edited
-
favorites.ejs (added)
-
post.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post.ejs
r8cdb377 r535f955 31 31 <% } %> 32 32 </div> 33 <% if (post.status === 'published') { %> 34 <div class="post-like-row"> 35 <%- include('../partials/like-button', { post: post, likedByMe: (typeof likedByMe !== 'undefined' && likedByMe), likeCount: (typeof likeCount !== 'undefined' ? likeCount : 0), loggedIn: !!user, loginNext: _base + '/' + post.slug }) %> 36 </div> 37 <% } %> 33 38 </header> 34 39 … … 250 255 .post-content { font-family: var(--font-body, serif); font-size: 1.1rem; line-height: 1.7; color: var(--ink); } 251 256 .post-content p { margin: 1.2em 0; } 257 .post-like-row { margin-top: 1rem; } 258 .like-btn { 259 display: inline-flex; align-items: center; gap: 0.45rem; 260 padding: 0.4rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; 261 background: var(--paper-2); color: var(--ink); font: inherit; font-size: 0.95rem; 262 cursor: pointer; text-decoration: none; transition: border-color 120ms, color 120ms, background 120ms; 263 } 264 .like-btn:hover { border-color: var(--accent); } 265 .like-btn .like-heart { font-size: 1.1rem; line-height: 1; } 266 .like-btn.is-liked { border-color: var(--accent); color: var(--accent); } 267 .like-btn.is-liked .like-heart { color: var(--accent); } 268 .like-btn .like-count { font-variant-numeric: tabular-nums; } 252 269 .post-content h2 { font-family: var(--font-display, serif); font-size: 1.6rem; margin: 2rem 0 1rem; } 253 270 .post-content h3 { font-family: var(--font-display, serif); font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
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)