summaryrefslogtreecommitdiff
path: root/design/templates/details
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-10-29 20:09:57 -0400
committerluxagraf <sng@luxagraf.net>2015-10-29 20:09:57 -0400
commit1b51da329b70dfbc91e1a8c115047c387288fc92 (patch)
tree4545dc83868803cdaa9e9223ab3b4af1a48b186d /design/templates/details
parentf5afbcb35c0d15591e2e51b97b21a5d8a4e30dd1 (diff)
tidied up the src section
Diffstat (limited to 'design/templates/details')
-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 %}