add readmore link to blog list page ref #6

This commit is contained in:
mose 2017-08-30 19:50:40 +08:00
parent 56bf431f1d
commit 92cc61f492
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,7 @@
.post-list li .description {
font-size: .9em;
}
.posts.list .post .readmore,
.post-list li .description .readmore {
padding: 0 10px;
border: 1px solid #90a959;
@ -54,6 +55,7 @@
white-space: nowrap;
font-size: .8em;
}
.posts.list .post .readmore:hover,
.post-list li .description .readmore:hover {
color: #000;
background-color: #90a959;

View file

@ -12,7 +12,8 @@ description: "Les ecrits des Crapauds fous"
{{ post.title }}
</a>
</h3>
{{ post.description | markdownify | remove: '<p>' | remove: '</p>' }}<br>
{{ post.description | markdownify | remove: '<p>' | remove: '</p>' }}
<a href="{{ site.url }}{{ post.url }}" class="readmore">lire la suite</a><br>
{% if post.modified.size > 2 %}
<span class="post-date" itemprop="dateModified" content="{{ post.modified | date: "%Y-%m-%d" }}"><i class="fa fa-edit" title="Last updated"> {{ post.modified | date_to_string }}</i> {% if post.category contains "featured" %}<a href="{{ site.url }}/featured" title="Featured posts"><i class="fa fa-paperclip" title="Featured" class="social-icons"></i></a>{% endif %}</span>