strip whitespace
All checks were successful
check / test (pull_request) Successful in 17s

This commit is contained in:
Valentin Gagarin 2024-04-13 00:57:14 +02:00
parent 7be5afe882
commit 8ea85377a2
7 changed files with 22 additions and 22 deletions

View File

@ -1,17 +1,17 @@
{% extends "base.html" %}
{% block seo %}
{{ super() }}
{{ super() }}
{% set title = "404 Page not found" %}
{% if config.title %}
{% set title_addition = title_separator ~ config.title %}
{% else %}
{% set title_addition = "" %}
{% endif %}
{% set description = config.description %}
{{ macros_head::seo(title=title, title_addition=title_addition, description=description, is_404=true) }}
{% endblock seo %}

View File

@ -3,7 +3,7 @@
{% block seo %}
{% set author_name_in_url = term.permalink | trim_end_matches(pat="/") | split(pat="/") | last %}
{% set section = get_section(path="authors/_index.md") %}
{% if section.extra.author_pages[author_name_in_url] %}
{% set_global author_page = get_page(path=section.extra.author_pages[author_name_in_url])%}
{% endif %}
@ -12,26 +12,26 @@
{% else %}
{% set_global title = term.name %}
{% endif %}
{% set title_addition = "" %}
{% if config.extra.title_separator %}
{% set title_separator = " " ~ config.extra.title_separator ~ " " %}
{% else %}
{% set title_separator = " | " %}
{% endif %}
{% if config.title %}
{% set title_addition = title_separator ~ config.title %}
{% else %}
{% set title_addition = "" %}
{% endif %}
{% if author_page and author_page.description %}
{% set description = author_page.description %}
{% else %}
{% set description = config.description %}
{% endif %}
{{ macros_head::seo(title=title, title_addition=title_addition, description=description) }}
{% endblock seo %}

View File

@ -49,6 +49,6 @@
{{ macros_footer::footer() }}
{% endblock footer %}
{{ macros_js::javascript() }}
{{ macros_js::javascript() }}
</body>
</html>

View File

@ -8,7 +8,7 @@
{% else %}
{% set title = "" %}
{% endif %}
{% if config.extra.title_addition and title %}
{% set title_addition = title_separator ~ config.extra.title_addition %}
{% elif config.extra.title_addition %}
@ -16,9 +16,9 @@
{% else %}
{% set title_addition = "" %}
{% endif %}
{% set description = config.description %}
{{ macros_head::seo(title=title, title_addition=title_addition, description=description, is_home=true) }}
{% endblock seo %}
@ -54,7 +54,7 @@
<div class="col-lg-5">
<h2 class="h4">Security aware</h2>
<p>Get A+ scores on <a href="https://observatory.mozilla.org/analyze/doks.netlify.app">Mozilla Observatory</a> out of the box. Easily change the default Security Headers to suit your needs.</p>
</div>
</div>
<div class="col-lg-5">
<h2 class="h4">Fast by default ⚡️</h2>
<p>Get 100 scores on <a href="https://googlechrome.github.io/lighthouse/viewer/?gist=7731347bb8ce999eff7428a8e763b637">Google Lighthouse</a> by default. Doks removes unused css, prefetches links, and lazy loads images.</p>

View File

@ -6,7 +6,7 @@
{% if index.pages %}
<h3>{{ index.title }}</h3>
<ul class="list-unstyled">
{% for page in index.pages %}
{% for page in index.pages %}
<li><a class="docs-link{% if current_url == page.permalink %} active{% endif %}" href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
@ -17,7 +17,7 @@
{% if subsection.pages %}
<h3>{{ subsection.title }}</h3>
<ul class="list-unstyled">
{% for page in subsection.pages %}
{% for page in subsection.pages %}
<li><a class="docs-link{% if current_url == page.permalink %} active{% endif %}" href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>

View File

@ -13,7 +13,7 @@
{% else %}
{% set title = config.title %}
{% endif %}
{% if page.description %}
{% set description = page.description %}
{% else %}
@ -26,10 +26,10 @@
{% else %}
{% set page_section = "" %}
{% endif %}
{{ macros_head::seo(title=title, title_addition=title_addition, description=description, type="article", is_page=true, created_time=created_time, updated_time=updated_time, page_section=page_section) }}
{% endblock seo %}
{% block body %}
{% if section.extra.class %}
{% set page_class = page.extra.class %}

View File

@ -5,7 +5,7 @@
{% block seo %}
{{ super() }}
{% set title_addition = "" %}
{% if section.title and config.title %}
{% set title = section.title %}
{% set title_addition = title_separator ~ config.title %}
@ -14,13 +14,13 @@
{% else %}
{% set title = config.title %}
{% endif %}
{% if section.description %}
{% set description = section.description %}
{% else %}
{% set description = config.description %}
{% endif %}
{{ macros_head::seo(title=title, title_addition=title_addition, description=description) }}
{% endblock seo %}