Initial commit - Begun rewrite of website generator
This commit is contained in:
37
templates/blog.html
Normal file
37
templates/blog.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block page %}
|
||||
<div id="categories">
|
||||
<a href="{{url_for("blog_default")}}">All</a>
|
||||
{% for tag in tags %}
|
||||
-
|
||||
<a href="{{url_for("tag", tag=tag)}}">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
{% if title %}
|
||||
{{ title }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="content">
|
||||
<ol class="content-list">
|
||||
{% for post in posts %}
|
||||
<li class="content">
|
||||
<h3 class="postTitle"><a href="{{ post.url }}">{{ post.title }}</a></h3><p class="postDate">{{ post.datestr }}</p><p class="postSubTitle">{{ post.subtitle }}<br>
|
||||
<a href="{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.url[:-1] }}"></a></p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||
var disqus_shortname = 'thomasloven'; // required: replace example with your forum shortname
|
||||
|
||||
/* * * DON'T EDIT BELOW THIS LINE * * */
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
{% endblock page %}
|
||||
Reference in New Issue
Block a user