Changeset 43dbf9c in Klonkt for src/views/partials/post-tile.ejs
- Timestamp:
- 06/16/2026 01:52:09 AM (3 months ago)
- Branches:
- main
- Children:
- 9f81a09
- Parents:
- aa7f548
- File:
-
- 1 edited
-
src/views/partials/post-tile.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/post-tile.ejs
raa7f548 r43dbf9c 8 8 const _typeLabel = (post.type && post.type !== 'post') ? post.type : ''; 9 9 const _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; 10 const _href = _base + '/' + post.slug; 10 const _external = post.external_url || null; 11 const _href = _external || (_base + '/' + post.slug); 12 const _ext = !!_external; 11 13 %> 12 14 <a class="grid-tile<%= _hasCover ? '' : ' grid-tile-gradient' %><%= _isPinned ? ' is-pinned' : '' %>" 13 15 href="<%= _href %>" 14 16 <% if (_hasCover) { %>style="background-image: url('<%= post.cover_image_url %>'); --tile-hue: <%= _tileHue %>;"<% } else { %>style="--tile-hue: <%= _tileHue %>;"<% } %> 15 hx-get="<%= _href %>?partial=1" 16 hx-target="#pcms-main" 17 hx-swap="innerHTML" 18 hx-push-url="<%= _href %>" 19 hx-indicator="#pcms-loading"> 17 <% if (_ext) { %>target="_blank" rel="noopener"<% } else { %>hx-get="<%= _href %>?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="<%= _href %>" hx-indicator="#pcms-loading"<% } %>> 20 18 21 19 <% if (_typeLabel) { %>
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)