Repository navigation
Commit 21edaf3
authored
feat(links): check internal /blog/ links resolve to a post (#199)
* feat(links): pre-commit check that /blog/<slug>/ links resolve to a post in _posts/
Git-Session-Id: 1e32
* fix(links): drop or repair 28 internal blog links to missing posts
Git-Session-Id: 1e32
* fix(precommit): skip deleted files in internal blog link check
Pre-commit passes staged paths including deletions; read_text() on a
deleted post crashed the hook with FileNotFoundError. Skip nonexistent
paths and cover it with a regression test.
Git-Session-Id: dcc56cb0-de33-5447-b1f6-ae482c644aeb1 parent 82b80cd commit 21edaf3
50 files changed
Lines changed: 107 additions & 29 deletions
File tree
- _posts
- assets/images/og
- scripts/precommit
- tests
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 | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
| |||
0 commit comments