File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ <h1>Blog posts</h1>
6
6
< ul >
7
7
{% set blogs = get_section(path="blog/_index.md") %}
8
8
{% for post in blogs.pages %}
9
- < li > < a href ="{{ post.permalink }} "> {{ post.title }}</ a > ({{ post.date }})</ li >
9
+ < li > < a class ="post-title " href ="{{ post.permalink }} "> {{ post.title }}</ a > < span class ="post-date "> ({{ post.date }})</ span >
10
+ {% if post.description %}< br >
11
+ < span class ="post-description "> {{post.description}}</ span >
12
+ {% endif %}
13
+ </ li >
10
14
{% endfor %}
11
15
</ ul >
12
16
{% endblock content %}
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ <h2>Latest blog posts</h2>
4
4
{% set blogs = get_section(path="blog/_index.md") %}
5
5
{% for post in blogs.pages %}
6
6
{% if loop.index < 6 %}
7
- < li > < a href ="{{ post.permalink }} "> {{ post.title }}</ a > ({{ post.date }})</ li >
7
+ < li > < a class ="post-title " href ="{{ post.permalink }} "> {{ post.title }}</ a > < span class ="post-date "> ({{ post.date }})</ span >
8
+ {% if post.description %}< br >
9
+ < span class ="post-description "> {{post.description}}</ span >
10
+ {% endif %}
11
+ </ li >
8
12
{% endif %}
9
13
{% endfor %}
10
14
</ ul >
You can’t perform that action at this time.
0 commit comments