summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-10-25 19:32:43 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-10-25 19:32:43 -0400
commit8a259e29c0f685608946df1ac64c9746cb57e0f7 (patch)
tree1c0886f013ed68f6210dc023f4ec90552f4b058c
parentf203d33ea1c6d261da0df5a0553bfad700b5c09b (diff)
downloadcobalt-site-8a259e29c0f685608946df1ac64c9746cb57e0f7.tar.xz
cobalt-site-8a259e29c0f685608946df1ac64c9746cb57e0f7.zip
OGP
-rw-r--r--_includes/head.liquid11
1 files changed, 9 insertions, 2 deletions
diff --git a/_includes/head.liquid b/_includes/head.liquid
index 4f5313c..842572c 100644
--- a/_includes/head.liquid
+++ b/_includes/head.liquid
@@ -10,10 +10,17 @@
<meta property="og:url" content="{{ page.permalink }}"/>
<meta property="og:site_name" content="53hornet"/>
<meta property="og:type" content="article"/>
-<meta property="article:published_time" content="{{ page.published_date }}"/>
+
+{% if page.published_date %}
+ <meta property="article:published_time" content="{{ page.published_date }}"/>
+{% endif %}
+
<meta property="article:author" content="Adam Carpenter"/>
-<meta property="article:section" content="{{ page.category }}"/>
+<meta property="article:section" content="{{ page.categories }}"/>
+{% if page.tags %}
{% for tag in page.tags %}
<meta property="article:tag" content="{{ tag }}"/>
{% endfor %}
+
+{% endif %}