summaryrefslogtreecommitdiff
path: root/themes/gamerdonkey-theme/templates/article.html
diff options
context:
space:
mode:
authorgamerdonkey2020-06-25 22:06:25 -0500
committergamerdonkey2020-06-25 22:06:25 -0500
commitcac5c144ffcdb64fab4e3af08169385ab099ad81 (patch)
tree20965f1157a31da45fe3e38748d3749ade7b0543 /themes/gamerdonkey-theme/templates/article.html
parenteba1c7a596e8f19ac729839a2474860d025955d0 (diff)
downloadgamerdonkey.com-blog-cac5c144ffcdb64fab4e3af08169385ab099ad81.tar.gz
gamerdonkey.com-blog-cac5c144ffcdb64fab4e3af08169385ab099ad81.tar.bz2
gamerdonkey.com-blog-cac5c144ffcdb64fab4e3af08169385ab099ad81.zip
Setting up the theme to add a favicon and Open Graph tags for that sexy social media posting.
Diffstat (limited to 'themes/gamerdonkey-theme/templates/article.html')
-rw-r--r--themes/gamerdonkey-theme/templates/article.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/gamerdonkey-theme/templates/article.html b/themes/gamerdonkey-theme/templates/article.html
new file mode 100644
index 0000000..d339132
--- /dev/null
+++ b/themes/gamerdonkey-theme/templates/article.html
@@ -0,0 +1,10 @@
+{% extends "!simple/article.html" %}
+
+{% block head %}
+{{ super() }}
+ <meta property="og:type" content="article" />
+ <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
+ <meta property="og:title" content="{{ article.title }}" />
+ <meta property="og:description" content="{{ article.summary | striptags }}" />
+ <meta property="og:image" content="{{ SITEURL }}/images/{% if article.opengraph_image is defined %}{{ article.opengraph_image }}{% else %}gamerdonkey_g_logo_og.png{% endif %}" />
+{% endblock %}