Commit 8e6cd12
authored
Migrate theme from git submodule to Hugo Module (v0.2.2) (#25)
* Migrate theme from git submodule to Hugo Module (v0.2.2)
Drops themes/pager submodule in favor of a Hugo Module import pinned
in go.mod and vendored under _vendor/. Vendoring keeps CI and
Cloudflare Pages free of a Go toolchain requirement (only the
maintainer running `hugo mod get` / `hugo mod vendor` needs Go).
Theme bump v0.2.0 -> v0.2.2 covers the cosmetic cleanup from 0.2.1
(rounded-corners fix, stale Cascadia references, doc honesty) and
the self-hosted JS lint from 0.2.2. Because the theme now owns its
own ESLint + tsc --checkJs, the blog drops its mirror tooling:
- eslint.config.mjs, package.json (+ lock), and node_modules.
- `js-lint` / `js-typecheck` pre-commit hooks.
- `lint` CI job in perf.yml (budget + lighthouse remain).
- Required-status-checks on main updated to {budget, lighthouse}.
Docs also trimmed: PERFORMANCE.md stops documenting theme internals
(SCSS pipeline paths, the min-content gotcha story, font-family
declarations) and delegates implementation to the theme. The
blog-level rules - 14 KB single flight, zero JS, system fonts,
Lighthouse 100 - stay. README swaps the submodule instructions for
the Hugo Module bump flow.
* chore: drop stale tests/visual/ large-file exclude
The `exclude: ^tests/visual/.*-snapshots/.*\.png$` pattern targeted
Playwright visual-regression snapshots in a tests/ tree that was
retired in the v0.2.0 release. The 200 KB large-file guard has had
no paths to skip since; the line is dead weight.
---------
Co-authored-by: Przemysław Szypowicz <2733699+pszypowicz@users.noreply.github.com>1 parent 5ad265c commit 8e6cd12
48 files changed
Lines changed: 1517 additions & 1280 deletions
File tree
- .github/workflows
- _vendor
- github.com/pszypowicz/hugo-theme-pager
- assets
- js
- scss
- layouts
- _default
- _partials
- head
- helper
- widget
- static
- config/_default
- docs
- themes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 42 | | |
64 | 43 | | |
65 | 44 | | |
66 | 45 | | |
67 | 46 | | |
68 | 47 | | |
69 | | - | |
70 | 48 | | |
71 | 49 | | |
72 | 50 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments