1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-16 17:27:04 +01:00
hugo-theme-bootstrap4-blog/layouts/partials
Alan Orth 731af8c564
layouts: Add basic support for OpenGraph and Twitter card metadata
Uses basic data like title, description, author, and date that we
are using with existing vanilla meta tags, but extends them to OG
and Twitter Card tags. See [0] and [1].

For the Twitter summary cards specifically, you can optionally add
attribution for your username by adding something like this to your
configuration:

  [params.social]
    twitter_username = "@mralanorth"

... and for posts with images, you can specify an "image" in the
post's front matter like so:

  image = "/2016/09/IMG_20160916_174409.jpg"

And then the theme will opt to use Twitter's "large" summary card.

[0] http://ogp.me/
[1] https://dev.twitter.com/cards/getting-started
2016-09-17 18:05:22 +03:00
..
metadata.html layouts: Add basic support for OpenGraph and Twitter card metadata 2016-09-17 18:05:22 +03:00
sidebar.html layouts/partials/sidebar.html: Use "Type" instead of "Section" 2016-09-17 16:56:27 +03:00