Skip to content

v1.7.0

Choose a tag to compare

@Vonng Vonng released this 28 Nov 08:44
· 14 commits to main since this release

OINK 1.7.0 adds six content components (Timeline, Update, Video, Audio, Social and Map), typeset rich-text copy, 29 single-key shortcuts on a top-layer sheet with local browsing history, fold-all and an adjustable reading width, and a typography pass that gives each visual preset its own Chinese arrangement of system fonts. Builds stay Hugo-only and plain CSS on any supported Hugo edition.

Six content components

Each has a native or minimal authoring form and a defined result in HTML, Print, Markdown/LLMS and RSS.

  • Timeline: a definition list followed by {.timeline} renders as an axis with a marker column; CSS only.
  • Update: ## v1.7.0 {.update date="2026-11-28" tags="Added, Changed"} keeps the heading intact and adds a <time> and tag-chip line.
  • Video: ![name](clip.mp4) renders a native player (caption, num, poster, track, width, height, muted autoplay). YouTube, Bilibili and Vimeo links render cards; platforms listed in params.video_embeds load a sandboxed player in place after a click, and nothing is requested before it.
  • Audio: ![title](episode.mp3) renders a titled native player; the first six preload metadata, and one audible player plays at a time.
  • Social: the social shortcode quotes a post from X, Bluesky, Mastodon, Threads, Weibo, Zhihu, Telegram or LinkedIn entirely from the page, with images, galleries and one nested quote, and no platform request.
  • Map: a map fence renders a numbered place list with OpenStreetMap links everywhere; with params.map (enable: true, an HTTPS tiles template and its attribution) HTML adds an interactive map through vendored Leaflet 1.9.4. The theme names no tile service, and loading: click requests nothing before the reader asks.

Typeset copy

A selection copied from article prose pastes as clean rich text in the preset's print palette, without the page canvas, anchors, copy buttons or line numbers, so editors such as WeChat no longer keep grey boxes. text/plain is unchanged. On by default; params.ui.rich_copy: false keeps the browser's behaviour.

Shortcuts, history and reading width

  • 29 shortcuts in three groups (Navigation, Actions, View), shown on a sheet opened with ' or the footer ? button; rows the page cannot run stay in place, dimmed. Readers can turn single-key shortcuts off from the sheet.
  • H opens a local browsing history (up to 100 pages, per site, in localStorage only); O folds or unfolds everything; - and = narrow or widen the reading column and remember the choice.
  • Closing the Command Palette, history or Duo View no longer reopens the hover menu its focus returns to (the footer sheet, the language or version menu), and an Escape that dismisses input-method candidates stays with the input method.

Presets and typography

  • Paper becomes an ivory sheet with a clay accent (#9b4a28, dark #de8460); links stay blue, and theme_color: '#2b5f8c' restores the previous accent.
  • Each preset arranges Chinese from fonts already on the reader's system (no CJK file ships): Song headings over Hei text in Paper, Hei headings over Song prose in Ink, Kai for emphasis and quotations through a CJK-only OINK Kai face.
  • Running-text links in Paper and Ink take a hairline underline at the sentence's weight; table figures are tabular; a bare <kbd> draws the theme's keycap.

Also

  • Markmap gains corner controls for Fit to window and Download SVG; ECharts fences can use site themes from window.OinkEchartsThemes.
  • The archived-version banner is styled, asciinema markers reach the player as labelled pairs, and kbd ignores named parameters as its warning says.
  • Vendored libraries refreshed: Mermaid 12.4.0, Swagger UI 5.36.0, ReDoc 3.2.0, asciinema-player 3.19.0, @plantuml/core 1.2026.10, @markmap/* 1.1.1.
  • All 32 catalogs gained 22 labels; each now has 264 keys.

Upgrade

hugo mod get github.com/pgsty/oink@v1.7.0
hugo mod tidy
hugo --environment production --minify --printPathWarnings

Readers' keys that moved since 1.6.0: Zen Mode H → Z (H is history), languages L/Y → X (L switches the index layout, Y the color mode), T cycles presets, G goes home (Enter/Space open the focused tree item), and the home page N alias is gone. Sites should note that typeset copy is on by default and that Paper's accent changed. See Upgrade to 1.7.0.

Validation

Validated with Hugo 0.170.1, Go 1.27.4, Python 3.14.8 and Node 26.13.0: 144 JS runtime unit tests, the full theme check suite (42 checkers, regression fixture, goldens, migration and consumer tooling), CI including Book EPUB/PDF publication, and the documentation site's checks and 630 browser tests.

English release notes · Chinese release notes · Full changelog