Merge pull request #20 from daudi/all_posts

Added layout and page for All posts
This commit is contained in:
Andrew Banchich 2017-04-22 20:42:11 -04:00 committed by GitHub
commit 663d94403b
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 %}
{% if post.date %}<p>{{ post.date }}</p>{% endif %}
<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>