This commit is contained in:
2023-01-02 12:28:48 +02:00
parent ce5d4b806f
commit f1bdcce183
10 changed files with 73 additions and 62 deletions

View File

@@ -8,7 +8,7 @@ and a side nav for category and featured post navigation
{% block content %}
<main>
<main class="container mx-auto">
<!--sets global featured variable as the most recent post with the isFeatured tag-->
{%- set section = get_section(path="blog/_index.md") %}
@@ -17,14 +17,18 @@ and a side nav for category and featured post navigation
{%- set_global featured = page %}
{% break %}
{% endif %}
{% if not featured %}
{%- set_global featured = section.pages[0] %}
{% endif %}
{% endfor %}
{% include "partials/featuredBlog.html" %}
<div class="flex flex-col md:flex-row">
<div class="flex flex-col md:flex-row container mx-auto">
{% include "partials/blogPosts.html" %}
{% include "partials/blogSidebar.html" %}
</div>
</div>
</main>
{% endblock content %}