Modernize site: self-contained Hugo setup, new design, current CI - #51
Merged
Merged
Conversation
The site could not build on current Hugo (it relied on APIs removed years ago and CI was pinned to Hugo 0.68.3). Rebuild it on a current toolchain. - Vendor the theme into this repo and drop the submodule; layouts, data, i18n and assets now live at the site root. The shared theme repo is untouched. - Replace Bulma, bulmaswatch, Font Awesome, Algolia InstantSearch and the small CSS helpers with one hand-written, fingerprinted stylesheet and ~40 lines of JS. Render-critical CSS/JS/HTML drops from ~620 KB to ~8 KB gzipped, with no third-party requests on normal pages. - Automatic light/dark mode, accessible header (skip link, details-based dropdowns, labelled controls), responsive layout, reduced-motion support. - SEO/meta: valid html lang (zh-CN/en), hreflang, canonical and OG tags with an absolute baseURL, JSON-LD, sitemap in robots.txt. Section pages are no longer noindex. - Navigation moves to native Hugo menus per language. - City map becomes an `imagemap` shortcode (Leaflet 1.9.4 + SRI) driven by front matter; the English page now shares the current marker data. - Data files use emoji icons instead of icon-font classes; http links to hosts that serve https are upgraded; English "Welcome on Board" now goes to /archives/ instead of the empty /guide page. - Remove dead files: vendored demo libs, KasualFlow template logos, Algolia package files, committed resources/_gen cache. - Turn off the dead Universal Analytics tag (GA4 hook left in hugo.yaml). - CI: Hugo 0.135.0, checkout@v4, actions-gh-pages@v4, ubuntu runner; pull requests only verify the build. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the push-to-master deploy (peaceiris/actions-gh-pages) with the build -> upload-pages-artifact -> deploy-pages flow. This drops the need for a generated `master` branch and for contents:write, and uses current action versions (checkout v7, upload-pages-artifact v5, deploy-pages v5). Pull requests still only verify the build; the workflow can also be run manually. Requires the repo's Pages source to be set to "GitHub Actions". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The site no longer built on current Hugo: the theme used APIs removed years ago, and CI was pinned to Hugo 0.68.3. This rebuilds it on a current toolchain and refreshes the design. All existing page URLs are preserved.
What changed
themes/interimmsubmodule is vendored into this repo (layouts, data, i18n, assets at the site root). The shared theme repoInterImm/hugo-interimm-templateis not modified.lang(zh-CN/en),hreflang, canonical and OG tags with an absolutebaseURL, JSON-LD, sitemap inrobots.txt. Section pages (archives, cities, institutes) are no longernoindex.imagemapshortcode (Leaflet 1.9.4 with SRI) driven by front matter. The English city page was stale (old hub links, 3 of 4 markers) and now shares the current data.http://links to hosts that serve HTTPS are upgraded; the English "Welcome on Board" button now goes to/archives/instead of the empty/guidepage; a duplicate Discord link in the English footer is removed.ubuntu-latest. Deployment moves to GitHub Pages' officialupload-pages-artifact+deploy-pagesflow (no more generatedmasterbranch). Pull requests only verify the build; pushes tohugopublish; the workflow can also be run manually.Needs a decision or a look
master) to GitHub Actions. Until then the deploy job fails and the current site stays live. Suggested order: merge, switch the setting, then re-run the workflow (or push). The custom domaininterimm.orgis stored in the Pages settings and carries over. Optionally enable "Enforce HTTPS" at the same time; it is currently off.UA-50146153-1) stopped collecting in 2023. To enable GA4, add a measurement ID underservices.googleAnalytics.idinhugo.yaml(commented hook included)./css/bulma*,/js/*,/assets/{galleria,swiper,bulma-carousel,search},/images/{icons,social,search}, and leftover "KasualFlow" template logos under/images/logosand/uploads. Nothing in this repo references them, and the sibling projects I checked (hub, mars-map, mars-clock, comms-latency, solarsystem) don't either. Public icon, map and media paths are unchanged.categories/keywordspages and the/cities/page/1/pagination stub./guideis still an empty page; twohttp://links (exponentialdeepspace.org,computational-communication.com) stay because those hosts don't answer over HTTPS; the large.psd/.xcfdesign sources are still served from/images/about/; the English city page text is still Chinese.Testing
hugo --minify --gcbuilds with no warnings on Hugo 0.135.0. The URL inventory was compared against a patched build of the old site.interimm.orgreturn 200.🤖 Generated with Claude Code