diff --git a/assets/css/tools.css b/assets/css/tools.css index b28a261..8f69942 100644 --- a/assets/css/tools.css +++ b/assets/css/tools.css @@ -3529,6 +3529,19 @@ a.dr-source-title-link:hover { margin-bottom: 6px; } .passage-card__title:hover { color: var(--teal); text-decoration: underline; } +a.passage-card__title { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; } +a.passage-card__title:hover { color: var(--ink); } + +.passage-source-link { + display: inline-flex; + align-items: center; + gap: 4px; + font-size: 0.76rem; + color: var(--muted); + text-decoration: none; + margin-top: 8px; +} +.passage-source-link:hover { color: var(--teal); text-decoration: underline; } .passage-card__excerpt { font-size: 0.82rem; diff --git a/corpus.php b/corpus.php index d2b61b3..74f3a02 100644 --- a/corpus.php +++ b/corpus.php @@ -796,8 +796,11 @@ require_once __DIR__ . '/includes/layout.php'; : `${esc(hit.title || '(Untitled)')}`; const section = hit.section ? `§ ${esc(hit.section)}` : ''; const excerpt = highlight(hit.excerpt || '', q); - const fullText = (hit.full_text || '').trim(); - const hasMore = fullText.length > (hit.excerpt || '').length; + const fullText = (hit.full_text || '').trim(); + const hasMore = fullText.length > (hit.excerpt || '').length; + const sourceLink = hit.source_url + ? `View source ↗` + : ''; const card = document.createElement('div'); card.className = 'passage-card'; @@ -809,6 +812,7 @@ require_once __DIR__ . '/includes/layout.php'; ${titleHtml}

${excerpt}

+ ${sourceLink} ${hasMore ? '' : ''}`; if (hasMore) {