Migrate from Bazel

This commit is contained in:
Marc Plano-Lesay 2025-12-12 15:30:04 +11:00
commit 016dbd0814
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
59 changed files with 7044 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block content %}
<h1 class="page-title">Blog</h1>
{% if section.description %}
<p class="section-description">{{ section.description }}</p>
{% endif %}
<ul class="post-list">
{% if paginator %}
{% for page in paginator.pages %}
{{ macros::post_list_item(page=page) }}
{% endfor %}
{% else %}
{% set posts_section = get_section(path="posts/_index.md") %}
{% for page in posts_section.pages %}
{{ macros::post_list_item(page=page) }}
{% endfor %}
{% endif %}
</ul>
{% if paginator %}
<nav class="pagination" aria-label="Pagination">
{% if paginator.previous %}
<a href="{{ paginator.previous }}" rel="prev" class="pagination__button">Newer posts</a>
{% endif %}
<span class="pagination__info">Page {{ paginator.current_index }} of {{ paginator.number_pagers }}</span>
{% if paginator.next %}
<a href="{{ paginator.next }}" rel="next" class="pagination__button">Older posts</a>
{% endif %}
</nav>
{% endif %}
{% endblock content %}