diff --git a/build/Authors.hs b/build/Authors.hs index ea30c6b..a90c71c 100644 --- a/build/Authors.hs +++ b/build/Authors.hs @@ -94,6 +94,7 @@ applyAuthorRules authors baseCtx = tagsRules authors $ \name pat -> do <> paginateContext paginate pageNum <> constField "author" name <> constField "title" name + <> constField "portal" "true" <> baseCtx makeItem "" >>= loadAndApplyTemplate "templates/author-index.html" ctx diff --git a/build/Photography.hs b/build/Photography.hs index 9578900..9e8f5b5 100644 --- a/build/Photography.hs +++ b/build/Photography.hs @@ -409,6 +409,7 @@ photographyMapPageRule = let ctx = constField "title" "Map · Photography" <> constField "photography" "true" <> constField "photography-map" "true" + <> constField "portal" "true" <> siteCtx makeItem "" >>= loadAndApplyTemplate "templates/photography-map.html" ctx @@ -589,6 +590,7 @@ photographyContactSheetRule = listField "photos" photographyCtx (return photos) <> constField "title" "Contact sheet · Photography" <> constField "photography" "true" + <> constField "portal" "true" <> siteCtx makeItem "" >>= loadAndApplyTemplate diff --git a/build/Site.hs b/build/Site.hs index 6c9d9a4..7e774fa 100644 --- a/build/Site.hs +++ b/build/Site.hs @@ -542,7 +542,8 @@ rules = do essays <- recentFirst =<< loadAll (allEssays .&&. hasNoVersion) let ctx = listField "essays" essayCtx (return essays) - <> constField "title" "Essays" + <> constField "title" "Essays" + <> constField "portal" "true" <> siteCtx makeItem "" >>= loadAndApplyTemplate "templates/essay-index.html" ctx @@ -712,6 +713,7 @@ rules = do <> libraryIntroFld <> constField "title" "Library" <> constField "library" "true" + <> constField "portal" "true" <> siteCtx makeItem "" @@ -788,6 +790,7 @@ rules = do <> constField "bibliography-index" "true" <> constField "bibliography-entries" (T.unpack html) <> constField "library" "true" -- reuse flag to load library.css + item-card.css + <> constField "portal" "true" <> siteCtx makeItem "" >>= loadAndApplyTemplate "templates/bibliography-index.html" ctx diff --git a/static/css/components.css b/static/css/components.css index 8aaf125..b89ae30 100644 --- a/static/css/components.css +++ b/static/css/components.css @@ -1114,36 +1114,46 @@ nav.site-nav { } /* ============================================================ - RELATED (SIMILAR LINKS) — compact vertical list of up to 3 titles. - Source file: data/similar-links.json (produced by tools/embed.py). + RELATED (SIMILAR LINKS) — promoted to a full-width aftermatter + section, sitting just under Backlinks. Source file: + data/similar-links.json (produced by tools/embed.py). ============================================================ */ -#similar-links .similar-links-list { +.meta-footer-similar > h3 { + font-size: 1.05rem; + letter-spacing: 0.09em; + margin-bottom: 1rem; +} + +.meta-footer-similar .similar-links-list { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; - gap: 0.35rem; + gap: 0.55rem; } -#similar-links .similar-links-list li::before { +.meta-footer-similar .similar-links-list li::before { content: none; } -#similar-links .similar-links-item a { +.meta-footer-similar .similar-links-item a { font-family: var(--font-serif); - font-size: 0.92rem; - color: var(--text-muted); + font-size: 1.18rem; + font-weight: 500; + color: var(--text); text-decoration: none; - border-bottom: 1px solid transparent; + border-bottom: 1px solid var(--border-muted); + padding-bottom: 0.05em; transition: color var(--transition-fast), border-color var(--transition-fast); } -#similar-links .similar-links-item a:hover { +.meta-footer-similar .similar-links-item a:hover, +.meta-footer-similar .similar-links-item a:focus-visible { color: var(--text); - border-bottom-color: var(--border-muted); + border-bottom-color: var(--border); } /* ============================================================ diff --git a/templates/blog-post.html b/templates/blog-post.html index 39c4710..9b199e4 100644 --- a/templates/blog-post.html +++ b/templates/blog-post.html @@ -11,22 +11,18 @@ $backlinks$ $if(similar-links)$ - $endif$ -