Deprecate bulma in favor of normalize and milligram

Deprecate the bulma css framework in favor of normalize and
milligram. Adapt the templates to work with the new css libraries.
This commit is contained in:
finga 2024-04-20 00:02:14 +02:00
parent be9da23070
commit 4aff0378ac
27 changed files with 408 additions and 334 deletions

View file

@ -1,23 +1,33 @@
{% extends "base.html" %}
{% block title %}
{% set section = get_section(path=page.ancestors | last) %}
{{ config.title }} - {{ section.title }} - {{ page.title }}: {{ page.date }}
{% if page.ancestors %}
{% set ancestor = get_section(path=page.ancestors | last) %}
{% if ancestor.extra %}
{{ config.title }} | {{ page.date }} - {{ page.title }} ({{ ancestor.title }})
{% else %}
{{ config.title }} | {{ page.title }}
{% endif %}
{% endif %}
{% endblock title %}
{% block subtitle %}
{% if page.ancestors %}
{% set ancestor = get_section(path=page.ancestors | last) %}
{% if ancestor.extra %}
<h2>{{ ancestor.extra.start }} - {{ ancestor.extra.end }}: {{ ancestor.title }}</h2>
{% else %}
<h2>{{ page.title }}</h2>
{% endif %}
{% endif %}
{% endblock subtitle %}
{% block content %}
{% set section = get_section(path=page.ancestors | last) %}
<h1 class="title">{{ config.title }}</h1>
<h2 class="subtitle">{{ section.title }}</h2>
{% include "navbar.html" %}
<h3 class="subtitle">{{ page.title }} ({{ page.date }})</h3>
<div class="content">
<div class="block">
{{ page.content | safe }}
</div>
<div class="block">
{% include "comments.html" %}
</div>
</div>
{% include "navbar.html" %}
{% if page.date %}
<h3>{{ page.title }} ({{ page.date }})</h3>
{% endif %}
{{ page.content | safe }}
{% if page.date %}
{% include "comments.html" %}
{% endif %}
{% endblock content %}