aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/posts.html
diff options
context:
space:
mode:
Diffstat (limited to 'posts.html')
-rw-r--r--posts.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/posts.html b/posts.html
new file mode 100644
index 0000000..eb52770
--- /dev/null
+++ b/posts.html
@@ -0,0 +1,22 @@
+---
+title: Main page
+layout: sidebar
+groups:
+ - navbar
+navbar_link: <span class="glyphicon glyphicon-home"></span>&nbsp;Main page
+---
+{% if site.posts.size == 0 %}
+ <p class="h3">Sorry, no posts have been added yet.</p>
+ <p class="text-muted">But I've made quite a few <a href="{{ site.baseurl }}/plots.html">plots</a> which you might want to check out.</p>
+ <hr/>
+{% else %}
+ {% for post in paginator.posts %}
+ <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
+ <p class="text-muted"><span class="glyphicon glyphicon-time"></span> Posted on {{ post.date | date_to_long_string }}</p>
+ <p>{{ post.excerpt }}</p>
+ <hr/>
+ {% endfor %}
+ <div class="text-center">
+ {% include common/pagination.html %}
+ </div>
+{% endif %}