소스 검색

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