mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-12-22 08:36:02 +00:00
Add post.excerpts to post lists on home, article, and blog pages.
This commit is contained in:
parent
aab5f746a2
commit
93e8f26dc5
4 changed files with 9 additions and 3 deletions
|
@ -349,6 +349,12 @@ span + .entry-title {
|
||||||
display: block;
|
display: block;
|
||||||
float: none;
|
float: none;
|
||||||
@include font-size(14, no, 16);
|
@include font-size(14, no, 16);
|
||||||
|
@include media($medium) {
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
@include media($large) {
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Tag index
|
// Tag index
|
||||||
|
|
|
@ -7,6 +7,6 @@ search_omit: true
|
||||||
|
|
||||||
<ul class="post-list">
|
<ul class="post-list">
|
||||||
{% for post in site.categories.articles %}
|
{% for post in site.categories.articles %}
|
||||||
<li><article><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span></a></article></li>
|
<li><article><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span>{% if post.excerpt %} <span class="excerpt">{{ post.excerpt }}</span>{% endif %}</a></article></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -7,6 +7,6 @@ search_omit: true
|
||||||
|
|
||||||
<ul class="post-list">
|
<ul class="post-list">
|
||||||
{% for post in site.categories.blog %}
|
{% for post in site.categories.blog %}
|
||||||
<li><article><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span></a></article></li>
|
<li><article><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span>{% if post.excerpt %} <span class="excerpt">{{ post.excerpt }}</span>{% endif %}</a></article></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -7,6 +7,6 @@ search_omit: true
|
||||||
|
|
||||||
<ul class="post-list">
|
<ul class="post-list">
|
||||||
{% for post in site.posts limit:10 %}
|
{% for post in site.posts limit:10 %}
|
||||||
<li><article><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span></a></article></li>
|
<li><article><a href="{{ site.url }}{{ post.url }}">{{ post.title }} <span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></span>{% if post.excerpt %} <span class="excerpt">{{ post.excerpt }}</span>{% endif %}</a></article></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
Loading…
Reference in a new issue