1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-24 21:20:17 +01:00
hugo-theme-bootstrap4-blog/layouts/_default
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
..
baseof.html layouts: Add basic support for OpenGraph and Twitter card metadata 2016-09-17 18:05:22 +03:00
list.html layouts/_default/list.html: Check for page type instead of "section" 2016-09-14 23:39:39 +03:00
single.html layouts: Use HTML5-compatible datetime format for posts 2016-09-14 13:12:27 +03:00
summary.html layouts: Use HTML5-compatible datetime format for posts 2016-09-14 13:12:27 +03:00