浏览代码

archetypes: Default `projects` to empty array (#206 #340)

* default `projects` to empty array
* prevent projects button being generated when not required
Dongdong Tian 7 年之前
父节点
当前提交
5e4a9e9d8a
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 1
      archetypes/publication.md
  2. 2 1
      archetypes/talk.md

+ 2 - 1
archetypes/publication.md

@@ -34,7 +34,8 @@ selected = false
 # Projects (optional).
 #   Associate this publication with one or more of your projects.
 #   Simply enter the filename (excluding '.md') of your project file in `content/project/`.
-projects = [""]
+#   E.g. `projects = ["deep-learning"]` references `content/project/deep-learning.md`.
+projects = []
 
 # Links (optional).
 url_pdf = ""

+ 2 - 1
archetypes/talk.md

@@ -25,7 +25,8 @@ selected = false
 # Projects (optional).
 #   Associate this talk with one or more of your projects.
 #   Simply enter the filename (excluding '.md') of your project file in `content/project/`.
-projects = [""]
+#   E.g. `projects = ["deep-learning"]` references `content/project/deep-learning.md`.
+projects = []
 
 # Links (optional).
 url_pdf = ""