Skip to content

feat(sitemap): add image sitemap#1

Open
andrmoel wants to merge 1 commit intoTYPO3-CMS:mainfrom
andrmoel:image-sitemap
Open

feat(sitemap): add image sitemap#1
andrmoel wants to merge 1 commit intoTYPO3-CMS:mainfrom
andrmoel:image-sitemap

Conversation

@andrmoel
Copy link
Copy Markdown

@andrmoel andrmoel commented Mar 7, 2022

Allow image sitemap following the official schema: https://developers.google.com/search/docs/advanced/sitemaps/image-sitemaps

Usage:

    public function generateItems(): void
    {
        ...

        $this->items[] = [
            'loc' => 'https://www.foo.bar',
            'lastMod' => 123456789,
            'image' => [
                'loc' => 'https://www.foo.bar/image.jpg',
            ],
        ];
        
        ...
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant