Quellcode durchsuchen

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 vor 6 Jahren
Ursprung
Commit
182f010c03
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  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 = []