summaryrefslogtreecommitdiff
path: root/design/templates/details/entry.html
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/details/entry.html')
-rw-r--r--design/templates/details/entry.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html
index 7915f21..1641ace 100644
--- a/design/templates/details/entry.html
+++ b/design/templates/details/entry.html
@@ -20,6 +20,14 @@
<meta property="og:site_name" content="Luxagraf" />
<meta property="og:image" content="{{object.get_image_url}}" />
<meta property="og:locale" content="en_US" />
+ <meta name="twitter:card" content="summary_large_image"/>
+ <meta name="twitter:description" content="{{object.meta_description}}"/>
+ <meta name="twitter:title" content="{{object.title|safe}}"/>
+ <meta name="twitter:site" content="@luxagraf"/>
+ <meta name="twitter:domain" content="luxagraf"/>
+ <meta name="twitter:image:src" content="{{object.get_image_url}}"/>
+ <meta name="twitter:creator" content="@luxagraf"/>
+
{%endblock%}
{%block htmlclass%}{% with object.template_name as t %}
class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%endif%}{%if t == 2 or t == 3 %} dark{%endif%}"{%endwith%}{%endblock%}
@@ -77,9 +85,9 @@ class="{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%en
<script src="/media/js/detail.min.js"></script>
{%endif%}{%endwith%}
-{%if comment_count > 0 %}
<script type="text/javascript">
window.onload = function() {
+{%if comment_count > 0 %}
//delay loading of gravatar images using noscript data-hash attribute
dataattr = document.getElementsByClassName("datahashloader");
for(var i=0; i<dataattr.length; i++) {
@@ -89,13 +97,13 @@ window.onload = function() {
img.className += "gravatar";
c.insertBefore(img, c.childNodes[3]);
}
+{%endif%}
{% with object.get_template_name_display as t %}{%if t == "single" or t == "single-dark" %}
createMap();
var open = false;
{%endif%}{%endwith%}
}
</script>
-{%endif%}
{% with object.template_name as t %}{%if t == 1 or t == 3 %}
<script src="{{MEDIA_URL}}js/hyphenate.min.js" type="text/javascript"></script>
{%endif%}{%endwith%}{%endblock%}