hugo/tpl
Alan Orth 95ad3ad2fa tpl: Improve generation of OpenGraph date tags
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/
2017-01-23 21:31:30 +07:00
..
reflect_helpers.go
template.go
template_ast_transformers.go
template_ast_transformers_test.go
template_embedded.go tpl: Improve generation of OpenGraph date tags 2017-01-23 21:31:30 +07:00
template_func_truncate.go
template_func_truncate_test.go
template_funcs.go tpl: Fix deadlock in cached partials 2017-01-18 10:30:22 +01:00
template_funcs_test.go tpl: Fix broken benchmarks 2017-01-14 12:39:52 +01:00
template_i18n.go
template_i18n_test.go
template_resources.go
template_resources_test.go
template_test.go