PyCharm Format

Clean up indentation and whitespace
This commit is contained in:
Che 2022-05-29 04:21:07 -04:00
parent 74717fe8dc
commit c35d1050e0

View file

@ -1,6 +1,6 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="stylesheet" href="{{ get_url(path="main.css") | safe }}"> <link rel="stylesheet" href="{{ get_url(path="main.css") | safe }}">
{% if config.extra.favicon %} {% if config.extra.favicon %}
@ -8,10 +8,10 @@
{% endif %} {% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{% block title %}{{ config.title }}{% endblock title %}</title> <title>{% block title %}{{ config.title }}{% endblock title %}</title>
</head> </head>
<body> <body>
{% if config.extra.release %} {% if config.extra.release %}
<script> <script>
fetch('{{ config.extra.release | safe }}') fetch('{{ config.extra.release | safe }}')
.then((response) => { .then((response) => {
@ -23,18 +23,18 @@
release.innerHTML = `<a href='${html_url}'>${release_name}</a>`; release.innerHTML = `<a href='${html_url}'>${release_name}</a>`;
}); });
</script> </script>
{% endif %} {% endif %}
<main> <main>
{% block nav %} {% block nav %}
<nav> <nav>
{% if config.extra.logo %} {% if config.extra.logo %}
{% if current_path == "/" %} {% if current_path == "/" %}
<img src="{{ config.extra.logo | safe }}" alt="" /> <img src="{{ config.extra.logo | safe }}" alt=""/>
{% else %}<a href="{{ config.base_url }}"> {% else %}<a href="{{ config.base_url }}">
<img src="{{ config.extra.logo | safe }}" alt="" /> <img src="{{ config.extra.logo | safe }}" alt=""/>
</a> </a>
{% endif %} {% endif %}
@ -54,18 +54,19 @@
<input class="tree-toggle" type="checkbox" id="{{ subsection.title | slugify }}" <input class="tree-toggle" type="checkbox" id="{{ subsection.title | slugify }}"
{% if current_path is starting_with(subsection.path) %}checked{% endif %} /> {% if current_path is starting_with(subsection.path) %}checked{% endif %}/>
<label class="tree-toggle-label" for="{{ subsection.title | slugify }}">{{ subsection.title }}</label> <label class="tree-toggle-label"
for="{{ subsection.title | slugify }}">{{ subsection.title }}</label>
<ul class="subtree"> <ul class="subtree">
{% for page in subsection.pages %} {% for page in subsection.pages %}
<li {% if current_path == page.path %}class="active"{% endif %}> <li {% if current_path == page.path %}class="active"{% endif %}>
<a href="{{page.permalink | safe }}">{{page.title}}</a> <a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li> </li>
{% if page.toc %} {% if page.toc %}
{% if current_path == page.path %} {% if current_path == page.path %}
{% set_global header_count = 0 %} {% set_global header_count = 0 %}
{% for h2 in page.toc %} {% for h2 in page.toc %}
@ -85,7 +86,9 @@
{% if h2.children %} {% if h2.children %}
<ul> <ul>
{% for h3 in h2.children %} {% for h3 in h2.children %}
<li><a href="{{ h3.permalink | safe }}">{{ h3.title }}</a></li> <li>
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
@ -103,7 +106,7 @@
</nav> </nav>
{% endblock nav %} {% endblock nav %}
<article> <article>
{% if config.build_search_index %} {% if config.build_search_index %}
<div id="on_right"> <div id="on_right">
@ -124,14 +127,14 @@
{% endblock content %} {% endblock content %}
</div> </div>
</article> </article>
</main> </main>
{% if config.build_search_index %} {% if config.build_search_index %}
<script type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") | safe }}" defer></script> <script type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") | safe }}" defer></script>
<script type="text/javascript" src="{{ get_url(path="search_index.en.js") | safe }}" defer></script> <script type="text/javascript" src="{{ get_url(path="search_index.en.js") | safe }}" defer></script>
<script type="text/javascript" src="{{ get_url(path="js.js") | safe }}" defer></script> <script type="text/javascript" src="{{ get_url(path="js.js") | safe }}" defer></script>
{% endif %} {% endif %}
</body> </body>
</html> </html>