Ver código fonte

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 anos atrás
pai
commit
813de5ccd6
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7
    1
      layouts/_default/single.html

+ 7
- 1
layouts/_default/single.html Ver arquivo

@@ -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 */}}

Carregando…
Cancelar
Salvar