Skip to content

Commit 53defba

Browse files
committed
Update theme
1 parent c2adb70 commit 53defba

4 files changed

Lines changed: 37 additions & 5 deletions

File tree

index.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,16 +256,23 @@ <h1><a class="h1-prefix" href="/">Lodes & Lanterns</a><span class="h1-title">Tor
256256
<footer>
257257
<div id="footer-inner">
258258
<p>
259-
Torchfinder is part of <a href="https://lodesandlanterns.com" target="_blank" rel="noopener">Lodes &amp; Lanterns</a>.
260-
Source on <a href="https://github.com/Lodes-and-Lanterns/torchfinder" target="_blank" rel="noopener">GitHub</a>.
261-
<a href="https://github.com/Lodes-and-Lanterns/torchfinder/issues/new" target="_blank" rel="noopener">Report a site bug</a>.
259+
© 2026 Reese Schultz & Contributors
262260
</p>
263261
<p>
262+
A <a href="https://lodesandlanterns.com" target="_blank" rel="noopener">Lodes &amp; Lanterns</a> project.
263+
<a href="https://github.com/Lodes-and-Lanterns/torchfinder/issues/new" target="_blank" rel="noopener">Found a bug?</a>
264+
</p>
265+
<p>
266+
<a href="https://github.com/Lodes-and-Lanterns/torchfinder" target="_blank" rel="noopener">GitHub</a>
267+
&middot;
264268
<a href="/dist/feed.xml">RSS Feed</a>
265269
&middot;
266-
MIT License
270+
<a href="https://github.com/Lodes-and-Lanterns/torchfinder/blob/main/LICENSE" target="_blank" rel="noopener">MIT License</a>
267271
</p>
268272
</div>
273+
<div id="footer-disclaimer">
274+
Torchfinder and Lodes &amp; Lanterns are not affiliated with The Arcane Library, LLC. Shadowdark RPG &copy; 2023 The Arcane Library, LLC.
275+
</div>
269276
</footer>
270277

271278
<script type="module" src="app.js"></script>

scripts/render.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
formatLevelRange,
77
formatPartySize,
88
formatDate,
9+
formatDateShort,
910
isUpcoming,
1011
} from './utils.js';
1112
import { hasActiveFilters, applyFilters } from './filters.js';
@@ -212,7 +213,7 @@ export function renderCardHtml(entry, expanded) {
212213
<article class="result-card${expanded ? ' expanded' : ''}" data-id="${escapeHtml(entry.id)}" aria-expanded="${expanded}">
213214
<div class="card-header" role="button" tabindex="0" aria-label="${escapeHtml(entry.title)}, ${expanded ? 'collapse' : 'expand'}">
214215
<div class="card-header-main">
215-
<h3 class="card-title"><a class="card-title-link" href="?id=${encodeURIComponent(entry.id)}">${escapeHtml(entry.title)}</a></h3>
216+
<h3 class="card-title"><a class="card-title-link" href="?id=${encodeURIComponent(entry.id)}">${escapeHtml(entry.title)}</a>${entry.original_publication_date ? `<span class="card-title-date"> (${escapeHtml(formatDateShort(entry.original_publication_date))})</span>` : ''}</h3>
216217
${authorStr ? `<div class="card-byline">${escapeHtml(authorStr)}</div>` : ''}
217218
${entry.description ? `<div class="card-description-snippet">${escapeHtml(entry.description)}</div>` : ''}
218219
</div>

scripts/utils.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ export function formatPartySize(min, max) {
6060
return `${min}${max} players`;
6161
}
6262

63+
export function formatDateShort(dateStr) {
64+
if (!dateStr) return '';
65+
const d = new Date(dateStr + 'T00:00:00Z');
66+
const month = d.getUTCMonth() + 1;
67+
const year = d.getUTCFullYear();
68+
return `${month}/${year}`;
69+
}
70+
6371
export function formatDate(dateStr) {
6472
if (!dateStr) return '';
6573
const d = new Date(dateStr + 'T00:00:00Z');

style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,12 @@ header {
530530
transition: color 0.15s;
531531
}
532532

533+
.card-title-date {
534+
font-size: 0.75em;
535+
font-weight: 400;
536+
color: var(--pico-muted-color);
537+
}
538+
533539
.card-title-link {
534540
color: inherit;
535541
text-decoration: underline;
@@ -827,6 +833,16 @@ footer {
827833
margin: 0;
828834
}
829835

836+
#footer-disclaimer {
837+
max-width: 1400px;
838+
margin: 0.75rem auto 0;
839+
padding-top: 0.75rem;
840+
border-top: 1px solid var(--pico-muted-border-color);
841+
font-size: 0.75rem;
842+
color: var(--pico-muted-color);
843+
opacity: 0.7;
844+
}
845+
830846
/* ---- Mobile Filter Overlay ----------------------------------------------- */
831847
#filter-overlay {
832848
display: none;

0 commit comments

Comments
 (0)