Commit 0036cb0e authored by Erxleben, Fredo's avatar Erxleben, Fredo
Browse files

Fix article spacing and element ordering in list layouts

parent df0e6108
Pipeline #17323 passed with stage
in 6 minutes and 30 seconds
......@@ -9,8 +9,8 @@
<section>
{% for event in site.events %}
<div class="list-entry">
<article>
<article class="list-entry">
<div class="preview">
<h1>
<a href="{{ event.url | relative_url }}">
{{ event.title }}
......@@ -29,11 +29,13 @@
<a href="{{ event.url | relative_url }}" >
<span>&nbsp;more…&nbsp;</span>
</a>
</article>
</div>
<div class="digest">
{% include event_digest.html event=event %}
</div>
</div>
</article>
{% endfor %}
</section>
</main>
......
......@@ -49,8 +49,8 @@
{% for post in paginator.posts %}
<div class="list-entry">
<article>
<article class="list-entry">
<div class="preview">
<h1>
<a href="{{ post.url | relative_url }}">
{{ post.title }}
......@@ -69,14 +69,15 @@
<a href="{{ post.url | relative_url }}" >
<span>&nbsp;more…&nbsp;</span>
</a>
</article>
</div>
{% include blog_post/metadata.html
authors = post.authors
date = post.date
categories = post.categories
tags = post.tags %}
</div>
</article>
{% endfor %}
</section>
......
......@@ -35,6 +35,12 @@ main {
/* Having auto-margins will wiggle the article into the center */
margin-left: auto;
margin-right: auto;
margin-bottom: 2rem;
/* Last article needs no bottom margin */
&:last-child {
margin-bottom: 0;
}
h1, h2, h3 {
@include font-heading;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment