Skip to content

feat(json): add parents to more pages #243

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

Merged
merged 1 commit into from
Jun 17, 2025
Merged

feat(json): add parents to more pages #243

merged 1 commit into from
Jun 17, 2025

Conversation

fiji-flo
Copy link
Contributor

Description

Ads a parent field to more index.json and fix some bugs along the way.

see diff: https://hansknall.org/parents.html

and fix some bugs along the way
@fiji-flo fiji-flo requested a review from argl June 16, 2025 20:22
while let Some(i) = url.trim_end_matches('/').rfind('/') {
let parent_url = &url[..if doc.trailing_slash() { i + 1 } else { i }];
if parent_url.ends_with(doc.base_slug()) {
if parent_url
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This needs improvements down the road 😮‍💨

@fiji-flo fiji-flo merged commit 5453fe9 into main Jun 17, 2025
4 checks 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.

1 participant