mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-21 09:37:12 +00:00
Add post.excerpts to post lists on home, article, and blog pages.
This commit is contained in:
parent
5bd1eec6c5
commit
3c5d70ea00
4 changed files with 9 additions and 3 deletions
|
@ -349,6 +349,12 @@ span + .entry-title {
|
|||
display: block;
|
||||
float: none;
|
||||
@include font-size(14, no, 16);
|
||||
@include media($medium) {
|
||||
width: 70%;
|
||||
}
|
||||
@include media($large) {
|
||||
width: 60%;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Tag index
|
||||
|
|
|
@ -7,6 +7,6 @@ search_omit: true
|
|||
|
||||
<ul class="post-list">
|
||||
{% 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 %}
|
||||
</ul>
|
||||
|
|
|
@ -7,6 +7,6 @@ search_omit: true
|
|||
|
||||
<ul class="post-list">
|
||||
{% 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 %}
|
||||
</ul>
|
||||
|
|
|
@ -7,6 +7,6 @@ search_omit: true
|
|||
|
||||
<ul class="post-list">
|
||||
{% 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 %}
|
||||
</ul>
|
Loading…
Reference in a new issue