浏览代码

Fix to take care of multiple author list, or for setting the (#221)

author parameter to a []string, which is the default for ox-hugo
output.
tags/2.6.0
frankieliu 5 年前
父节点
当前提交
813de5ccd6
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      layouts/_default/single.html

+ 7
- 1
layouts/_default/single.html 查看文件

@@ -20,7 +20,13 @@
</h1>
{{ with .Params.author }}
<p class="tracked">
By <strong>{{ . | markdownify }}</strong>
By <strong>
{{ if reflect.IsSlice . }}
{{ delimit . ", " | markdownify }}
{{else}}
{{ . | markdownify }}
{{ end }}
</strong>
</p>
{{ end }}
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}

正在加载...
取消
保存