Commit Graph

9 Commits

Author SHA1 Message Date
Joe Mooring 65bd711a3b [PATCH] hugolib: Deprecate site methods Author, Authors, and Social
cherry-picked from gohugoio/hugo@d4d49e0
2024-11-03 13:57:32 +05:30
Razon Yang df330a05b5 [PATCH] tpl: Allow using page resources on the images page parameter
for `opengraph`, `schema` and `twitter_cards` templates

The page images selection order as follows:

1. Page's images parameter, image resources are supported.
2. Page's image resources that naming in *feature*, *cover* or *thumbnail* pattern.
3. If no page images specified, then the first one of site's images will be used as the fallback, supports site resources.

cherry-picked from https://github.com/gohugoio/hugo/commit/14d85ec136413dcfc96ad8e4d31633f8f9cbf410

++ compatibility fixes for PaperMod

Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2024-03-10 12:48:37 +05:30
Joe Mooring 87df659c18 [PATCH] tpl/tplimpl: Fix deprecation logic in embedded templates
cherry-picked from https://github.com/gohugoio/hugo/commit/cb98e9061b3d62b6f1e635a6cf9a8be57dc3f56c
2023-12-16 19:43:59 +05:30
Joe Mooring 3fb112bc85 [PATCH] tpl/tplimpl: Deprecate .Site.Social usage with internal templates
cherry-picked from https://github.com/gohugoio/hugo/commit/4910312ee75a1c67fad68c259ad9576dca854c62
2023-12-16 19:43:59 +05:30
Aditya Telange 575cc0ca8c Use site function instead of .Site or $.Site
- The site function provides global access to the same data as the .Site page method.
- Current context (`.`) is never considered.
2022-03-27 18:44:06 +05:30
Aditya Telange 24e5d82ecb Update hugo internal templates
Remove .Site.Authors from embedded templates

https://github.com/gohugoio/hugo/commit/f6745ad3588a7b3aaae228fec18fe0027affd566
2021-05-01 11:32:45 +05:30
Aditya Telange 23636ab326 templates: social-meta: prefer cover image over other images 2020-10-12 17:26:45 +05:30
Aditya Telange 4a4d0c009c templates: add cover image to be linked into meta
for opengraph, schema and twitter
2020-10-11 21:04:17 +05:30
Aditya Telange 6c4e094c91 templates: Add Twitter Cards, OpenGraph, Schema
This code is licensed under Apache License 2.0
and is part of https://github.com/gohugoio/hugo
2020-10-11 20:07:43 +05:30