Hugo SEO / Social Partials

What would be even better than just having image links is to also store some metadata in the front matter. If it were an array of image objects that also included things like title, caption, alt, etc, that would ease gallery creation, plus we could add those images to the sitemap like this:

<url>
	<loc>https://www.seo.com/blog/5-ways-to-spy-on-your-competition/</loc>
	<lastmod>2009-07-07T08:14:15-06:00</lastmod>
	<changefreq>weekly</changefreq>
	<priority>0.6</priority>
	<image:image>
		<image:loc>http://www.seo.com/wp-content/uploads/2009/07/secret-agent1.jpg</image:loc>
		<image:title><![CDATA[secret agent1]]></image:title>
		<image:caption><![CDATA[secret agent1]]></image:caption>
	</image:image>
	<image:image>
		<image:loc>http://www.seo.com/wp-content/uploads/2009/07/backlink.jpg</image:loc>
		<image:title><![CDATA[backlink]]></image:title>
		<image:caption><![CDATA[backlink]]></image:caption>
	</image:image>
	<image:image>
		<image:loc>http://www.seo.com/wp-content/uploads/2009/07/google-adwords-tool.jpg</image:loc>
		<image:title><![CDATA[google adwords tool]]></image:title>
		<image:caption><![CDATA[google adwords tool]]></image:caption>
	</image:image>
	<image:image>
		<image:loc>http://www.seo.com/wp-content/uploads/2009/07/seo-link-analysis.jpg</image:loc>
		<image:title><![CDATA[seo link analysis]]></image:title>
		<image:caption><![CDATA[seo link analysis]]></image:caption>
	</image:image>
</url>