♻️ refactor: improve spacing and indentation

main
welpo 2 years ago
parent 4b18391c18
commit dceceff5fd
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -1,8 +1,10 @@
{% extends "page.html" %}
{% block main_content %}
<main class="centered-header">
{{ macros_page_header::page_header(title="404")}}
<span>not found</span>
</main>
{% endblock main_content %}

@ -1,4 +1,6 @@
{% extends "base.html" %} {% block main_content %}
{% extends "base.html" %}
{% block main_content %}
{{ macros_page_header::page_header(title=section.title) }}
@ -27,4 +29,5 @@
</li>
</ul>
</div>
{% endblock main_content %}

@ -1,4 +1,5 @@
{% macro cards_posts(pages) %}
<div class="cards">
{%- for page in pages %}
<div class="card">
@ -38,4 +39,5 @@
{% endfor -%}
</div>
{% endmacro cards_posts %}

@ -1,4 +1,5 @@
{% macro content(page) %}
{% set separator = config.extra.separator | default(value="•") %}
<main>
@ -81,4 +82,5 @@
</article>
</main>
{% endmacro content %}

@ -1,4 +1,5 @@
{% macro page_desc(desc, page) %}
<div id="banner-container-home">
<div id="home-banner-text">
<div class="home-banner-header">{{ desc.title }}</div>
@ -10,4 +11,5 @@
<img alt="the owner" class="banner-home-img" src={{ desc.img | replace(from="$BASE_URL", to=config.base_url) | safe}} />
</div>
</div>
{% endmacro %}

@ -1,5 +1,7 @@
{% macro page_header(title) %}
<div class="title-container section-title bottom-divider">
{{ title }}
</div>
{% endmacro page_header %}

@ -1,4 +1,5 @@
{% macro paginate() %}
{% if paginator %}
<ul class="pagination">
{% if paginator.previous %}
@ -26,4 +27,5 @@
{% endif %}
</ul>
{% endif %}
{% endmacro paginate %}

@ -1,5 +1,7 @@
{% extends "base.html" %}
{% block main_content %}
{{ macros_content::content(page=page)}}
{% endblock main_content %}

@ -1,6 +1,7 @@
{% extends "base.html" %}
{% block main_content %}
{% if section.extra.section_path -%}
{% set extra_section = get_section(path=section.extra.section_path) %}
{% endif -%}
@ -27,4 +28,5 @@
{% if paginator %}
{{ macros_paginate::paginate() }}
{% endif %}
{% endblock main_content %}

Loading…
Cancel
Save