aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-05-06 06:44:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-05-06 06:44:18 +0300
commit4c917fc60d4dec2151c83237cacecf604c0a9242 (patch)
tree2056f967b09bef1f13fd61e9379c79463d0e4331 /index.html
downloadblog-4c917fc60d4dec2151c83237cacecf604c0a9242.tar.gz
blog-4c917fc60d4dec2151c83237cacecf604c0a9242.zip
initial commit
Diffstat (limited to 'index.html')
-rw-r--r--index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..f8d2488
--- /dev/null
+++ b/index.html
@@ -0,0 +1,19 @@
+---
+title: Posts
+layout: posts
+group: "navigation"
+---
+{% if site.posts.size == 0 %}
+ <h3>Sorry, there're no posts yet.</h3>
+ <hr/>
+{% else %}
+ {% for post in paginator.posts %}
+ <h2>{{ post.title }}</h2>
+ <p class="text-muted"><span class="glyphicon glyphicon-time"></span> Posted on {{ post.date | date_to_long_string }}</p>
+ <a class="btn btn-primary" href="{{ site.baseurl }}{{ post.url }}">Read More&nbsp;<span class="glyphicon glyphicon-chevron-right"></span></a>
+ <hr/>
+ {% endfor %}
+ <div class="text-center">
+ {% include pagination.html %}
+ </div>
+{% endif %}