diff options
Diffstat (limited to 'blog/index.html')
-rw-r--r-- | blog/index.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/blog/index.html b/blog/index.html new file mode 100644 index 0000000..7ccd524 --- /dev/null +++ b/blog/index.html @@ -0,0 +1,36 @@ +--- +layout: default +title: blog +pagination: + enabled: true + collection: posts + permalink: /page/:num/ + per_page: 3 + sort_field: date + sort_reverse: true + trail: + before: 1 # The number of links before the current page + after: 3 # The number of links after the current page +--- + +<div class="post"> + + <div class="header-bar"> + <h1>{{ site.blog_name }}</h1> + <h2>{{ site.blog_description }}</h2> + </div> + + + <ul class="post-list"> + {% for post in paginator.posts %} + <li> + <h3><a class="post-title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h3> + <p class="post-meta">{{ post.date | date: '%B %-d, %Y' }}</p> + <p>{{ post.description }}</p> + </li> + {% endfor %} + </ul> + + {% include pagination.html %} + +</div> |