aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html16
-rw-r--r--templates/index.html4
-rw-r--r--templates/weblog.html34
3 files changed, 27 insertions, 27 deletions
diff --git a/templates/base.html b/templates/base.html
index f03965f..f689bf3 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -16,14 +16,14 @@
<h1><a href="/">Yaroslav de la Peña Smirnov</a></h1>
</div>
{% block page %}
- <div class="content-container">
- {% block content %}
- {% endblock %}
- </div>
- <div class="sidebar-container">
- <p>Hello, my name is Yaroslav de la Peña Smirnov. Welcome to my weblog.</p>
- <a href="/weblog/archive">Archive</a>
- </div>
+ <div class="content-container">
+ {% block content %}
+ {% endblock %}
+ </div>
+ <div class="sidebar-container">
+ <p>Hello, my name is Yaroslav de la Peña Smirnov. Welcome to my weblog.</p>
+ <a href="/weblog/archive">Archive</a>
+ </div>
{% endblock %}
</div>
</body>
diff --git a/templates/index.html b/templates/index.html
index 0d9fb7c..4e009e3 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block page %}
-<h2>Welcome to my site!</h2>
-<a href="/weblog">Go to weblog</a>
+ <h2>Welcome to my site!</h2>
+ <a href="/weblog">Go to weblog</a>
{% endblock %}
diff --git a/templates/weblog.html b/templates/weblog.html
index 11c0d2a..a20f356 100644
--- a/templates/weblog.html
+++ b/templates/weblog.html
@@ -2,26 +2,26 @@
{% block content %}
<div class="posts-list">
{% for post in paginator.pages %}
- <div class="post-preview">
- <h2><a href="{{ post.permalink }}">{{ post.title }}</a></h2>
- {% if post.summary %}
- {{ post.summary | safe }}
- {% endif %}
- </div>
+ <div class="post-preview">
+ <h2><a href="{{ post.permalink }}">{{ post.title }}</a></h2>
+ {% if post.summary %}
+ {{ post.summary | safe }}
+ {% endif %}
+ </div>
{% endfor %}
</div>
{% if paginator %}
-{% if paginator.number_pagers > 1 %}
-<div class="paginator">
- {% if paginator.previous %}
- <a href="{{ paginator.first }}">First</a>
- <a href="{{ paginator.previous }}">Previous page: {{ paginator.current_index - 1 }}</a>
- {% endif %}
- {% if paginator.next %}
- <a href="{{ paginator.next }}">Next page: {{ paginator.current_index + 1 }}</a>
- <a href="{{ paginator.last }}">Last</a>
+ {% if paginator.number_pagers > 1 %}
+ <div class="paginator">
+ {% if paginator.previous %}
+ <a href="{{ paginator.first }}">First</a>
+ <a href="{{ paginator.previous }}">Previous page: {{ paginator.current_index - 1 }}</a>
+ {% endif %}
+ {% if paginator.next %}
+ <a href="{{ paginator.next }}">Next page: {{ paginator.current_index + 1 }}</a>
+ <a href="{{ paginator.last }}">Last</a>
+ {% endif %}
+ </div>
{% endif %}
-</div>
-{% endif %}
{% endif %}
{% endblock %}