hugo/hugolib
Razon Yang 14d85ec136
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.
2023-12-04 12:05:41 +01:00
..
assets/images
filesystems
paths
testdata
testsite Add support for CODEOWNERS 2022-02-23 22:43:19 +01:00
404_test.go
alias.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
alias_test.go
breaking_changes_test.go
cascade_test.go
codeowners.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
collections.go Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
collections_test.go
config.go
config_test.go
configdir_test.go
content_factory.go
content_factory_test.go Add --force to hugo new 2022-09-08 15:35:11 +02:00
content_map.go
content_map_page.go markdown: Pass emoji codes to yuin/goldmark-emoji 2023-10-24 12:04:13 +02:00
content_map_test.go Fix HasMenuCurrent and IsDescendant/IsAncestor when comparing to itself 2022-05-28 10:56:54 +02:00
content_render_hooks_test.go Split parse and render for Goldmark 2023-02-24 10:40:06 +01:00
datafiles_test.go all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
dates_test.go
disableKinds_test.go
embedded_shortcodes_test.go
embedded_templates_test.go tpl: Allow using page resources on the images page parameter for opengraph, schema and twitter_cards templates 2023-12-04 12:05:41 +01:00
fileInfo.go
fileInfo_test.go
frontmatter_test.go
gitinfo.go
hugo_modules_test.go
hugo_sites.go
hugo_sites_build.go
hugo_sites_build_errors_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
hugo_sites_build_test.go Move all Kind constants to its own package 2023-07-28 15:14:23 +02:00
hugo_sites_multihost_test.go Move all Kind constants to its own package 2023-07-28 15:14:23 +02:00
hugo_sites_rebuild_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo_smoke_test.go Fix recently broken benchmark 2023-09-12 11:50:31 +02:00
image_test.go
integration_test.go
integrationtest_builder.go
language_content_dir_test.go
language_test.go Reduce binary size vs locale, update to CLDR v36.1 2021-08-02 19:40:32 +02:00
menu_test.go
minify_publisher_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
mount_filters_test.go
page.go
page__common.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
page__content.go
page__data.go Move all Kind constants to its own package 2023-07-28 15:14:23 +02:00
page__fragments_test.go Add test for ToC vs include 2023-03-29 17:49:01 +02:00
page__menus.go Add page fragments support to Related 2023-02-21 17:56:41 +01:00
page__meta.go hugolib: Apply titleCaseStyle to automatic section pages 2023-12-04 11:42:06 +01:00
page__new.go Add Page.RenderShortcodes 2023-08-03 20:00:57 +02:00
page__output.go
page__paginator.go
page__paths.go
page__per_output.go Add Page.RenderShortcodes 2023-08-03 20:00:57 +02:00
page__position.go Add page fragments support to Related 2023-02-21 17:56:41 +01:00
page__ref.go
page__tree.go
page_kinds.go
page_permalink_test.go
page_test.go
page_unwrap.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
page_unwrap_test.go
pagebundler_test.go Move all Kind constants to its own package 2023-07-28 15:14:23 +02:00
pagecollections.go
pagecollections_test.go
pages_capture.go
pages_capture_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
pages_language_merge_test.go
pages_process.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
pages_test.go Add a benchmark 2021-05-04 17:59:04 +02:00
paginator_test.go Don't fail when calling Paginate with an empty pages.PagesGroup 2023-03-10 16:34:17 +01:00
permalinker.go
prune_resources.go
rendershortcodes_test.go Add Page.RenderShortcodes 2023-08-03 20:00:57 +02:00
renderstring_test.go
resource_chain_test.go Add retry in resources.GetRemote for temporary HTTP errors 2023-08-04 17:16:52 +02:00
robotstxt_test.go
rss_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
securitypolicies_test.go
shortcode.go Remove rest of the now unused emoji code 2023-10-26 09:20:56 +02:00
shortcode_page.go
shortcode_test.go
site.go
site_benchmark_new_test.go
site_new.go Avoid double printing INFO deprecation messages 2023-11-01 16:40:26 +01:00
site_output.go Move all Kind constants to its own package 2023-07-28 15:14:23 +02:00
site_output_test.go Add $image.Process 2023-09-24 11:54:29 +02:00
site_render.go Move all Kind constants to its own package 2023-07-28 15:14:23 +02:00
site_sections.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
site_sections_test.go
site_stats_test.go
site_test.go
site_url_test.go Move all Kind constants to its own package 2023-07-28 15:14:23 +02:00
siteJSONEncode_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
sitemap_test.go
taxonomy_test.go
template_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
testhelpers_test.go
translations.go hugolib: Exclude non-linkable pages from translations map 2022-12-22 18:53:12 +01:00