Fixed docs site's social media preview

This commit is contained in:
2026-05-16 12:06:57 +10:00
parent 645fc3a457
commit 8013ccb1da
4 changed files with 17 additions and 2 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
[book] [book]
title = "The Toy Programming Language" title = "The Toy Programming Language"
authors = ["Kayne Ruse"] authors = ["Kayne Ruse (Ratstail91)"]
description = "Documentation For The Toy Programming Language"
language = "en" language = "en"
[output.html] [output.html]
git-repository-url = "https://github.com/krgamestudios/Toy" git-repository-url = "https://github.com/krgamestudios/Toy"
git-repository-icon = "fab-github" git-repository-icon = "fab-github"
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

+14
View File
@@ -0,0 +1,14 @@
<!-- open graph protocol -->
<meta property="og:url" content="{{ url }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ base_url }}/img/toypreview.png" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ description }}" />
<!-- twitter has to be special -->
<meta name="twitter:card" content="{{ title }}" />
<meta name="twitter:url" content="{{ url}}" />
<meta name="twitter:type" content="website" />
<meta name="twitter:image" content="{{ base_url }}/img/toypreview.png" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ description }}" />