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

Open
mammadasif777-coder wants to merge 2 commits into
CodeYourFuture:mainfrom
mammadasif777-coder:add-h2-check-prep-pages
Open

mammadasif777-coder wants to merge 2 commits into
CodeYourFuture:mainfrom
mammadasif777-coder:add-h2-check-prep-pages

Conversation

@mammadasif777-coder

Copy link
Copy Markdown

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 b360b77

@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 b360b77

@mammadasif777-coder

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

Module-level prep page pagination is off

1 participant