diff --git a/.eleventy.js b/.eleventy.js index 1f24433f098043f67b94114bf0418c6fbd184386..c0824b3bc2f7f344efb8fe932f7cac098343ffdb 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -14,6 +14,7 @@ module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(pluginSyntaxHighlight); eleventyConfig.addPlugin(pluginNavigation); eleventyConfig.addPlugin(pluginSEO); + redirect('/2020/03/14/The-Discord-privacy-scandal.html', '/articles/discord.html'); redirect('/2020/05/02/Twitter-we-need-a-break.html', '/articles/twitter.html'); diff --git a/_includes/layouts/base.html b/_includes/layouts/base.html index c648dbe43455c43525c479cbe07b624dbb193caf..7d2a6b8cf473b52240831ba2e0755e6b7bbfea00 100644 --- a/_includes/layouts/base.html +++ b/_includes/layouts/base.html @@ -1,23 +1,44 @@ --- templateEngineOverride: liquid +author: resynth1943 --- <!DOCTYPE html> +<!-- Because who doesn't use English? :^) --> <html lang="en"> <head> <meta charset="UTF-8"> + + <!-- We need to keep this puppy responsive! --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{{ title or brand.name }}</title> - <meta name="description" content="{{ description or brand.description }}"> + + <!-- What would the internet be without STYLING?! --> <link rel="stylesheet" href="/styling/main.css"> <link rel="stylesheet" href="/styling/footer.css"> <link rel="stylesheet" href="/styling/home.css"> <link rel="stylesheet" href="/styling/header.css"> <link rel="stylesheet" href="/assets/fonts/manrope/manrope-v1-latin-regular.css"> - {% if env == 'production' %} - <script data-goatcounter="https://resynth1943.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> - {% endif %} - <!-- <link rel="stylesheet" href="https://unpkg.com/nes.css/css/nes-core.min.css"> --> + + <!-- Normal `meta` stuff: --> + <meta name="description" content="{{ description or brand.description }}"> + <meta name="robots" content="index,follow"> + <meta name="author" content="resynth1943"> + + <!-- Don't want spiders to get a wrong impression. --> + <link rel="canonical" href="{{ page.url }}"> + + <!-- OpenGraph: https://ogp.me --> + <meta property="og:title" content="{{ title or brand.name }}"> + <meta property="og:type" content="article"> + <meta property="og:url" content="/responses/"> + <meta property="og:description" content="{{ description or brand.description }}"> + + <!-- Twitter metadata, because why not...? --> + <meta name="twitter:card" content="summary"> + <meta name="twitter:url" content="/responses/"> + <meta name="twitter:title" content="{{ title or brand.name }}"> + <meta name="twitter:description" content="{{ description or brand.description }}"> </head> <body> {% include header.html %} @@ -28,7 +49,10 @@ templateEngineOverride: liquid {% include footer.html %} <!-- Goatcounter tracking code; see the analytics for this page: https://resynth1943.goatcounter.com/ --> - <script data-goatcounter="https://resynth1943.goatcounter.com/count" - async src="//gc.zgo.at/count.js"></script> + {% if env == 'production' %} + <script data-goatcounter="https://resynth1943.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> + {% else %} + <!-- WHERE MAH GOAT AT --> + {% endif %} </body> -</html> \ No newline at end of file +</html> <!-- ;¬) Stay synthin' --> \ No newline at end of file diff --git a/package.json b/package.json index 6ad066019a4a38479d1ee5665cf439c561eae909..4a572f5b5c8a53278f4eacfe2e61e1ada4600595 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "pug": "^3.0.0" }, "scripts": { - "build": "eleventy", + "build": "NODE_ENV=production eleventy", "serve": "eleventy --serve", "watch": "eleventy --watch", "deploy": "now" diff --git a/responses/index.md b/responses/index.md index 69546785d440f2be59a05a588790e75fa28b169d..a588b362a9fb51570b74b1366d35796bb22df597 100644 --- a/responses/index.md +++ b/responses/index.md @@ -1,5 +1,7 @@ --- layout: base +title: Responses +description: Here are some responses to common questions I'm asked. --- # Responses