I’m trying to apply the following to several individual markdown files.
While render and list seem to be working properly, my environment setting seems to have no impact. I have tested with hugo server and various versions of hugo server --environment [insert value]
The goal is to build these pages locally for testing/internal reference but not wanting them to be published on the production server.
I’ve read over documentation, and do not have any config related to build.
Any suggestions would be fantastic, there may be something simple I’m looking over.
build:
render: never
list: never
target:
environment: production
Thanks in advance and hats off to the development team, Hugo continues to be a massive win!
Site is built on Netlify with a hugo server --minify command. Does this answer the question?
I do have some IGNOREFILES parameters set for the Netlify environment via netlify.toml which is easy when based on an entire directory, but for these purposes I need some individual controls per .md file
If you are testing locally, and switching back and forth between publishing all and publishing some, remember to clear your public directory before each test. On Netlify you don’t have to worry about that because each build starts with a clean slate.
This is located in a single markdown file. content/about/helpers.md in this instance.
The goal is simply to reference this when building locally, and not have it publish to Netlify, but there are a number of various .md files i’d like to apply this to.
I admit my knowledge of environment building is limited.