Changes: ======== * adjust URL convention to include '.html' (except on index) * rename 'templates/blog' directory to less ambiguous 'templates/posts'main
parent
daf1c756c5
commit
fd75dacebe
@ -0,0 +1,9 @@
|
||||
"""
|
||||
A script whose execution freezes the website into a static format
|
||||
"""
|
||||
|
||||
(import [flask-frozen [Freezer]])
|
||||
(import [app [app]])
|
||||
|
||||
(if (= __name__ "__main__")
|
||||
(.freeze (Freezer app)))
|
@ -1,8 +1,8 @@
|
||||
<h2 class="blog-title">
|
||||
<a href="{{ url_for('blog', post_name=self.date()) }}">
|
||||
<a href="{{ url_for('blog', post_name=self.date()+'.html') }}" tabindex="0">
|
||||
{% block title %}{% endblock %}
|
||||
</a>
|
||||
</h2>
|
||||
<h4 class="blog-date">{% block date %}{% endblock %}</h4>
|
||||
<summary class="blog-summary"><p>{% block summary %}{% endblock %}</p></summary>
|
||||
<summary class="blog-summary" tabindex="0"><p>{% block summary %}{% endblock %}</p></summary>
|
||||
<details class="blog-content">{% block content %}{% endblock %}</details>
|
||||
|
Reference in new issue