about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-04-26 13:24:52 +0200
committerAlan Pearce2023-04-26 13:24:52 +0200
commit40881d13b8042cb0fabf9a92ed38a21cdf6c8d2e (patch)
tree919174143ede711d352ea3a3ca1c89e9bde6c6af
parent2ca8f6cefd0dad72ab4e19d29dd0bbf36e9ee021 (diff)
parentccdba539bd37dbe83a7a8f773a6568b6ca93cd5f (diff)
downloadzola-bearblog-40881d13b8042cb0fabf9a92ed38a21cdf6c8d2e.tar.lz
zola-bearblog-40881d13b8042cb0fabf9a92ed38a21cdf6c8d2e.tar.zst
zola-bearblog-40881d13b8042cb0fabf9a92ed38a21cdf6c8d2e.zip
Merge branch 'main' into microformats2
-rw-r--r--content/bear.md2
-rw-r--r--templates/base.html2
-rw-r--r--templates/footer.html4
-rw-r--r--templates/header.html4
-rw-r--r--templates/nav.html2
-rw-r--r--templates/page.html8
6 files changed, 10 insertions, 12 deletions
diff --git a/content/bear.md b/content/bear.md
index 62f5db5..dd7da4b 100644
--- a/content/bear.md
+++ b/content/bear.md
@@ -2,8 +2,6 @@
 title = "Bear"
 +++
 
-# Bear
-
 Website: [https://bearblog.dev](https://bearblog.dev)
 
 There is a website obesity crisis. Bloated websites are full of scripts, ads, and trackers slowing your readers down every time they try to read your well-crafted content.
diff --git a/templates/base.html b/templates/base.html
index 973abdd..4ba8442 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -5,7 +5,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   {% include "favicon.html" ignore missing -%}
   <title>{%- block title %}{{ config.title }}{%- endblock %}</title>
-  {% include "seo_tags.html" ignore missing -%}
+  {% include "seo_tags.html" ignore missing %}
   <meta name="referrer" content="no-referrer-when-downgrade">
   {%- if config.generate_feed %}
   {% block rss -%}
diff --git a/templates/footer.html b/templates/footer.html
index 97b096b..c952a93 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -1,5 +1,5 @@
 <footer>
-  {% if not config.extra.hide_made_with_line %}
+  {%- if not config.extra.hide_made_with_line %}
     Made with <a href="https://codeberg.org/alanpearce/zola-bearblog">Zola ʕ•ᴥ•ʔ Bear</a>
-  {% endif %}
+  {%- endif %}
 </footer>
diff --git a/templates/header.html b/templates/header.html
index db5b921..c1d3c3e 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -2,5 +2,7 @@
   <a href="{{ config.base_url }}" class="title">
     <h2>{{ config.title }}</h2>
   </a>
-  <nav>{% include "nav.html" %}</nav>
+  <nav>
+    {% include "nav.html" %}
+  </nav>
 </header>
diff --git a/templates/nav.html b/templates/nav.html
index 4dd0e63..e006ab1 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -7,4 +7,4 @@
       <a href="{{ get_url(path=item.url )}}">{{ item.name }}</a>
     {%- endif %}
   {%- endfor %}
-{%- endif %}
+{%- endif -%}
diff --git a/templates/page.html b/templates/page.html
index baf6c09..48b920e 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,8 +1,6 @@
 {% extends "base.html" %}
 
-{% block title %}
-{{ page.title }} | {{ super() }}
-{% endblock %}
+{% block title %}{{ page.title }} | {{ super() }}{% endblock %}
 
 {% block main %}
   {%- if not page.extra.menu %}
@@ -11,14 +9,14 @@
       <p>
         <i>
           <time datetime='{{ page.date | date(format='%+') }}' pubdate>
-            {{ page.date | date(format=config.extra.date_format) }}
+            {{- page.date | date(format=config.extra.date_format) -}}
           </time>
         </i>
       </p>
     {%- endif %}
   {%- endif %}
   <main>
-    {{ page.content | safe }}
+    {{ page.content | indent | safe }}
   </main>
   <p>
     {%- if page.taxonomies %}