@aitrien/motifspec 1.14.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/codex.css +1 -1
- package/dist/tokens.css +1 -1
- package/dist/tokens.js +1 -1
- package/dist/tokens.json +1 -1
- package/docs/hugo.md +1 -1
- package/layouts/_partials/motifspec/body-end.html +1 -1
- package/layouts/_partials/motifspec/head.html +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Every release of MotifSpec (named brand-codex until 1.10.0), newest first. Entries before 1.10.0 keep the names they were released under. Versions follow the rules in `CONVENTIONS.md`: renaming or removing a semantic token is major, adding tokens, components or icons is minor, and changing a value or fixing a description is a patch. `npm run build` fails if the version in `package.json` has no entry here.
|
|
4
4
|
|
|
5
|
+
## [1.14.2] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- The Hugo shell partials publish the stylesheet and scripts at `/cx/` instead of `/motifspec/`. On GitHub Pages, a user site's `/motifspec/` path belongs to the motifspec repository's own Pages site, so turning on Pages for this repository hid aitrien.com's CSS and scripts. They stay one level below the root, so the stylesheet's `../fonts/` URLs still reach `/fonts/`. Asset paths inside Hugo (`resources.Get "motifspec/…"`) are unchanged.
|
|
9
|
+
|
|
5
10
|
## [1.14.1] - 2026-10-29
|
|
6
11
|
|
|
7
12
|
### Changed
|
package/dist/codex.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
|
|
3
3
|
@font-face { font-family: "Yarndings 12"; src: url("../fonts/yarndings-12-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
|
|
4
4
|
|
|
5
|
-
/* MotifSpec 1.14.
|
|
5
|
+
/* MotifSpec 1.14.2 — generated from tokens/*.json. Do not edit.
|
|
6
6
|
Themes: semantic colours use light-dark(); color-scheme follows the system unless
|
|
7
7
|
<html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
|
|
8
8
|
:root {
|
package/dist/tokens.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MotifSpec 1.14.
|
|
1
|
+
/* MotifSpec 1.14.2 — generated from tokens/*.json. Do not edit.
|
|
2
2
|
Themes: semantic colours use light-dark(); color-scheme follows the system unless
|
|
3
3
|
<html data-theme="light|dark"> pins it. --cx-primitive-* are for this file only. */
|
|
4
4
|
:root {
|
package/dist/tokens.js
CHANGED
package/dist/tokens.json
CHANGED
package/docs/hugo.md
CHANGED
|
@@ -18,7 +18,7 @@ The module ships the components as Hugo partials and the Markdown render hooks t
|
|
|
18
18
|
block = true # {caption="…"} on tables, {file="…"} on code, {width="prose"} on figures
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Pin a release with `hugo mod get github.com/aitrien/motifspec@vX.Y.Z`. The module mounts `dist/` at `assets/motifspec`, `fonts/` at `static/fonts` and `layouts/` at `layouts`.
|
|
21
|
+
Pin a release with `hugo mod get github.com/aitrien/motifspec@vX.Y.Z`. The module mounts `dist/` at `assets/motifspec`, `fonts/` at `static/fonts` and `layouts/` at `layouts`. The shell partials publish the stylesheet and scripts at `/cx/`: one level below the site root, because the stylesheet's font URLs are `../fonts/…`, and not `/motifspec/`, which on GitHub Pages belongs to the motifspec repository's own Pages site.
|
|
22
22
|
|
|
23
23
|
## The page shell
|
|
24
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{- /* docs/hugo.md. Call last inside <body>: drifts the backdrop and reveals the header's pause control. Without it
|
|
2
2
|
the contours stay still. */ -}}
|
|
3
|
-
{{- with resources.Get "motifspec/plate.js" | minify | fingerprint }}
|
|
3
|
+
{{- with resources.Get "motifspec/plate.js" | resources.Copy "cx/plate.js" | minify | fingerprint }}
|
|
4
4
|
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" defer></script>
|
|
5
5
|
{{- end }}
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
{{- else }}{{ errorf "motifspec/theme-init.js is missing: is the MotifSpec module imported?" }}{{ end }}
|
|
7
7
|
<link rel="preload" href="/fonts/national-park-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
|
|
8
8
|
<link rel="preload" href="/fonts/yarndings-12-latin.woff2" as="font" type="font/woff2" crossorigin>
|
|
9
|
-
{{- /* Published at /
|
|
10
|
-
|
|
9
|
+
{{- /* Published at /cx/…: one level below the root, so the stylesheet's ../fonts/ URLs reach /fonts/. Not /motifspec/:
|
|
10
|
+
on GitHub Pages, a user site's /motifspec/ belongs to the motifspec repository's own Pages site. */}}
|
|
11
|
+
{{- with resources.Get "motifspec/codex.css" | resources.Copy "cx/codex.css" | minify | fingerprint }}
|
|
11
12
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
|
12
13
|
{{- end }}
|
|
13
|
-
{{- with resources.Get "motifspec/codex.js" | minify | fingerprint }}
|
|
14
|
+
{{- with resources.Get "motifspec/codex.js" | resources.Copy "cx/codex.js" | minify | fingerprint }}
|
|
14
15
|
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" defer></script>
|
|
15
16
|
{{- end }}
|
package/package.json
CHANGED