Browse Source

talks: Parse Markdown in authors param (#673)

George Cushen 7 năm trước cách đây
mục cha
commit
099a13b688

+ 3 - 0
archetypes/talk.md

@@ -8,6 +8,9 @@ draft = false
 time_start = {{ .Date }}
 time_end = {{ .Date }}
 
+# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
+authors = []
+
 # Abstract and optional shortened version.
 abstract = ""
 abstract_short = ""

+ 3 - 0
exampleSite/content/talk/example-talk.md

@@ -8,6 +8,9 @@ draft = false
 time_start = 2030-06-01T13:00:00
 time_end = 2030-06-01T15:00:00
 
+# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
+authors = []
+
 # Abstract and optional shortened version.
 abstract = ""
 abstract_short = ""

+ 1 - 1
layouts/talk/single.html

@@ -10,7 +10,7 @@
       <h1 itemprop="name">{{ .Title }}</h1>
       <span class="pub-authors" itemprop="author">
         {{ with .Params.authors }}
-        {{ delimit . ", " }}
+        {{ delimit . ", " | markdownify }}
         {{ end }}
       </span>
       <span class="pull-right">