1{% extends "base.html" %}2
3{% block content %}4<h1>{{ section.title }}</h1>5{{ section.content | safe }}6
7{% set posts = get_section(path="posts/_index.md") %}8{% if posts.pages %}9<h2>posts</h2>10<ul class="post-list">11 {% for page in posts.pages %}12 <li>13 <a href="{{ page.permalink }}">{{ page.title }}</a>14 <span class="date">{{ page.date | date(format="%Y-%m-%d") }}</span>15 </li>16 {% endfor %}17</ul>18{% endif %}19{% endblock %} v1 of v2
commit 5b2ae45
message create index.html via macOS
author anton
date Apr 19, 2026
size 442 B