about summary refs log tree commit diff stats
path: root/themes/bear/templates
diff options
context:
space:
mode:
Diffstat (limited to 'themes/bear/templates')
-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 %}