瀏覽代碼

feat: add publishDate to publish future publications now (#1025)

Similar to the talk template.

When `publishDate` is used in conjunction with `date`, it enables publishing future publications now.

See Hugo docs.
Carlos Eduardo de Andrade 6 年之前
父節點
當前提交
182f010c03
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      archetypes/publication/index.md

+ 5 - 0
archetypes/publication/index.md

@@ -1,7 +1,12 @@
 +++
 title = "{{ replace .Name "-" " " | title }}"
+
+# Publication date.
 date = {{ .Date }}
 
+# Schedule page publish date.
+publishDate = {{ .Date }}
+
 # Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
 authors = []