All of the changes should be documented in the changelog.
1.1 KiB
title: "Open graph protocol" date: 2020-10-20T20:35:39+08:00
categories: - "recipe" tags: - "seo" - "social media" ---
Open graph protocol
John Doe <johndoe@example.com> 2020-10-20 20:35:39 +0800 :stem: latexmath
Next up, we’re implementing Open Graph protocol for our webpages.
Commonly used for making suitable format when sharing the content on certain sites like Facebook.
(Be sure to copy the head
partial first in your own layout folder.)
Similar to Twitter cards, Hugo has an internal template for this.
Simply add {{- template "_internal/opengraph.html" . -}}
somewhere in your own copy.
(For reference, here’s the source code for the internal template.)
If you want more control and customized version of the output, I recommend to copy the internal template and create a partial (e.g., layouts/partials/opengraph.html
) and modify it.