🐛 fix: ensure spacing when all projects are shown

Fixes #303.
main
welpo 10 months ago
parent 52cd0cfccd
commit 50123c09ef
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -80,8 +80,8 @@
margin-top: 4rem; margin-top: 4rem;
} }
.projects-first #all-projects { .projects-first #posts-list {
margin-bottom: 4rem; margin-top: 4rem;
} }
@media only screen and (max-width: 1100px) { @media only screen and (max-width: 1100px) {

@ -1,4 +1,4 @@
<div class="list"> <div id="posts-list">
<div> <div>
{{ macros_page_header::page_header(title=section.title) }} {{ macros_page_header::page_header(title=section.title) }}
</div> </div>

@ -9,7 +9,7 @@
{%- include "partials/cards_pages.html" -%} {%- include "partials/cards_pages.html" -%}
{%- endif -%} {%- endif -%}
{%- if show_pages | length > max_projects -%} {%- if show_pages | length > max_projects -%}
<div class="all-posts {{ first_section }}-first" id="all-projects"> <div class="all-posts" id="all-projects">
<a href="{{ get_url(path=projects_section.path, lang=lang) }}/">{{ macros_translate::translate(key="all_projects", default="All projects", language_strings=language_strings) }}&nbsp;<span class="arrow"></span></a> <a href="{{ get_url(path=projects_section.path, lang=lang) }}/">{{ macros_translate::translate(key="all_projects", default="All projects", language_strings=language_strings) }}&nbsp;<span class="arrow"></span></a>
</div> </div>
{%- endif -%} {%- endif -%}

Loading…
Cancel
Save