Frequently Asked Questions
I can’t see my content!
Is your markdown file in draft mode? When testing, run hugo server
with the -D
or --buildDrafts
switch.
Can I set configuration variables via OS environment?
Yes you can! See Configure with Environment Variables.
How do I schedule posts?
- Set
publishDate
in the page Front Matter to a date in the future. - Build and publish at intervals.
How to automate the “publish at intervals” part depends on your situation:
- If you deploy from your own PC/server, you can automate with Cron or similar.
- If your site is hosted on a service similar to Netlify you can use a service such as ifttt to schedule the updates.
Also see this Twitter thread:
@GoHugoIO Converted https://t.co/icCzS7Ha7q from @Medium to Hugo yesterday. Once I figure out how to do scheduled posts I will be ecstatic.
— Chris Short (@ChrisShort) February 10, 2018
Can I use the latest Hugo version on Netlify?
Yes you can! Read this.