levineuwirth.org/static/css
Levi Neuwirth 23250d8782 Fix popup previews: proxy prefix-strip bug, arXiv IDs, Wikipedia images
The root cause of 'PDF/arXiv previews simply do not work' was twofold:

1. nginx/popup-proxy.conf was never installed on the VPS — every
   /proxy/* request (arXiv, PubMed, Internet Archive) returned nginx's
   default 404. Now installed (snippets + http{}-context cache/limit
   zones in conf.d, included in the vhost, nginx -t verified, reloaded).
2. The snippet itself had a latent bug that only surfaced once
   installed: with a VARIABLE upstream, a URI part on proxy_pass is
   passed literally — every request hit the upstream's homepage
   (archive.org HTML where JSON was expected, arXiv 429s, NCBI doc-page
   redirects). Fixed with explicit prefix-strip rewrites; bad cached
   responses purged. All three proxies verified returning real data,
   including a live arXiv title resolve.

Client-side improvements:
- arXiv match covers old-style IDs (cs/9901002, math.GT/0309136,
  cond-mat/...v1) alongside new-style, and .pdf-suffixed /pdf/ URLs
  (regex verified against six forms)
- Wikipedia popups show the article's lead image: pageimages rides
  along the existing extracts call (pithumbsize=320), rendered via a
  new https-only image slot in renderPopup with float styling;
  upload.wikimedia.org added to the CSP's img-src
- pdf-thumbs now walks all of static/ (pdfjs pruned), so /cv.pdf and
  /resume.pdf — the most-linked internal PDFs, previously thumbnail-less
  and therefore popup-less — get hover previews

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 12:06:13 -04:00
..
annotations.css yum cappuccino yay! 2026-05-03 21:16:58 -04:00
archive.css Add link archive system: snapshots, backlinks, link-rot 2026-05-23 10:06:33 -04:00
base.css Layout: page-shell wrapper for iOS sticky, scrollable TOC 2026-05-23 12:06:02 -04:00
build.css audit: frontend a11y, JS shared utils, CSS variable definitions 2026-04-10 17:41:21 -04:00
catalog.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
commonplace.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
components.css Branding diet: logo sprite via <use>, lean favicon.ico, simple mask icon 2026-06-10 10:43:06 -04:00
gallery.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
home.css affiliation, cabal helper script 2026-03-26 08:14:50 -04:00
images.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
item-card.css Navigation refactor 2026-04-19 14:35:41 -04:00
layout.css Layout: page-shell wrapper for iOS sticky, scrollable TOC 2026-05-23 12:06:02 -04:00
library.css yum cappuccino yay! 2026-05-03 21:16:58 -04:00
links.css yum cappuccino yay! 2026-05-03 21:16:58 -04:00
marks.css Marks II: broader monogram coverage + audit-marks tool 2026-05-23 12:05:08 -04:00
memento-mori.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
now.css Current rework 2026-04-26 19:42:47 -04:00
photography.css Spec dilemma 2026-05-01 21:22:01 -04:00
popups.css Fix popup previews: proxy prefix-strip bug, arXiv IDs, Wikipedia images 2026-06-10 12:06:13 -04:00
print.css print.css: refresh page rules and prose treatments 2026-05-23 12:06:20 -04:00
reading.css Layout: page-shell wrapper for iOS sticky, scrollable TOC 2026-05-23 12:06:02 -04:00
score-reader.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
selection-popup.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
sidenotes.css Sidenotes: emit the section.footnotes fallback the CSS expects 2026-06-10 10:37:28 -04:00
syntax.css initial deploy! whoop 2026-03-17 21:56:14 -04:00
typography.css yum cappuccino yay! 2026-05-03 21:16:58 -04:00
viz.css auto: 2026-04-05T01:18:45Z 2026-04-04 21:18:45 -04:00