]> Untitled Git - bitcoindevkit.org/commitdiff
Add social media preview cards
authorJustin Moon <mail@justinmoon.com>
Thu, 19 Nov 2020 23:11:07 +0000 (17:11 -0600)
committerJustin Moon <mail@justinmoon.com>
Thu, 19 Nov 2020 23:11:07 +0000 (17:11 -0600)
config.toml
layouts/partials/header.html
static/images/logo-wide.jpg [new file with mode: 0755]

index 4b80e3da0406a1285960fb496e0e3de65c934d68..8999b0fe5e87da2e16007c896fb1902ee04af0af 100644 (file)
@@ -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 = "<i class='fas fa-book-open'></i> Rust Docs"
index 3e9a7783b84d4ebd41a6745fe0b56d5dd0c8bba2..3aab16ccc08f5b0abbb6dfe7612ccc11ff58f0cd 100644 (file)
@@ -27,6 +27,9 @@
     <link href="{{(printf "%s" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
     {{- end }}
 
+    {{ template "_internal/opengraph.html" . }}
+    {{ template "_internal/twitter_cards.html" . }}
+
     <script src="{{"js/jquery-3.3.1.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
 
     <style>
diff --git a/static/images/logo-wide.jpg b/static/images/logo-wide.jpg
new file mode 100755 (executable)
index 0000000..fb414e9
Binary files /dev/null and b/static/images/logo-wide.jpg differ