Skip to content

fix: stop generating _print pages in Hugo build#917

Open
DHEVIKA wants to merge 1 commit intolayer5io:masterfrom
DHEVIKA:fix/remove-print-pages
Open

fix: stop generating _print pages in Hugo build#917
DHEVIKA wants to merge 1 commit intolayer5io:masterfrom
DHEVIKA:fix/remove-print-pages

Conversation

@DHEVIKA
Copy link

@DHEVIKA DHEVIKA commented Mar 22, 2026

This PR updates the Hugo configuration (hugo.yaml) to stop generating _print pages during the site build.

Problem
Currently, Hugo generates _print pages for every content section, which are not needed and clutter the public/ output.

Solution

  • Added _print to ignoreFiles in hugo.yaml
  • Verified that Hugo no longer generates _print pages

How to Test

  1. Clone this branch.
  2. Run hugo locally.
  3. Confirm that _print pages are no longer in public/.
  4. Ensure site builds successfully without errors.

References

Signed-off-by: Dhevika <subhasri1600@gmail.com>
@netlify
Copy link

netlify bot commented Mar 22, 2026

Deploy Preview for bejewelled-pegasus-b0ce81 ready!

Name Link
🔨 Latest commit ac7a205
🔍 Latest deploy log https://app.netlify.com/projects/bejewelled-pegasus-b0ce81/deploys/69c0355c04b8900008c0b9ee
😎 Deploy Preview https://deploy-preview-917--bejewelled-pegasus-b0ce81.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 project configuration.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant