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 Make where accept slice 2016-03-06 13:15:07 +01:00
template.go Show full template error 2017-01-11 09:56:03 +01:00
template_ast_transformers.go tpl: Fix params case issue with nested template funcs 2016-11-27 19:02:43 +01:00
template_ast_transformers_test.go all: Refactor to nonglobal template handling 2017-01-10 01:36:59 +01:00
template_embedded.go tpl: Improve generation of OpenGraph date tags 2017-01-23 21:31:30 +07:00
template_func_truncate.go tpl: Add truncate template function 2017-01-06 10:42:32 +01:00
template_func_truncate_test.go tpl: Add truncate template function 2017-01-06 10:42:32 +01:00
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 commands, hugolib, source, target, tpl: Get rid of some fmt statements 2016-11-22 23:43:55 +01:00
template_i18n_test.go tpl: Golint fixes 2016-11-05 17:28:14 +01:00
template_resources.go tpl: Simplify 2016-11-23 18:53:50 +01:00
template_resources_test.go tpl: Simplify 2016-11-23 18:53:50 +01:00
template_test.go all: Refactor to nonglobal template handling 2017-01-10 01:36:59 +01:00