matcornic / matcornic/hugo-theme-learn

reference chapter

Open
#409 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

If I create a chapter with:
hugo new --kind chapter newchapter/_index.md

And name it chapter 1:
+++
title = "Noget"
date = 2020-06-08T13:44:16+02:00
weight = 5
chapter = true
pre = "1. "
+++

Chapter 1

Some Chapter title

Lorem Ipsum.

Is it possible at sub pages to ref. to which chapter they belong to? so i sub page with get 1. automatic and then I only have to set 1 e.g. 1.1?

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

Reproduce the chapter setup with hugo new --kind chapter newchapter/_index.md, then inspect how the theme handles chapter and subpage metadata. Done means subpages can inherit the parent chapter number automatically while allowing their own subsection numbering, such as 1.1.

Written by the indexing model from the issue text.

Assessment

Tech stack
hugo
Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.