mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

frankieliu
05.16.2020 813de5ccd6b1befd0d7efb7468402d3a7cb4913e
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.
1 files modified
8 ■■■■ changed files
layouts/_default/single.html 8 ●●●● patch | view | raw | blame | history
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 */}}