Skip to content

Commit a5212b5

Browse files
committed
Add blog page to list post entries
1 parent 2272da8 commit a5212b5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

blog.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Elixir's Blog
3+
---
4+
{% include top.html %}
5+
6+
<div id="content">
7+
<div class="hfeed">
8+
9+
{% for post in site.posts %}
10+
<div class="hentry post">
11+
<div class="sticky-header">
12+
<h2 class="entry-title"><a href="{{ post.url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a></h2>
13+
<div class="byline">{{ post.date | date: "%B %d, %Y" }} · by Admin · in <span class="category"><a href="#" rel="tag">Articles</a></span></div>
14+
</div><!-- .sticky-header -->
15+
16+
<div class="entry-summary">
17+
{{ post.content | strip_html | truncatewords:80 }}
18+
</div><!-- .entry-summary -->
19+
</div>
20+
{% endfor %}
21+
</div><!-- .hfeed -->
22+
23+
<!--<div class="pagination loop-pagination"><span class="page-numbers current">1</span>
24+
<a class="page-numbers" href="http://demo.alienwp.com/origin/page/2/">2</a>
25+
<a class="next page-numbers" href="http://demo.alienwp.com/origin/page/2/">Next →</a></div>-->
26+
</div><!-- #content -->
27+
28+
29+
<div id="sidebar-primary" class="sidebar">
30+
{% include search.html %}
31+
</div>
32+
33+
{% include bottom.html %}

0 commit comments

Comments
 (0)