Add OpenGraph and Twitter card metadata

This commit is contained in:
Shadowfacts 2019-01-04 17:54:34 -05:00
parent 0585bb07c7
commit 7b5212027c
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
14 changed files with 27 additions and 1 deletions

View File

@ -4,4 +4,5 @@ import * as util from "../util";
export default async function copy() { export default async function copy() {
util.write("favicon.ico", await fs.readFile("site/favicon.ico")); util.write("favicon.ico", await fs.readFile("site/favicon.ico"));
util.write("favicon-152.png", await fs.readFile("site/favicon-152.png")); util.write("favicon-152.png", await fs.readFile("site/favicon-152.png"));
util.write("shadowfacts.png", await fs.readFile("site/shadowfacts.png"));
} }

View File

@ -15,6 +15,20 @@
<meta name="msapplication-TileColor" content="#F9C72F"> <meta name="msapplication-TileColor" content="#F9C72F">
<meta name="msapplication-TileImage" content="/favicon-152.png"> <meta name="msapplication-TileImage" content="/favicon-152.png">
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@ShadowfactsDev" />
<meta property="og:title" content="<%= metadata.title %>" />
<% if (metadata.shortDesc) { %>
<meta property="og:type" content="article" />
<meta property="og:description" content="<%= metadata.shortDesc %>" />
<% } else { %>
<meta property="og:type" content="website" />
<meta property="og:description" content="Just my various ramblings." />
<% } %>
<meta property="og:image" content="https://shadowfacts.net/shadowfacts.png" />
<meta property="og:url" content="https://shadowfacts.net<%= metadata.permalink %>" />
<meta property="og:site_name" content="Shadowfacts" />
<script> <script>
(() => { (() => {
let theme = localStorage.getItem("theme"); let theme = localStorage.getItem("theme");

View File

@ -3,6 +3,7 @@ metadata.title = "Hello, World!"
metadata.category = "meta" metadata.category = "meta"
metadata.date = "2016-05-06 11:13:18 -0400" metadata.date = "2016-05-06 11:13:18 -0400"
metadata.oldPermalink = "/meta/2016/06/07/hello-world/" metadata.oldPermalink = "/meta/2016/06/07/hello-world/"
metadata.shortDesc = "Hello again, world! Welcome to the third iteration of my website."
``` ```
Hello, again, world! Welcome to the third iteration of my website. Originally my site was hosted on GitHub pages and only available at [shadowfacts.github.io](https://shadowfacts.github.io). I wrote a couple of tutorials on using [Forge](http://minecraftforge.net) to mod 1.6.4, but never really finished anything other than super basic setup/recipes. Later, after I got [shadowfacts.net](https://shadowfacts.net), I decided to set up a propper website using [WordPress](https://wordpress.org). I copied over all of the old tutorials from my old GitHub pages site, but never really did anything else with it. After my website being offline for almost a year, I've finally decided to switch back to GitHub for the simplicity (also I <3 [Jekyll](https://jekyllrb.com)). Using Jekyll, I've got a structure in place that I can use to easily publish tutorials in a structured format. There is one tutorial series that I'm currently writing and that is [Forge Mods in 1.9](/tutorials/forge-modding-19/), and hopefully more series will follow. Hello again, world! Welcome to the third iteration of my website. Originally my site was hosted on GitHub pages and only available at [shadowfacts.github.io](https://shadowfacts.github.io). I wrote a couple of tutorials on using [Forge](http://minecraftforge.net) to mod 1.6.4, but never really finished anything other than super basic setup/recipes. Later, after I got [shadowfacts.net](https://shadowfacts.net), I decided to set up a propper website using [WordPress](https://wordpress.org). I copied over all of the old tutorials from my old GitHub pages site, but never really did anything else with it. After my website being offline for almost a year, I've finally decided to switch back to GitHub for the simplicity (also I <3 [Jekyll](https://jekyllrb.com)). Using Jekyll, I've got a structure in place that I can use to easily publish tutorials in a structured format. There is one tutorial series that I'm currently writing and that is [Forge Mods in 1.9](/tutorials/forge-modding-19/), and hopefully more series will follow.

View File

@ -3,6 +3,7 @@ metadata.title = "1.9.4 Porting Spree"
metadata.category = "minecraft" metadata.category = "minecraft"
metadata.date = "2016-05-21 17:47:18 -0400" metadata.date = "2016-05-21 17:47:18 -0400"
metadata.oldPermalink = "/mods/2016/05/21/194-porting-spree/" metadata.oldPermalink = "/mods/2016/05/21/194-porting-spree/"
metadata.shortDesc = "Now that Forge for 1.9.4 is out, I've begun the log and arduous process of porting my mods to 1.9.4 (if by long and arduous, you mean short and trivial)."
``` ```
Now that Forge for 1.9.4 is [out](http://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.9.4.html), I've begun the log and arduous process of porting my mods to 1.9.4 (if by long and arduous, you mean short and trivial). Now that Forge for 1.9.4 is [out](http://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.9.4.html), I've begun the log and arduous process of porting my mods to 1.9.4 (if by long and arduous, you mean short and trivial).

View File

@ -3,6 +3,7 @@ metadata.title = "Introducing RTFM"
metadata.category = "minecraft" metadata.category = "minecraft"
metadata.date = "2016-06-29 12:00:00 -0400" metadata.date = "2016-06-29 12:00:00 -0400"
metadata.oldPermalink = "/meta/2016/06/29/introducing-rtfm/" metadata.oldPermalink = "/meta/2016/06/29/introducing-rtfm/"
metadata.shortDesc = "RTFM is the brand new website that will contain the documentation for all of my projects, currently it only contains documentation for MC mods."
``` ```
[RTFM](https://rtfm.shadowfacts.net/) is the brand new website that will contain the documentation for all of my projects, currently it only contains documentation for MC mods. Like this website, it is [hosted on GitHub](https://github.com/shadowfacts/RTFM) using GitHub pages. [RTFM](https://rtfm.shadowfacts.net/) is the brand new website that will contain the documentation for all of my projects, currently it only contains documentation for MC mods. Like this website, it is [hosted on GitHub](https://github.com/shadowfacts/RTFM) using GitHub pages.

View File

@ -3,6 +3,7 @@ metadata.title = "Forge Modding Tutorials for 1.10.2"
metadata.category = "minecraft" metadata.category = "minecraft"
metadata.date = "2016-06-30 10:35:00 -0400" metadata.date = "2016-06-30 10:35:00 -0400"
metadata.oldPermalink = "/meta/2016/06/30/forge-1102-tutorials/" metadata.oldPermalink = "/meta/2016/06/30/forge-1102-tutorials/"
metadata.shortDesc = "The Forge modding tutorials have all the been updated to MC 1.10.2 as has the GitHub repo."
``` ```
The Forge modding tutorials have all the been [updated to MC 1.10.2](/tutorials/forge-modding-1102/) as has the [GitHub repo](https://github.com/shadowfacts/TutorialMod/). The Forge modding tutorials have all the been [updated to MC 1.10.2](/tutorials/forge-modding-1102/) as has the [GitHub repo](https://github.com/shadowfacts/TutorialMod/).

View File

@ -3,6 +3,7 @@ metadata.title = "Introducing Mirror"
metadata.category = "java" metadata.category = "java"
metadata.date = "2016-07-28 16:45:00 -0400" metadata.date = "2016-07-28 16:45:00 -0400"
metadata.oldPermalink = "/java/2016/07/28/introducing-mirror/" metadata.oldPermalink = "/java/2016/07/28/introducing-mirror/"
metadata.shortDesc = "Allow me to introduce my latest project, Mirror. Mirror is a reflection library for Java designed to take advantage of the streams, lambdas, and optionals introduced in Java 8."
``` ```
Allow me to introduce my latest project, Mirror. Mirror is a [reflection][] library for Java designed to take advantage of the streams, lambdas, and optionals introduced in Java 8. Allow me to introduce my latest project, Mirror. Mirror is a [reflection][] library for Java designed to take advantage of the streams, lambdas, and optionals introduced in Java 8.

View File

@ -3,6 +3,7 @@ metadata.title = "Kotlin and Minecraft Forge"
metadata.category = "minecraft" metadata.category = "minecraft"
metadata.date = "2016-08-06 16:45:30 -0400" metadata.date = "2016-08-06 16:45:30 -0400"
metadata.oldPermalink = "/forge/2016/08/06/kotlin-and-forge/" metadata.oldPermalink = "/forge/2016/08/06/kotlin-and-forge/"
metadata.shortDesc = "So, you wanna use Kotlin in your Forge mod? Well there's good news, I've just released Forgelin, a fork of Emberwalker's Forgelin, a library that provides utilities for using Kotlin with Minecraft/Forge. "
``` ```
So, you wanna use [Kotlin][] in your Forge mod? Well there's good news, I've just released [Forgelin][], a fork of [Emberwalker's Forgelin][EWForgelin], a library that provides utilities for using Kotlin with Minecraft/Forge. So, you wanna use [Kotlin][] in your Forge mod? Well there's good news, I've just released [Forgelin][], a fork of [Emberwalker's Forgelin][EWForgelin], a library that provides utilities for using Kotlin with Minecraft/Forge.

View File

@ -3,6 +3,7 @@ metadata.title = "The Great Redesign"
metadata.category = "meta" metadata.category = "meta"
metadata.date = "2016-08-07 15:39:48 -0400" metadata.date = "2016-08-07 15:39:48 -0400"
metadata.oldPermalink = "/meta/2016/08/07/the-great-redesign/" metadata.oldPermalink = "/meta/2016/08/07/the-great-redesign/"
metadata.shortDesc = "Welcome to the fourth iteration of my website."
``` ```
Welcome to the fourth iteration of my website. I'm still using Jekyll, however I've rewritten most of the styles from scratch. This theme is based on the [Hacker theme][HackerHexo] for [Hexo][] which is turn based on the [Hacker WordPress theme][HackerWP] but it has some notable differences. Welcome to the fourth iteration of my website. I'm still using Jekyll, however I've rewritten most of the styles from scratch. This theme is based on the [Hacker theme][HackerHexo] for [Hexo][] which is turn based on the [Hacker WordPress theme][HackerWP] but it has some notable differences.

View File

@ -3,6 +3,7 @@ metadata.title = "Type: A FOSS clone of typing.io"
metadata.category = "misc" metadata.category = "misc"
metadata.date = "2016-10-08 17:29:42 -0400" metadata.date = "2016-10-08 17:29:42 -0400"
metadata.oldPermalink = "/misc/2016/10/08/type/" metadata.oldPermalink = "/misc/2016/10/08/type/"
metadata.shortDesc = "I made an awesome FOSS clone of typing.io that you can check out at type.shadowfacts.net."
``` ```
**TL;DR**: I made an awesome FOSS clone of [typing.io](https://typing.io) that you can check out at [type.shadowfacts.net](https://type.shadowfacts.net) and the source of which you can see [here](https://github.com/shadowfacts/type). **TL;DR**: I made an awesome FOSS clone of [typing.io](https://typing.io) that you can check out at [type.shadowfacts.net](https://type.shadowfacts.net) and the source of which you can see [here](https://github.com/shadowfacts/type).

View File

@ -3,6 +3,7 @@ metadata.title = "The Pretty Good Minor Update"
metadata.category = "meta" metadata.category = "meta"
metadata.date = "2017-02-17 14:30:42 -0400" metadata.date = "2017-02-17 14:30:42 -0400"
metadata.oldPermalink = "/meta/2017/02/17/the-pretty-good-minor-update/" metadata.oldPermalink = "/meta/2017/02/17/the-pretty-good-minor-update/"
metadata.shortDesc = "It's been about six months since the last time I redesigned the site, and while I didn't want to redesign it yet again, I felt it could use a little update to make sure everything's still good."
``` ```
It's been about six months since the last time I redesigned the site, and while I didn't want to redesign it yet again, I felt it could use a little update to make sure everything's still good. It's been about six months since the last time I redesigned the site, and while I didn't want to redesign it yet again, I felt it could use a little update to make sure everything's still good.

View File

@ -3,6 +3,7 @@ metadata.title = "Comments Powered by GitHub"
metadata.category = "meta" metadata.category = "meta"
metadata.date = "2017-04-23 09:05:42 -0400" metadata.date = "2017-04-23 09:05:42 -0400"
metadata.oldPermalink = "/meta/2017/04/23/comments-powered-by-github/" metadata.oldPermalink = "/meta/2017/04/23/comments-powered-by-github/"
metadata.shortDesc = "I built a way of commenting on my static website using GitHub to store comments."
``` ```
After seeing [this article][orig] the other morning about replacing the Disqus comments on a blog powered by a static site generator (like this one) with comments backed by a GitHub issue and some front-end JavaScript to load and display them, I thought it would be fun to implement something similar. First I only built the code for displaying comments, similar to the aforementioned article, but I decided to take it one step further by allowing users to submit comments directly from my site. After seeing [this article][orig] the other morning about replacing the Disqus comments on a blog powered by a static site generator (like this one) with comments backed by a GitHub issue and some front-end JavaScript to load and display them, I thought it would be fun to implement something similar. First I only built the code for displaying comments, similar to the aforementioned article, but I decided to take it one step further by allowing users to submit comments directly from my site.

View File

@ -2,6 +2,7 @@
metadata.title = "Reincarnation" metadata.title = "Reincarnation"
metadata.category = "meta" metadata.category = "meta"
metadata.date = "2019-01-02 23:02:42 -0400" metadata.date = "2019-01-02 23:02:42 -0400"
metadata.shortDesc = "Stand by for reincarnation."
``` ```
<figure> <figure>

BIN
site/shadowfacts.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB