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." /><metaname="twitter:card"content="summary"/>
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."/>
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." />
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."><metaitemprop="datePublished"content="2020-10-20T20:35:39+08:00"/>
<p>Next up, we’re implementing <ahref="https://opengraphprotocol.org/">Open Graph protocol</a> for our webpages.
Commonly used for making suitable format when sharing the content on certain sites like Facebook.
(Be sure to copy the <code>head</code> partial first in your own layout folder.)</p>
</div>
<divclass="paragraph">
<p>Similar to Twitter cards, Hugo has <ahref="https://gohugo.io/templates/internal/#open-graph">an internal template for this</a>.
Simply add <code>{{- template "_internal/opengraph.html" . -}}</code> somewhere in your own copy.
(For reference, <ahref="https://github.com/gohugoio/hugo/blob/25a6b33693992e8c6d9c35bc1e781ce3e2bca4be/tpl/tplimpl/embedded/templates/opengraph.html">here’s the source code for the internal template</a>.)</p>
</div>
<divclass="paragraph">
<p>If you want more control and customized version of the output, I recommend to copy the internal template and create a partial (e.g., <code>layouts/partials/opengraph.html</code>) and modify it.</p>
</div>
</main>
</article>
<hr>
<footer>
<p><ahref="https://foo-dogsquared.github.io/hugo-theme-contentful/">Back to home</a></p>