Compare commits
No commits in common. "6286c8238934f28dcfadd5976eb771fc843acf91" and "f41311a3eb248e2801dfe0f845d117838755e3da" have entirely different histories.
6286c82389
...
f41311a3eb
|
|
@ -94,7 +94,6 @@ 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
|
||||
|
|
|
|||
|
|
@ -409,7 +409,6 @@ 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
|
||||
|
|
@ -590,7 +589,6 @@ photographyContactSheetRule =
|
|||
listField "photos" photographyCtx (return photos)
|
||||
<> constField "title" "Contact sheet · Photography"
|
||||
<> constField "photography" "true"
|
||||
<> constField "portal" "true"
|
||||
<> siteCtx
|
||||
makeItem ""
|
||||
>>= loadAndApplyTemplate
|
||||
|
|
|
|||
|
|
@ -542,8 +542,7 @@ rules = do
|
|||
essays <- recentFirst =<< loadAll (allEssays .&&. hasNoVersion)
|
||||
let ctx =
|
||||
listField "essays" essayCtx (return essays)
|
||||
<> constField "title" "Essays"
|
||||
<> constField "portal" "true"
|
||||
<> constField "title" "Essays"
|
||||
<> siteCtx
|
||||
makeItem ""
|
||||
>>= loadAndApplyTemplate "templates/essay-index.html" ctx
|
||||
|
|
@ -713,7 +712,6 @@ rules = do
|
|||
<> libraryIntroFld
|
||||
<> constField "title" "Library"
|
||||
<> constField "library" "true"
|
||||
<> constField "portal" "true"
|
||||
<> siteCtx
|
||||
|
||||
makeItem ""
|
||||
|
|
@ -790,7 +788,6 @@ 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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
title: Projects
|
||||
tags: meta
|
||||
portal: true
|
||||
---
|
||||
|
||||
Index of engineering artifacts. Systems depth is the primary axis of this page; machine-learning and deployed artifacts follow.
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ beside each link are stamped automatically by the build's link classifier
|
|||
|
||||
## <span class="links-section-ornament" data-ornament="artistic" aria-hidden="true"></span>Artistic { #artistic }
|
||||
|
||||
- [Rate Your Music](https://rateyourmusic.com/~neuwirth)
|
||||
- [YouTube](https://www.youtube.com/@levineuwirth)
|
||||
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -1114,46 +1114,36 @@ nav.site-nav {
|
|||
}
|
||||
|
||||
/* ============================================================
|
||||
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).
|
||||
RELATED (SIMILAR LINKS) — compact vertical list of up to 3 titles.
|
||||
Source file: data/similar-links.json (produced by tools/embed.py).
|
||||
============================================================ */
|
||||
|
||||
.meta-footer-similar > h3 {
|
||||
font-size: 1.05rem;
|
||||
letter-spacing: 0.09em;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.meta-footer-similar .similar-links-list {
|
||||
#similar-links .similar-links-list {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.55rem;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.meta-footer-similar .similar-links-list li::before {
|
||||
#similar-links .similar-links-list li::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.meta-footer-similar .similar-links-item a {
|
||||
#similar-links .similar-links-item a {
|
||||
font-family: var(--font-serif);
|
||||
font-size: 1.18rem;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
font-size: 0.92rem;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid var(--border-muted);
|
||||
padding-bottom: 0.05em;
|
||||
border-bottom: 1px solid transparent;
|
||||
transition: color var(--transition-fast),
|
||||
border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.meta-footer-similar .similar-links-item a:hover,
|
||||
.meta-footer-similar .similar-links-item a:focus-visible {
|
||||
#similar-links .similar-links-item a:hover {
|
||||
color: var(--text);
|
||||
border-bottom-color: var(--border);
|
||||
border-bottom-color: var(--border-muted);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
|
|
|
|||
|
|
@ -11,18 +11,22 @@
|
|||
$backlinks$
|
||||
</div>
|
||||
$if(similar-links)$
|
||||
<div class="meta-footer-full meta-footer-similar" id="similar-links">
|
||||
<h3>Related</h3>
|
||||
$similar-links$
|
||||
<div class="meta-footer-grid">
|
||||
<div class="meta-footer-section" id="similar-links">
|
||||
<h3>Related</h3>
|
||||
$similar-links$
|
||||
</div>
|
||||
</div>
|
||||
$endif$
|
||||
</footer>
|
||||
$else$
|
||||
$if(similar-links)$
|
||||
<footer class="page-meta-footer">
|
||||
<div class="meta-footer-full meta-footer-similar" id="similar-links">
|
||||
<h3>Related</h3>
|
||||
$similar-links$
|
||||
<div class="meta-footer-grid">
|
||||
<div class="meta-footer-section" id="similar-links">
|
||||
<h3>Related</h3>
|
||||
$similar-links$
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
$endif$
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
$partial("templates/partials/head.html")$
|
||||
</head>
|
||||
<body$if(reading)$ class="reading-mode$if(poetry)$ poetry$endif$$if(fiction)$ fiction$endif$"$endif$$if(photography)$ data-page-type="photography"$endif$$if(dingbat)$ data-dingbat="$dingbat$"$endif$$if(list-page)$ data-portal$endif$$if(portal)$ data-portal$endif$$if(home)$ data-portal$endif$>
|
||||
<body$if(reading)$ class="reading-mode$if(poetry)$ poetry$endif$$if(fiction)$ fiction$endif$"$endif$$if(photography)$ data-page-type="photography"$endif$$if(dingbat)$ data-dingbat="$dingbat$"$endif$>
|
||||
<a class="skip-link" href="#markdownBody">Skip to content</a>
|
||||
$partial("templates/partials/nav.html")$
|
||||
$if(search)$
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@
|
|||
$if(status)$<a href="#epistemic">Epistemic</a>$endif$
|
||||
$if(bibliography)$<a href="#bibliography">Bibliography</a>$endif$
|
||||
$if(backlinks)$<a href="#backlinks">Backlinks</a>$endif$
|
||||
$if(similar-links)$<a href="#similar-links">Related</a>$endif$
|
||||
$if(repository)$<a href="$repository$">Repository</a>$endif$
|
||||
$if(preprint)$<a href="$preprint$">Preprint</a>$endif$
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -64,15 +64,15 @@
|
|||
</div>
|
||||
$endif$
|
||||
|
||||
$if(similar-links)$
|
||||
<div class="meta-footer-full meta-footer-similar" id="similar-links">
|
||||
<h3>Related</h3>
|
||||
$similar-links$
|
||||
</div>
|
||||
$endif$
|
||||
|
||||
<div class="meta-footer-grid">
|
||||
|
||||
$if(similar-links)$
|
||||
<div class="meta-footer-section" id="similar-links">
|
||||
<h3>Related</h3>
|
||||
$similar-links$
|
||||
</div>
|
||||
$endif$
|
||||
|
||||
$if(status)$
|
||||
<div class="meta-footer-section meta-footer-epistemic" id="epistemic">
|
||||
<h3><a href="/colophon.html#living-documents">Epistemic</a></h3>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
|
@ -46,14 +46,6 @@ MAX_PARA_CHARS = 1000 # semantic: truncate before embedding
|
|||
|
||||
EXCLUDE_URLS = {"/search/", "/build/", "/404.html", "/feed.xml", "/music/feed.xml"}
|
||||
|
||||
# Pages whose <body data-portal> are portal/landing pages — they aggregate
|
||||
# excerpts from many entries and would otherwise dominate every page's
|
||||
# "Related" set with high but uninformative scores. default.html sets the
|
||||
# attribute when any of the `list-page`, `portal`, or `home` template flags
|
||||
# is true, so adding `constField "portal" "true"` to a Hakyll rule (or
|
||||
# `portal: true` to a content file's frontmatter) is enough to exclude it.
|
||||
PORTAL_BODY_ATTR = "data-portal"
|
||||
|
||||
|
||||
def atomic_write_bytes(path: Path, data: bytes) -> None:
|
||||
"""Write to path.tmp then os.replace, so an interrupt mid-write
|
||||
|
|
@ -120,9 +112,6 @@ def extract_page(html_path: Path) -> dict | None:
|
|||
|
||||
if url in EXCLUDE_URLS:
|
||||
return None
|
||||
body_tag = soup.body
|
||||
if body_tag is not None and body_tag.has_attr(PORTAL_BODY_ATTR):
|
||||
return None
|
||||
body = soup.select_one("#markdownBody")
|
||||
if body is None:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in New Issue