浏览代码

archetypes: Document `url_custom` option for publications

George Cushen 7 年之前
父节点
当前提交
76de60ec59
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 4 0
      archetypes/publication.md
  2. 3 3
      exampleSite/content/publication/clothing-search.md

+ 4 - 0
archetypes/publication.md

@@ -48,6 +48,10 @@ url_video = ""
 url_poster = ""
 url_source = ""
 
+# Custom links (optional).
+#   Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`.
+# url_custom = [{name = "Custom Link", url = "http://example.org"}]
+
 # Does this page contain LaTeX math? (true/false)
 math = false
 

+ 3 - 3
exampleSite/content/publication/clothing-search.md

@@ -46,9 +46,9 @@ url_video = "#"
 url_poster = "#"
 url_source = "#"
 
-[[url_custom]]
-name = "Custom Link"
-url = "http://www.example.org"
+# Custom links (optional).
+#   Uncomment line below to enable. For multiple links, use the form `[{...}, {...}, {...}]`.
+url_custom = [{name = "Custom Link", url = "http://example.org"}]
 
 # Does the content use math formatting?
 math = true