summary refs log tree commit diff stats
path: root/themes
diff options
context:
space:
mode:
authorAlan Pearce2023-06-23 14:04:35 +0200
committerAlan Pearce2023-06-23 14:04:53 +0200
commitc05bd8303b53d26e5b283bc71b0153f221dca962 (patch)
treed9b2431e0c5c589fae06acd3622cccf1b5347e92 /themes
parent19701d1646fcf8f95c51bab60ee4aadc23ece2b5 (diff)
downloadwebsite-c05bd8303b53d26e5b283bc71b0153f221dca962.tar.lz
website-c05bd8303b53d26e5b283bc71b0153f221dca962.tar.zst
website-c05bd8303b53d26e5b283bc71b0153f221dca962.zip
Improve HTML indentation
Diffstat (limited to 'themes')
-rw-r--r--themes/bear/templates/header.html2
-rw-r--r--themes/bear/templates/nav.html2
-rw-r--r--themes/bear/templates/page.html2
-rw-r--r--themes/bear/templates/section.html4
-rw-r--r--themes/bear/templates/taxonomy_single.html6
5 files changed, 8 insertions, 8 deletions
diff --git a/themes/bear/templates/header.html b/themes/bear/templates/header.html
index 18b2318..9d2b31f 100644
--- a/themes/bear/templates/header.html
+++ b/themes/bear/templates/header.html
@@ -8,4 +8,4 @@
   <nav>
     {% include "nav.html" %}
   </nav>
-</header>
+</header>{{ "" -}}
diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html
index cf0d9b7..ba41879 100644
--- a/themes/bear/templates/nav.html
+++ b/themes/bear/templates/nav.html
@@ -1,4 +1,4 @@
-<a href="{{ config.base_url | safe }}">Home</a>
+  <a href="{{ config.base_url | safe }}">Home</a>
 {%- if config.extra.main_menu %}
   {%- for item in config.extra.main_menu %}
     {%- if item.url is matching("https?://") %}
diff --git a/themes/bear/templates/page.html b/themes/bear/templates/page.html
index 393139b..001fdee 100644
--- a/themes/bear/templates/page.html
+++ b/themes/bear/templates/page.html
@@ -14,7 +14,7 @@
     {%- endif %}
   {%- endif %}
   <main id="content">
-    {{ page.content | safe }}
+    {{ page.content | trim | indent | safe }}
   </main>
   <ul class="tags">
     {%- if page.taxonomies %}
diff --git a/themes/bear/templates/section.html b/themes/bear/templates/section.html
index 3042cd2..f633036 100644
--- a/themes/bear/templates/section.html
+++ b/themes/bear/templates/section.html
@@ -9,7 +9,7 @@
       </small>
     {%- endif %}
     <ul class="blog-posts">
-      {% for page in section.pages %}
+      {%- for page in section.pages %}
         <li>
           <span>
             <time datetime='{{ page.date | date(format='%+') }}' pubdate>
@@ -18,7 +18,7 @@
           </span>
           <a href="{{ page.path | urlencode | safe }}">{{ page.title }}</a>
         </li>
-        {% else %}
+      {% else %}
         <li>
           No posts yet
         </li>
diff --git a/themes/bear/templates/taxonomy_single.html b/themes/bear/templates/taxonomy_single.html
index 2798f94..5ee2b88 100644
--- a/themes/bear/templates/taxonomy_single.html
+++ b/themes/bear/templates/taxonomy_single.html
@@ -6,7 +6,7 @@
   <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="{% if term %}{{ term.name | title }}{% else %}{{ section.title | title }}{% endif %}" href="{{ get_url(path=rss_path) | safe }}">
 {%- endblock -%}
 
-{% block main %}
+{% block main -%}
   <main id="content">
     {%- if taxonomy.term %}
       <h3 style="margin-bottom:0">Filtering for "{{ term.name }}"</h3>
@@ -15,7 +15,7 @@
       </small>
     {%- endif %}
     <ul class="blog-posts">
-      {% for page in term.pages %}
+      {%- for page in term.pages %}
         <li>
           <span>
             <time datetime='{{ page.date | date(format='%+') }}' pubdate>
@@ -28,7 +28,7 @@
         <li>
           No posts yet
         </li>
-      {% endfor %}
+      {%- endfor %}
     </ul>
   </main>
 {% endblock %}