Added layout and page for All posts

This commit is contained in:
David Whiting 2017-04-17 16:16:02 +01:00
parent 2da3764cd5
commit 0d6e5bcddd
2 changed files with 49 additions and 0 deletions

39
_layouts/allposts.html Normal file
View file

@ -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
all_posts.md Normal file
View file

@ -0,0 +1,10 @@
---
layout: allposts
title: All posts
landing-title: 'All posts'
description: null
image: null
author: null
---
<h1>All posts</h1>