Changeset c7c7f02 in Klonkt for src/views/partials/post-tile.ejs
- Timestamp:
- 06/26/2026 01:01:54 PM (2 months ago)
- Branches:
- main
- Children:
- b6cdc3d
- Parents:
- bbce8da
- File:
-
- 1 edited
-
src/views/partials/post-tile.ejs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/post-tile.ejs
rbbce8da rc7c7f02 5 5 const _tileHue = ((post.id || post.slug || '0').charCodeAt(0) * 7) % 360; 6 6 const _isPinned = !!post.pinned; 7 const _isBoost = !!post.isBoost; 7 8 const _hasCover = !!post.cover_image_url; 8 9 const _typeLabel = (post.type && post.type !== 'post') ? post.type : ''; … … 13 14 const _ext = !!_external; 14 15 %> 15 <a class="grid-tile<%= _hasCover ? '' : ' grid-tile-gradient' %><%= _isPinned? ' is-pinned' : '' %>"16 <a class="grid-tile<%= _hasCover ? '' : ' grid-tile-gradient' %><%= (_isPinned || _isBoost) ? ' is-pinned' : '' %>" 16 17 href="<%= _href %>" 17 18 <% if (_hasCover) { %>style="background-image: url('<%= post.cover_image_url %>'); --tile-hue: <%= _tileHue %>;"<% } else { %>style="--tile-hue: <%= _tileHue %>;"<% } %> … … 21 22 <span class="grid-tile-type"><%= _typeLabel %></span> 22 23 <% } %> 23 <% if (_isPinned) { %> 24 <% if (_isBoost) { %> 25 <span class="grid-tile-pin grid-tile-boost"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m17 2 4 4-4 4"/><path d="M3 11v-1a4 4 0 0 1 4-4h14"/><path d="m7 22-4-4 4-4"/><path d="M21 13v1a4 4 0 0 1-4 4H3"/></svg>Boost</span> 26 <% } else if (_isPinned) { %> 24 27 <span class="grid-tile-pin"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>Pinned</span> 25 28 <% } %>
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)