How to fix Hugo ignoring a new post
When hugo
is ignoring new posts while old posts are still rendered correctly, this is usually since hugo
considers the new posts to be in the future.
Solution 1: Use -F
(future) flag
Use the -F
flag to hugo
to also render posts which are considered to be in the future.
hugo -F
or
hugo -F serve
Solution 2: Set the time zone in hugo.yaml
Configure it to your time zone, e.g.
timeZone: 'Europe/Berlin'
This will fix Hugo interpreting your post timestamps as UTC, which leads Hugo to interpret your timestamps as being in the future.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow