mirror of
https://github.com/adulau/art.git
synced 2024-12-25 18:26:06 +00:00
Merge pull request #20 from daudi/all_posts
Added layout and page for All posts
This commit is contained in:
commit
663d94403b
2 changed files with 49 additions and 0 deletions
39
_layouts/allposts.html
Normal file
39
_layouts/allposts.html
Normal 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
10
all_posts.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
layout: allposts
|
||||
title: All posts
|
||||
landing-title: 'All posts'
|
||||
description: null
|
||||
image: null
|
||||
author: null
|
||||
---
|
||||
|
||||
<h1>All posts</h1>
|
Loading…
Reference in a new issue