From: Justin Moon Date: Thu, 19 Nov 2020 23:11:07 +0000 (-0600) Subject: Add social media preview cards X-Git-Url: http://internal-gitweb-vhost/script/%22https:/-sqlite-db-configuration/struct.Sequence.html?a=commitdiff_plain;h=a19a7cc1d63d3da1e3c398cc09f6475c96ccdf20;p=bitcoindevkit.org Add social media preview cards --- diff --git a/config.toml b/config.toml index 4b80e3da04..8999b0fe5e 100644 --- a/config.toml +++ b/config.toml @@ -4,7 +4,7 @@ title = "Bitcoin Dev Kit" theme = "learn" [outputs] -home = [ "HTML", "RSS", "JSON"] +home = ["HTML", "RSS", "JSON"] [params] # Prefix URL to edit current page. Will display an "Edit this page" button on top right hand corner of every page. @@ -27,6 +27,8 @@ ordersectionsby = "weight" themeVariant = "blue" # Provide a list of custom css files to load relative from the `static/` folder in the site root. custom_css = ["css/style.css", "css/jsonview.css", "css/blog.css"] +# Used for social media preview cards +images = ["images/logo-wide.jpg"] [permalinks] tags = "/blog/tags/:slug" @@ -39,7 +41,7 @@ author = "author" # render raw html [markup.goldmark.renderer] -unsafe= true +unsafe = true [[Languages.en.menu.shortcuts]] name = " Rust Docs" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 3e9a7783b8..3aab16ccc0 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -27,6 +27,9 @@ {{- end }} + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/twitter_cards.html" . }} +