Thankfully, Hugo already has an internal template for Twitter cards. Simply add {{- template "_internal/twitter_cards.html" . -}} somewhere in your own copy. (For reference, here’s the source code for the internal template.)
You could also roll your own Twitter cards but I recommend to modify the internal template instead fitting your specific needs." /><metaname="twitter:card"content="summary"/>
Thankfully, Hugo already has an internal template for Twitter cards. Simply add {{- template "_internal/twitter_cards.html" . -}} somewhere in your own copy. (For reference, here’s the source code for the internal template.)
You could also roll your own Twitter cards but I recommend to modify the internal template instead fitting your specific needs."/>
Thankfully, Hugo already has an internal template for Twitter cards. Simply add {{- template "_internal/twitter_cards.html" . -}} somewhere in your own copy. (For reference, here’s the source code for the internal template.)
You could also roll your own Twitter cards but I recommend to modify the internal template instead fitting your specific needs." />
Thankfully, Hugo already has an internal template for Twitter cards. Simply add {{- template "_internal/twitter_cards.html" . -}} somewhere in your own copy. (For reference, here’s the source code for the internal template.)
You could also roll your own Twitter cards but I recommend to modify the internal template instead fitting your specific needs."><metaitemprop="datePublished"content="2020-10-20T20:31:32+08:00"/>
<p>This will add <ahref="https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started">Twitter cards</a> for your webpages.
(Be sure to copy the <code>head</code> partial first in your own layout folder.)</p>
</div>
<divclass="paragraph">
<p>Thankfully, Hugo already has <ahref="https://gohugo.io/templates/internal/#twitter-cards">an internal template for Twitter cards</a>.
Simply add <code>{{- template "_internal/twitter_cards.html" . -}}</code> somewhere in your own copy.
(For reference, <ahref="https://github.com/gohugoio/hugo/blob/25a6b33693992e8c6d9c35bc1e781ce3e2bca4be/tpl/tplimpl/embedded/templates/twitter_cards.html">here’s the source code for the internal template</a>.)</p>
</div>
<divclass="paragraph">
<p>You could also roll your own Twitter cards but I recommend to modify the internal template instead fitting your specific needs.
(Copy the internal template from the given link, create it as a partial in <code>layouts/partials/twitter_cards.html</code>, modify it, and insert the template with <code>{{- partial "twitter_cards.html" -}}</code>.)</p>
</div>
</main>
</article>
<hr>
<footer>
<p><ahref="https://foo-dogsquared.github.io/hugo-theme-contentful/">Back to home</a></p>