Skip to content

Add build-time check for missing h2 in prep page contentAdd build-time check for missing h2 in prep page content - #2019

Merged
illicitonion merged 3 commits into
CodeYourFuture:mainfrom
mammadasif777-coder:add-h2-check-prep-pages
Nov 23, 2026
Merged

illicitonion merged 3 commits into
CodeYourFuture:mainfrom
mammadasif777-coder:add-h2-check-prep-pages

Conversation

@mammadasif777-coder

Copy link
Copy Markdown
Contributor

Fails the build with a clear error if a prep page has content but no h2 heading, per the follow-up request in #713.

Fixes #713

Adds a build-time check to prep.html so the build fails with a clear
error if a prep page has content but no h2 heading, as requested in
the follow-up comment on the issue.

Tested locally:

  • Full site builds cleanly with hugo server -D (824 pages, no errors)
  • Verified the check fires correctly by temporarily adding content
    without an h2 to a prep page — got the expected error message,
    then reverted the test change.

Fails the build with a clear error if a prep page has content but
no h2 heading, per the follow-up request in CodeYourFuture#713.
@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

👷 Deploy request for cyf-curriculum pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 530b756

@github-project-automation github-project-automation Bot moved this to 📋 Backlog in Curriculum Planning Sep 24, 2026
@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

👷 Deploy request for cyf-common pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 530b756

@mammadasif777-coder

Copy link
Copy Markdown
Contributor Author

Hi! Just checking in on this — happy to make any changes if needed. Let me know if anything's missing or should be adjusted.

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry for the huge delay in reviewing this, and thank you for the contribution! This looks good to me!

@github-project-automation github-project-automation Bot moved this from 📋 Backlog to 👀 In review in Curriculum Planning Nov 23, 2026
@illicitonion
illicitonion enabled auto-merge (squash) November 23, 2026 16:43
@illicitonion
illicitonion merged commit e8e9230 into CodeYourFuture:main Nov 23, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Curriculum Planning Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Module-level prep page pagination is off

2 participants