aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-07-14 22:12:25 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-07-14 22:12:25 +0200
commit4e5a34cfa92333784663b9bb5a07e4096a62e2b4 (patch)
tree5e66a39f93ed86d2799b37ebd8a6e3d40d93ac3e
parent64b4ef0ed823005fb083e8e69dc5f10f80ef16fb (diff)
Add twitter summary support
-rw-r--r--_includes/head.html7
-rw-r--r--random-project/bad-password-generator/index.html3
2 files changed, 10 insertions, 0 deletions
diff --git a/_includes/head.html b/_includes/head.html
index 3df323b..9bf7bdc 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -16,4 +16,11 @@
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/assets/icons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/assets/icons/favicon-16x16.png" sizes="16x16">
+
+ {% if page.twitter %}
+ <meta name="twitter:card" content="summary" />
+ <meta name="twitter:site" content="@noahloomans" />
+ <meta name="twitter:title" content="{{ page.twitter.title }}" />
+ <meta name="twitter:description" content="{{ page.twitter.description }}" />
+ {% endif %}
</head>
diff --git a/random-project/bad-password-generator/index.html b/random-project/bad-password-generator/index.html
index 2922b9b..ad0aac1 100644
--- a/random-project/bad-password-generator/index.html
+++ b/random-project/bad-password-generator/index.html
@@ -1,5 +1,8 @@
---
layout: random-project
+twitter:
+ title: Bad Password Generator
+ description: Surely you wouldn't use one like it, would you?
---
<div class='random-project__project__bad-password-generator'>
<div class="text">