diff options
Diffstat (limited to 'templates/blog_post.html')
-rw-r--r-- | templates/blog_post.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/blog_post.html b/templates/blog_post.html new file mode 100644 index 0000000..96c7bd9 --- /dev/null +++ b/templates/blog_post.html | |||
@@ -0,0 +1,26 @@ | |||
1 | {% extends "page.html" %} | ||
2 | |||
3 | {% set is_blog = True %} | ||
4 | |||
5 | {% block contents %} | ||
6 | <h1 class="title">{{ post.title }}</h1> | ||
7 | {{ post.contents }} | ||
8 | |||
9 | {# Maybe enable comments... some day... | ||
10 | <hr /> | ||
11 | <h2>Comments</h2> | ||
12 | <hr /> | ||
13 | <div id="disqus_thread"></div> | ||
14 | <script type="text/javascript"> | ||
15 | (function() { | ||
16 | var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
17 | dsq.src = 'http://randomthoughtsofaprogrammer.disqus.com/embed.js'; | ||
18 | (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
19 | })(); | ||
20 | </script> | ||
21 | #} | ||
22 | {% endblock %} | ||
23 | |||
24 | {% block update_date %} | ||
25 | <p class="updated"><span class="label">Page last updated:</span> {{ post.pretty_date }}</p> | ||
26 | {% endblock %} | ||