mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 09:21:35 +00:00
95ad3ad2fa
Allow all nodes/pages to use date-related OpenGraph meta tags, not only sites which are using the as-of-yet unfinished .Site.Authors functionality. Improve compliance of tags with Facebook's OpenGraph docs for the "website" and "article" types[0][1]. Also, use the proper tag for modification date (og:update_time vs article:modified_time). Generate date published using either .PublishDate or .Date, and use .Lastmod for modification date, which can use the new enableGitInfo functionality from Hugo 0.18, but seamlessly falls back to .Date if the site does not have this enabled/supported. [0] https://developers.facebook.com/docs/reference/opengraph/object-type/website/ [1] https://developers.facebook.com/docs/reference/opengraph/object-type/article/ |
||
---|---|---|
.. | ||
reflect_helpers.go | ||
template.go | ||
template_ast_transformers.go | ||
template_ast_transformers_test.go | ||
template_embedded.go | ||
template_func_truncate.go | ||
template_func_truncate_test.go | ||
template_funcs.go | ||
template_funcs_test.go | ||
template_i18n.go | ||
template_i18n_test.go | ||
template_resources.go | ||
template_resources_test.go | ||
template_test.go |