byauthor.html 892 B

123456789101112131415161718192021
  1. <p>
  2. {{ i18n "published" }}
  3. {{ if ne .Site.Params.hide_author true }}
  4. {{ with .Params.author }}
  5. {{ i18n "by" }} <span itemprop="author">{{ index . }}</span>
  6. {{ else }}
  7. <span itemprop="author">{{ .Site.Params.author }}</span>
  8. {{ end }}
  9. {{ end }}
  10. <time datetime="{{ dateFormat "2006-01-02T15:04:05-07:00" (default .Date (.PublishDate)) }}">
  11. {{ dateFormat "2 Jan, 2006" (default .Date (.PublishDate)) }}
  12. </time>
  13. {{ with .Params.categories }}
  14. in <span itemprop="articleSection">{{ delimit (apply (apply (sort .) "partial" "post/category-link" ".") "chomp" ".") ", " " and " }}</span>
  15. {{ end }}
  16. {{ with .Params.tags }}
  17. {{ i18n "and" }} tagged {{ delimit (apply (apply (sort .) "partial" "post/tag-link" ".") "chomp" ".") ", " " and " }}
  18. {{ end }}
  19. {{ i18n "using" }} <span itemprop="wordCount">{{ .WordCount }}</span> {{ i18n "words" }}.
  20. </p>