♻️ 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" %} {% extends "page.html" %}
{% block main_content %} {% block main_content %}
<main class="centered-header"> <main class="centered-header">
{{ macros_page_header::page_header(title="404")}} {{ macros_page_header::page_header(title="404")}}
<span>not found</span> <span>not found</span>
</main> </main>
{% endblock main_content %} {% 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) }} {{ macros_page_header::page_header(title=section.title) }}
@ -27,4 +29,5 @@
</li> </li>
</ul> </ul>
</div> </div>
{% endblock main_content %} {% endblock main_content %}

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

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

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

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

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

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

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

Loading…
Cancel
Save