summaryrefslogtreecommitdiff
path: root/blog/templates/blog/code_block.html
diff options
context:
space:
mode:
Diffstat (limited to 'blog/templates/blog/code_block.html')
-rw-r--r--blog/templates/blog/code_block.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/blog/templates/blog/code_block.html b/blog/templates/blog/code_block.html
new file mode 100644
index 0000000..f639bc4
--- /dev/null
+++ b/blog/templates/blog/code_block.html
@@ -0,0 +1,5 @@
+{% load wagtailcore_tags %}
+<section>
+{# do not indent the "{{ self.text.}}" code below, or else 'prism' will add that indentation to the first line outputted :-) #}
+ <pre><code class="language-{{ self.language }}">{{ self.text }}</code></pre>
+</section>