♻️ 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,14 +1,14 @@
<footer> <footer>
<section> <section>
<nav class="socials nav-navs"> <nav class="socials nav-navs">
{%- if config.extra.socials %} {%- if config.extra.socials %}
{% for social in config.extra.socials %} {% for social in config.extra.socials %}
<a rel="noopener noreferrer" target="_blank" class="nav-links no-hover-padding social" href={{ social.url | safe | replace(from="$BASE_URL", to=config.base_url) }}> <a rel="noopener noreferrer" target="_blank" class="nav-links no-hover-padding social" href={{ social.url | safe | replace(from="$BASE_URL", to=config.base_url) }}>
<img alt={{ social.name }} title={{ social.name }} src="{{config.base_url}}/social_icons/{{ social.icon }}.svg"> <img alt={{ social.name }} title={{ social.name }} src="{{config.base_url}}/social_icons/{{ social.icon }}.svg">
</a> </a>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</nav> </nav>
</section> </section>
<script src="{{ get_url(path='js/main.js', trailing_slash=false) | safe }}"/></script> <script src="{{ get_url(path='js/main.js', trailing_slash=false) | safe }}"/></script>
</footer> </footer>

@ -8,7 +8,7 @@
{# Favicon #} {# Favicon #}
{% if config.extra.favicon %} {% if config.extra.favicon %}
<link rel="icon" type="image/png" href={{ config.extra.favicon }} /> <link rel="icon" type="image/png" href={{ config.extra.favicon }} />
{% endif %} {% endif %}
{# RSS #} {# RSS #}
@ -17,16 +17,16 @@
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="main.css" ) }} /> <link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="main.css" ) }} />
{% if config.extra.stylesheets %} {% if config.extra.stylesheets %}
{% for stylesheet in config.extra.stylesheets %} {% for stylesheet in config.extra.stylesheets %}
<link rel="stylesheet" href="{{ get_url(path=stylesheet) }}"> <link rel="stylesheet" href="{{ get_url(path=stylesheet) }}">
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<meta name="description" content="{{ config.description }}"> <meta name="description" content="{{ config.description }}">
{% if is_404 %} {% if is_404 %}
<meta name="robots" content="noindex, follow"> <meta name="robots" content="noindex, follow">
{% else %} {% else %}
<meta name="robots" content="index, nofollow"> <meta name="robots" content="index, nofollow">
{% endif %} {% endif %}
<meta property="og:title" content="{{ config.title }}"> <meta property="og:title" content="{{ config.title }}">

@ -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