mono-3d.fr/templates/home.html

37 lines
1.3 KiB
HTML

{% extends "base.html" %} {% block content %} {%- if section -%} {%- if not
section.extra.hide_title -%}
<h2 class="title is-3">{{- section.title -}}</h2>
{%- if section.extra.subtitle -%}
<p class="subtitle is-5 has-text-primary-dark">
{{- section.extra.subtitle -}}
</p>
{%- endif -%} {%- endif -%} {{- section.content | safe -}} {% for sect in
section.subsections %} {%- set sect = get_section(path=sect) %}
<section class="content-section">
<div class="columns is-mobile">
<div class="column">
<h2 class="title is-4">
<a href="{{ get_url(path=sect.path | safe) }}"
>{{ sect.title }}</a
>
</h2>
<p class="subtitle is-5">{{ sect.extra.subtitle }}</p>
</div>
{%- if sect.extra.button -%}
<div class="column is-pulled-right is-narrow">
<p>
<a
class="button"
href="{{ get_url(path=sect.path | safe) ~ '#continue-reading' }}"
>{{- sect.extra.button -}}</a
>
</p>
</div>
{%- endif -%}
</div>
{{- sect.content | split(pat="<!-- cut -->") | first | safe -}}
<br />
</section>
{% if not loop.last %}
<hr />
{% endif %} {% endfor -%} {%- endif -%} {% endblock content %}