mirror of
https://github.com/adulau/art.git
synced 2024-11-21 17:47:05 +00:00
Added layout and page for All posts
This commit is contained in:
parent
2da3764cd5
commit
0d6e5bcddd
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 %}
|
||||||
|
<p>{{ post.date }}</p>
|
||||||
|
<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