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.

36 lines
1.8 KiB

4 years ago
  1. +++
  2. title = "Structured Data"
  3. description = "Give search engines rich info about site structure."
  4. categories = ["search"]
  5. tags = ["metadata", "semantics", "robots", "SEO"]
  6. features = ["related content"]
  7. [[copyright]]
  8. owner = "Josh Habdas"
  9. date = "2019"
  10. license = "agpl-3.0-or-later"
  11. +++
  12. After Dark generates structured metadata using {{< external "https://schema.org" />}} specifications for [Custom Homepage](../custom-homepage), [Related Content](../related-content/), [Featured Posts](../featured-posts), [Section Menu](../section-menu), [Image Galleries](/module/hall-of-mirrors) and adapts data automatically using author-defined [Post Bylines](../post-bylines) as shown here:
  13. Schema Property | Frontmatter Value
  14. --------------- | -----------------
  15. author? | `author`
  16. datePublished | `publishdate` or `date`
  17. articleSection | `categories`
  18. [Post Images]({{< relref "post-images" >}}) use {{< external "https://gohugo.io/content-management/page-resources/#page-resources-metadata" "Page Resources Metadata" />}} to add image captions:
  19. Schema Property | Header Image Resource Metadata
  20. --------------- | ----------------
  21. caption? | `creator` [`sameas` domain] or `caption`
  22. Consider adding structured data when creating [Custom Layouts](../custom-layouts) for improved page semantics and better SEO.
  23. Learn more about structured data using the following resources:
  24. - {{< external href="https://www.w3.org/TR/microdata/" text="HTML Microdata on W3C" />}}
  25. - {{< external href="https://developer.mozilla.org/en-US/docs/Web/HTML/Microdata" text="Microdata on MDN" />}}
  26. - {{< external href="https://moz.com/learn/seo/schema-structured-data" text="Schema Structured Data on Moz" />}}
  27. Use [Webmaster Tools](../webmaster-tools/) to validate structured data. This can be done from a development machine using [Ephemeral Hosting](../ephemeral-hosting/).