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;
|
margin: 2rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-summary {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-summary p {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.read-more {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.post-category {
|
.post-category {
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{% macro post_link(page) %}
|
{% macro post_link(page) %}
|
||||||
<article>
|
<article>
|
||||||
<h2 class="post-title"><a href="/{{ page.path | safe }}">{{ page.title }}</a></h2>
|
<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>
|
</article>
|
||||||
{% endmacro post_link %}
|
{% endmacro post_link %}
|
||||||
|
|||||||
Reference in New Issue
Block a user