Skip to content

Commit 623734e

Browse files
committed
Use new org in templates
1 parent dd068dc commit 623734e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

_layouts/blog.html

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
layout: internal
33
---
4-
{% assign entries=site.posts | where: "type", posts%}
4+
{% assign entries=site.posts %}
55

66
<section class="archive">
7-
<h2>Archive</h2>
7+
<h2>{{page.title}}</h2>
88
<section>
99
{% for post in entries limit: site.n_recent_posts%}
1010
<div class="row">
@@ -26,7 +26,7 @@ <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
2626
<hr />
2727

2828
<section>
29-
<h2>More</h2>
29+
<h3>Older {{ page.title }}</h3>
3030

3131
{% for post in entries offset: site.n_recent_posts %}
3232
{% capture mod %}{{ forloop.index0 | modulo:2 }}{% endcapture %}
@@ -36,6 +36,13 @@ <h2>More</h2>
3636
{% endif %}
3737
<article class="column column-50">
3838
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
39+
{% if post.description %}
40+
{{ post.description | markdownify}}
41+
{% else %}
42+
<p>
43+
{{ post.content | markdownify | strip_html | truncatewords: 20 }}
44+
</p>
45+
{% endif %}
3946
</article>
4047
{% if mod == '1' or forloop.last %}
4148
</div>

index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: blog
3-
title: Archive
3+
title: Articles
44
permalink: /
55
redirect_from:
66
- /category/blog.html

0 commit comments

Comments
 (0)