Skip to content

Commit 79b8861

Browse files
committed
[mod] test blog
1 parent 943a9b0 commit 79b8861

6 files changed

Lines changed: 44 additions & 0 deletions

File tree

docs/_layouts/post.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: default
3+
---
4+
<h1>{{ page.title }}</h1>
5+
<p>{{ page.date | date_to_string }} - {{ page.author }}</p>
6+
7+
{{ content }}

docs/_posts/2018-08-20-bananas.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: post
3+
author: jill
4+
---
5+
6+
A banana is an edible fruit – botanically a berry – produced by several
7+
kinds of large herbaceous flowering plants in the genus Musa.
8+
9+
In some countries, bananas used for cooking may be called "plantains",
10+
distinguishing them from dessert bananas. The fruit is variable in size,
11+
color, and firmness, but is usually elongated and curved, with soft
12+
flesh rich in starch covered with a rind, which may be green, yellow,
13+
red, purple, or brown when ripe.

docs/about.html

Whitespace-only changes.

docs/about.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
---
3+
4+
about this site

docs/blog.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
layout: default
3+
title: Blog
4+
---
5+
<h1>Latest Posts</h1>
6+
7+
<ul>
8+
{% for post in site.posts %}
9+
<li>
10+
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
11+
{{ post.excerpt }}
12+
</li>
13+
{% endfor %}
14+
</ul>

docs/navigation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: Home
2+
link: /
3+
- name: About
4+
link: /about.md
5+
- name: Blog
6+
link: /blog.html

0 commit comments

Comments
 (0)