Skip to content

Send related essay links to kindel.com/essays - #5

Merged
tig merged 3 commits into
mainfrom
fix/essay-links
Oct 8, 2026
Merged

tig merged 3 commits into
mainfrom
fix/essay-links

Conversation

@tig

@tig tig commented Oct 7, 2026

Copy link
Copy Markdown
Member

The related-essays line rewrites a post in the WordPress Essays category (slug essays, id 448) to https://kindel.com/essays//. Other blog links stay on blog.kindel.com.

The partial reads the live category when it can, and data/essay_slugs.json when it cannot. The note in that file says how to refresh it. kindelwww carries its own copy of these partials until this module is pinned, because the host sets its own mounts.

Refs kindel/kindelwww#261

related.html rewrites an Essays-category post to the apex essay URL. Other blog links stay put.
@tig
tig marked this pull request as ready for review October 8, 2026 00:05
Copilot AI balanced review requested due to automatic review settings October 8, 2026 00:05
@tig tig self-assigned this Oct 8, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T00:09:02.507124Z 05c6699 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 05c6699a7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread layouts/partials/app-kit/essay-href.html Outdated
Comment thread layouts/partials/app-kit/essay-catalog.html
A missed WordPress page used to keep the posts already fetched. That hides every essay on the pages that did not load. Any failed page now drops that partial list and uses data/essay_slugs.json.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Incomplete pagination can bypass the snapshot fallback, and rewritten links can alter encoded fragment targets.

2 open findings
What changed in this PR

Routes shared related-essay links to kindel.com for Essays-category posts, leaving other blog links unchanged.

Changes:

  • Adds URL rewriting backed by live WordPress data and an offline snapshot.
  • Mounts and documents the snapshot.
  • Adds snapshot and link validation tests.
File Description
tests/​test_essay_links.py Checks snapshot contents and link conventions.
README.md Documents routing and snapshot mounting.
layouts/​partials/​app-kit/​related.html Applies the URL rewrite helper.
layouts/​partials/​app-kit/​essay-slug.html Validates essay slugs.
layouts/​partials/​app-kit/​essay-href.html Rewrites eligible blog links.
layouts/​partials/​app-kit/​essay-catalog.html Loads live or offline essay mappings.
hugo.toml Mounts module data.
data/​essay_slugs.json Supplies offline slug and ID mappings.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread layouts/partials/app-kit/essay-catalog.html
Comment thread layouts/partials/app-kit/essay-href.html Outdated
@tig
tig merged commit 8e7225a into main Oct 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants