You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.6 KiB

4 years ago
  1. +++
  2. title = "Post Bylines"
  3. description = "Create human and machine readable bylines in posts."
  4. categories = ["experience"]
  5. tags = ["author", "posts", "taxonomy", "publishing"]
  6. features = ["related content", "code highlighter"]
  7. notes = [
  8. "update 'taxonomy pages' post byline example if modified"
  9. ]
  10. [[copyright]]
  11. owner = "Josh Habdas"
  12. date = "2019"
  13. license = "agpl-3.0-or-later"
  14. +++
  15. After Dark creates rich post bylines automatically. Bylines include optional author name, word count, links to [Taxonomy Pages](../taxonomy-pages) and [Structured Data](../structured-data).
  16. {{% hackcss-card header="Example Byline" %}}
  17. Published [by `author`] [`publishdate` or `date`] in [navigation](/categories/navigation) and tagged [links](/tags/links) and [taxonomy](/tags/taxonomy) using [`wordcount`] words.
  18. {{% /hackcss-card %}}
  19. If `author` is specified in {{< external href="https://gohugo.io/getting-started/configuration/" text="Site Configuration" />}} params or post {{< external href="https://gohugo.io/content-management/front-matter/" text="Front Matter" />}} it will be included automatically in the byline attributing the author:
  20. ```toml
  21. [params]
  22. author = "Billy Joe Jim Bob" # the guy behind the guy behind the guy
  23. ```
  24. Adjust `hide_author` in {{< external href="https://gohugo.io/getting-started/configuration/" text="Site Configuration" />}} to suppress attribution site-wide:
  25. ```toml
  26. [params]
  27. author = "" # optional setting, not required in config
  28. hide_author = true # hides author name and related structured data
  29. ```
  30. Combine with `categories` and [Last Modified](../last-modified) to produce unique [Structured Data](../structured-data).