OpenGraph configuration

Hello all:

I am currently using:
hugo v0.136.5+extended darwin/arm64 BuildDate=2024-10-24T12:26:27Z VendorInfo=brew

I am looking for clarity on OpenGraph in this section:
If 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 I understand this correctly, if one is not using the images array and is using page bundles, then an image file matching those as stated above is used.

Here is an example of my content structure:

❯ tree content/posts/misc/
content/posts/misc/
└── bootable-usb
    ├── images
    │   └── cover.webp
    └── index.md

My generated site does not contain the og:image property. Is this because my cover image must be adjacent to the markdown file for it to be discovered? Or do I have to use images[] in my front matter?

I’m checking here before making many changes, and I would like your input.

Thank you

Your content structure is not a page bundle. Page resources need to be adjacent to, or below, the index.md file. See documentation.

Thank you for the clarification. All is well now.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.