From 7b5212027c07e642ac9e75c39411a757ba2b1403 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 4 Jan 2019 17:54:34 -0500 Subject: [PATCH] Add OpenGraph and Twitter card metadata --- lib/generate/copy.ts | 1 + site/layouts/default.html.ejs | 14 ++++++++++++++ site/posts/2016-05-05-hello-world.md | 3 ++- site/posts/2016-05-21-194-porting-spree.md | 1 + site/posts/2016-06-29-introducing-rtfm.md | 1 + site/posts/2016-06-30-forge-1102-tutorials.md | 1 + site/posts/2016-07-28-introducing-mirror.md | 1 + site/posts/2016-08-06-kotlin-and-forge.md | 1 + site/posts/2016-08-07-the-great-redesign.md | 1 + site/posts/2016-10-02-type.md | 1 + .../2017-02-13-the-pretty-good-minor-update.md | 1 + .../2018-04-23-comments-powered-by-github.md | 1 + site/posts/2019-01-02-reincarnation.md | 1 + site/shadowfacts.png | Bin 0 -> 28632 bytes 14 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 site/shadowfacts.png diff --git a/lib/generate/copy.ts b/lib/generate/copy.ts index 7e22010..f2a3a96 100644 --- a/lib/generate/copy.ts +++ b/lib/generate/copy.ts @@ -4,4 +4,5 @@ import * as util from "../util"; export default async function copy() { util.write("favicon.ico", await fs.readFile("site/favicon.ico")); util.write("favicon-152.png", await fs.readFile("site/favicon-152.png")); + util.write("shadowfacts.png", await fs.readFile("site/shadowfacts.png")); } \ No newline at end of file diff --git a/site/layouts/default.html.ejs b/site/layouts/default.html.ejs index c86f930..ea74473 100644 --- a/site/layouts/default.html.ejs +++ b/site/layouts/default.html.ejs @@ -15,6 +15,20 @@ + + + + <% if (metadata.shortDesc) { %> + + + <% } else { %> + + + <% } %> + + + +