Improve embedded.md

Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
Hidenori "Hide" Matsuki 2024-08-23 09:51:23 +09:00 committed by GitHub
parent e5dee26513
commit cf8dd70340
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,7 @@ tags = []
Hugo uses the page title and description for the title and description metadata. Hugo uses the page title and description for the title and description metadata.
The first 6 URLs from the `images` array are used for image metadata. The first 6 URLs from the `images` array are used for image metadata.
If [page bundles](/content-management/page-bundles/) are used and the `images` array is empty or undefined, images with file names matching `*feature*` or `*cover*,*thumbnail*` are used for image metadata. If [page bundles](/content-management/page-bundles/) are used and the `images` array is empty or undefined, images with file names matching `*feature*`, `*cover*`, or `*thumbnail*` are used for image metadata.
Various optional metadata can also be set: Various optional metadata can also be set:
@ -203,7 +203,7 @@ description = "Text about this post"
images = ["post-cover.png"] images = ["post-cover.png"]
{{</ code-toggle >}} {{</ code-toggle >}}
If `images` aren't specified in the page front-matter, then hugo searches for [image page resources](/content-management/image-processing/) with `feature`, `cover`, or `thumbnail` in their name. If [page bundles](/content-management/page-bundles/) are used and the `images` array is empty or undefined, images with file names matching `*feature*`, `*cover*`, or `*thumbnail*` are used for image metadata.
If no image resources with those names are found, the images defined in the [site config](/getting-started/configuration/) are used instead. If no image resources with those names are found, the images defined in the [site config](/getting-started/configuration/) are used instead.
If no images are found at all, then an image-less Twitter `summary` card is used instead of `summary_large_image`. If no images are found at all, then an image-less Twitter `summary` card is used instead of `summary_large_image`.