Use spaced classes
This commit is contained in:
parent
6be3418ba4
commit
881789397b
5 changed files with 12 additions and 10 deletions
|
@ -10,9 +10,9 @@ use: [posts]
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<ul class="list-reset -mt-4 -mx-4">
|
||||
<ul class="list-reset -mt-4 -mx-4 spaced-y-4">
|
||||
{% for post in data.posts %}
|
||||
<li class="p-4 mb-6 {{ post.draft ? 'bg-blue-lighter' }}">
|
||||
<li class="p-4 {{ post.draft ? 'bg-blue-lighter' }}">
|
||||
{% include 'blog/post-summary' %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
|
@ -3,11 +3,13 @@ layout: default
|
|||
title: Articles
|
||||
use: [posts]
|
||||
---
|
||||
{% for post in data.posts if post.favourite %}
|
||||
<div class="mb-10">
|
||||
{% include 'blog/post-summary' %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="mb-10 spaced-y-10">
|
||||
{% for post in data.posts if post.favourite %}
|
||||
<div>
|
||||
{% include 'blog/post-summary' %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="markup">
|
||||
<a href="/articles/archive">Archive</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue