summaryrefslogtreecommitdiff
path: root/design/templates/details/src_entry.html
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/details/src_entry.html')
-rw-r--r--design/templates/details/src_entry.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/design/templates/details/src_entry.html b/design/templates/details/src_entry.html
index 3fa4c93..ff4ddfe 100644
--- a/design/templates/details/src_entry.html
+++ b/design/templates/details/src_entry.html
@@ -2,6 +2,12 @@
{% load typogrify_tags %}
{% load comments %}
+{% block pagetitle %}{{object.title|title|smartypants|safe}} luxagraf:src{% endblock %}
+
+{% block metadescription %}{% autoescape on %}{{object.meta_description|striptags|safe}}{% endautoescape %}{% endblock %}
+{%block extrahead%}
+<link rel="stylesheet" href="/media/src/prism.css" type="text/css" media="screen"/>
+{%endblock%}
{% block primary %}
<main role="main">
<article class="h-entry hentry post--article{% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %} post--article--double{%endif%}{%endwith%}" itemscope itemType="http://schema.org/Article">
@@ -66,4 +72,7 @@ window.onload = function() {
{%endif%}{%endwith%}
}
</script>
+{% if object.has_code %}
+<script src="/media/src/prism.js"></script>
+{%endif %}
{% endblock %}