Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace all URLs with their canonical version #47

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

zephraph
Copy link
Owner

@zephraph zephraph commented Sep 12, 2024

Fixes #42 #45

This changes the publishing model to be based on the slugified title (either the title property in front matter or the first H1) and the primary tag (if one is present). I also added the notion of a tag mapping so I can change certain tags to be different URLs. E.g. I've got the recurse tag mapped to rc. So note titled Hello world with the tag Recurse would end up with a url /rc/hello-world.

This also required some publishing updates. Note that the URLs rendered in the UI now point to whatever the canonical version is.

Copy link

cloudflare-workers-and-pages bot commented Sep 12, 2024

Deploying just-be-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5663b86
Status: ✅  Deploy successful!
Preview URL: https://1402c8a5.just-be-dev.pages.dev
Branch Preview URL: https://replaces-urls-with-canonical.just-be-dev.pages.dev

View logs

@zephraph zephraph marked this pull request as ready for review September 13, 2024 14:41
@zephraph zephraph merged commit 96b2e65 into main Sep 13, 2024
2 checks passed
@zephraph zephraph deleted the Replaces-URLs-with-Canonical branch September 13, 2024 14:44
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.

Streamline publishing model
1 participant