matcornic / matcornic/hugo-theme-learn

SLUG don't work in chapter or page sub chapter

Open
#508 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1.6k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

hi,

i will use SLUG for custom my URL but it doesn't work when my page is a chapter (_index.md) or a sub chapter (Folder/_index.md). it works for page only.

[https://zupimages.net/viewer.php?id=21/30/ak2k.png](url)

Could you help me ?
Thanks for your work

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the URL behavior in Hugo with a page using a slug, then compare it with a chapter (_index.md) and a subchapter (Folder/_index.md). Identify why the slug works for a page but not for either chapter type; done means custom URLs work consistently for pages, chapters, and subchapters.

Written by the indexing model from the issue text.

Assessment

Tech stack
hugo
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.