Skip to content

Commit c282932

Browse files
committed
list page
1 parent 416f021 commit c282932

File tree

5 files changed

+18
-16
lines changed

5 files changed

+18
-16
lines changed

_data/categories.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

_data/tags.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

_layouts/default.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ <h1 class="site-name"><a href="{{ site.baseurl }}/">{{ site.name }}</a></h1>
3232
</div>
3333

3434
<nav>
35-
<a href="{{ site.baseurl }}/">Blog</a>
35+
<a href="{{ site.baseurl }}/">Home</a>
36+
<a href="{{ site.baseurl }}/list">List</a>
3637
<a href="{{ site.baseurl }}/about">About</a>
3738
</nav>
3839
</header>

_layouts/post.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@
2323
<h1>{{ page.title }}</h1>
2424

2525
<div class="entry">
26-
<p id="post-meta">
27-
{{page.tags}}
26+
<p class="post-tags">
2827
{% if page.tags.size > 0 %}
2928
{% for post_tag in page.tags %}
3029
{{post_tag}}
3130
{% endfor %}
3231
{% endif %}
33-
{{ tags_content }}
3432
</p>
3533
{{ content }}
3634
</div>

list.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="posts">
6+
{% for post in site.posts %}
7+
<article class="post">
8+
9+
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
10+
11+
12+
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
13+
</article>
14+
{% endfor %}
15+
</div>

0 commit comments

Comments
 (0)