Cleanup and building static site
This commit is contained in:
43
templates/blog_listing.html
Normal file
43
templates/blog_listing.html
Normal file
@@ -0,0 +1,43 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block page %}
|
||||
<div id="categories">
|
||||
{% if title %}
|
||||
<a href="{{url_for("blog_listing")}}">All</a>
|
||||
{% else %}
|
||||
All
|
||||
{% endif %}
|
||||
{% for tag in tags %}
|
||||
{% if tag == title %}
|
||||
- {{ tag }}
|
||||
{% else %}
|
||||
- <a href="{{url_for("blog_listing", tag=tag)}}">{{ tag }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="content">
|
||||
<ol class="content-list">
|
||||
{% for post in posts %}
|
||||
<li class="content">
|
||||
<h3 class="postTitle"><a href="{{ url_for("permalink",
|
||||
path=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>
|
||||
{% endblock page %}
|
||||
|
||||
{% block morescripts %}
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = 'thomasloven';
|
||||
|
||||
/* * * 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 morescripts %}
|
||||
Reference in New Issue
Block a user