Adjust changelog list margin

This commit is contained in:
Helen Chong 2024-04-18 10:33:09 +08:00
parent 7df86e50c8
commit 82ca06634c
2 changed files with 18 additions and 2 deletions

View File

@ -7,3 +7,9 @@
{{ log.templateContent | safe }} {{ log.templateContent | safe }}
{%- endfor %} {%- endfor %}
</article> </article>
<style>
.heading-wrapper + ul {
margin: 0.3em 0 3em 0;
}
</style>

View File

@ -13,12 +13,22 @@ pagination:
permalink: "/{{ page.fileSlug }}{% if pagination.pageNumber > 0 %}/page/{{ pagination.pageNumber + 1 }}{% endif %}/" permalink: "/{{ page.fileSlug }}{% if pagination.pageNumber > 0 %}/page/{{ pagination.pageNumber + 1 }}{% endif %}/"
--- ---
<h2>Latest Changelogs</h2>
<article> <article>
<h2>Latest Changelogs</h2>
{% for log in changelogs %} {% for log in changelogs %}
<h3>{{ log.data.date | niceDate }}</h3> <h3 class="date-style">{{ log.data.date | niceDate }}</h3>
{{ log.templateContent | safe }} {{ log.templateContent | safe }}
{%- endfor %} {%- endfor %}
</article> </article>
{% include "global/pagination-oldnew.njk" %} {% include "global/pagination-oldnew.njk" %}
<style>
h2 + h3 {
margin-top: 1.5em;
}
h3 + ul {
margin-bottom: 3em;
}
</style>