mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add "read more" links on frontpage
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{% macro post_link(page) %}
|
||||
<article>
|
||||
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
|
||||
{{ page.summary | safe }}
|
||||
<div class="post-summary">
|
||||
{{ page.summary | safe}}
|
||||
<a class="read-more" href="/{{ page.path | safe }}">read more…</a>
|
||||
</div>
|
||||
</article>
|
||||
{% endmacro post_link %}
|
||||
|
||||
Reference in New Issue
Block a user