Revert "remove archive and templates"

This reverts commit 67bdf28216.
This commit is contained in:
timurgordon
2024-03-06 16:24:35 -05:00
parent 10169d27fc
commit db0b0ed39f
514 changed files with 12779 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{% extends "_default/base.html" %}
<!-- blog template
the template for displaying the blog page.
consists of a featured blog row,
a paginated list of posts (sorted by date),
and a side nav for category and featured post navigation
-->
{% block content %}
<main>
<!--sets global featured variable as the most recent post with the isFeatured tag-->
{%- set section = get_section(path="blog/_index.md") %}
{% for page in section.pages %}
{% if page.extra.isFeatured %}
{%- set_global featured = page %}
{% break %}
{% endif %}
{% if not featured %}
{%- set_global featured = section.pages[0] %}
{% endif %}
{% endfor %}
<div class="flex flex-col md:flex-row container mx-auto my-6">
{% include "partials/blogPosts.html" %}
{% include "partials/blogSidebar.html" %}
</div>
</main>
{% endblock content %}