Add "read more" links on frontpage

This commit is contained in:
Philipp Oppermann
2018-02-27 15:33:52 +01:00
parent fe472d3412
commit 21f409625b
2 changed files with 16 additions and 1 deletions

View File

@@ -70,6 +70,18 @@ main img {
margin: 2rem 0;
}
.post-summary {
margin-bottom: 1rem;
}
.post-summary p {
display: inline;
}
.read-more {
margin-left: 5px;
}
.post-category {
margin-right: 0.5rem;
text-transform: uppercase;

View File

@@ -1,6 +1,9 @@
{% macro post_link(page) %}
<article>
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
<div class="post-summary">
{{ page.summary | safe}}
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
</div>
</article>
{% endmacro post_link %}