Skip to content

Commit

Permalink
Added layout and page for All posts
Browse files Browse the repository at this point in the history
  • Loading branch information
daudi committed Apr 17, 2017
1 parent 2da3764 commit 0d6e5bc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
39 changes: 39 additions & 0 deletions _layouts/allposts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<!--
Forty by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>

{% include head.html %}

<body>

{% include header.html %}


<!-- Main -->
<div id="main" class="alt">

<!-- One -->
<section id="one">
<div class="inner">
{% for post in site.posts %}
<header class="major">
<h1>{{ post.title }}</h1>
</header>
{% if post.image %}<span class="image main"><img src="{{ site.baseurl }}/{{ post.image }}" alt="" /></span>{% endif %}
<p>{{ post.date }}</p>
<p>{{ post.content }}</p>
{% endfor %}
</div>
</section>

</div>

{% include footer.html %}

</body>

</html>
10 changes: 10 additions & 0 deletions all_posts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: allposts
title: All posts
landing-title: 'All posts'
description: null
image: null
author: null
---

<h1>All posts</h1>

0 comments on commit 0d6e5bc

Please sign in to comment.