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

fix(routing/posts): updated slug to match all subdirs #266

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

hamzab-01
Copy link
Contributor

What kind of changes does this PR include?

  • Changes with larger consequences (logic, library updates, etc.)

Description

  • currently, content/posts are only matched on the first level
  • updated slug to match file paths of any depth, for better organisation and flexibility
content/
├─ posts/
│  ├─ 2024/
│  │  ├─ third-post.md
│  │  ├─ fourth-post/
│  │  │  ├─ index.md
│  │  │  ├─ picture.png
│  ├─ 2023/
│  │  ├─ second-post.md
│  ├─ archive/
│  │  ├─ first-post.md
│  ├─ drafts/
│  │  ├─ fifth-post.md

content/
├─ posts/
│  ├─ en/
│  │  ├─ example.md
│  ├─ de/
│  │  ├─ example.md
│  ├─ fr/
│  │  ├─ example.md

Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for astro-theme-cactus ready!

Name Link
🔨 Latest commit d5f1e0a
🔍 Latest deploy log https://app.netlify.com/sites/astro-theme-cactus/deploys/669a46f49f0c9b0008224c28
😎 Deploy Preview https://deploy-preview-266--astro-theme-cactus.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@chrismwilliams chrismwilliams merged commit c6be4ef into chrismwilliams:main Jul 19, 2024
5 checks passed
@chrismwilliams
Copy link
Owner

Thanks @hamzab-01 for doing this, and the descrption!

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