Publishing date article

Define when article get displayed

.

Define when article get published

With Hugo it is easy to define when article get displayed.

  1. Every article can have area with some FRONTMATTER setting. One possible entry is pubdate.
  2. Hugo has to run on this date to create static files.

In YAML style you can use something like below to make article visible from some date.

---
pubdate: "2020-04-06"
---

Static files get created by simply run hugo on command line or per cron without parameter. The run will create the static files.
Attention Such run will only create additional files but will never delete expired files.

The command hugo has to be executed in root folder of your site.

updatedupdated2020-11-292020-11-29