buildsomething/templates/section.html

52 lines
1.4 KiB
HTML
Raw Normal View History

2024-11-05 21:59:02 +01:00
{% import "_macros.html" as macros %}
{% extends "index.html" %}
{% block title %}{{ section.title }} | {{ super() }} {% endblock title %}
{% block header %}
<header class="box-shadow">
2024-11-07 10:16:24 +01:00
{% if lang =="en" %}
{% set path = [""] | concat(with=section.components) | join(sep="/") %}
{% else %}
{% set path = [""] | concat(with=section.components | slice(start=1)) | join(sep="/") %}
{% endif %}
{{ macros::render_header(path=path) }}
2024-11-05 21:59:02 +01:00
</header>
2024-11-10 15:23:31 +01:00
2024-11-05 21:59:02 +01:00
{% endblock header %}
2024-11-13 12:11:32 +01:00
{% block hero%}
{% endblock hero %}
2024-11-05 21:59:02 +01:00
2024-11-10 15:23:31 +01:00
2024-11-05 21:59:02 +01:00
{% block content %}
2024-11-13 12:11:32 +01:00
<div class="content text margin-left:20vw; margin-right: 20vw;">
2024-11-05 21:59:02 +01:00
<div class="heading-text">{{ section.title }}</div>
2024-11-14 09:22:56 +01:00
<ul class="blog">
2024-11-05 21:59:02 +01:00
{% for page in section.pages %}
2024-11-14 09:22:56 +01:00
<li class="blog card" hx-get="{{ page.permalink | safe }}">
2024-11-05 21:59:02 +01:00
<div>
<a href="{{ page.permalink | safe }}">
<strong class="title article-title">{{ page.title }}</strong>
</a>
{% if page.date %}
<div>
<span>{{ page.date | date(format="%F") }}</span>
</div>
{% endif %}
</div>
{% if page.summary %}
<div itemprop="summary" class="content article-body">
{{ page.summary | safe }}
<nav class="readmore">
<a itemprop="url" href="{{ page.permalink | safe }}">Read
More&nbsp;&raquo;
</a>
</nav>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endblock content %}