about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAlan Pearce2024-02-18 13:15:52 +0100
committerAlan Pearce2024-02-18 13:15:52 +0100
commit5a936b5c413b541c5523da6b4ebdc46f996f7360 (patch)
treee1da912c1837fc7ecbb394957e868a630b6f2650 /templates
parent555ff8a5656cf9fc160de3ec19bc827f6e5da9b7 (diff)
downloadzola-bearblog-5a936b5c413b541c5523da6b4ebdc46f996f7360.tar.lz
zola-bearblog-5a936b5c413b541c5523da6b4ebdc46f996f7360.tar.zst
zola-bearblog-5a936b5c413b541c5523da6b4ebdc46f996f7360.zip
Remove inline styles
Resolves part of https://codeberg.org/alanpearce/zola-bearblog/issues/4
Diffstat (limited to 'templates')
-rw-r--r--templates/section.html2
-rw-r--r--templates/style.css.html4
-rw-r--r--templates/taxonomy_single.html2
3 files changed, 6 insertions, 2 deletions
diff --git a/templates/section.html b/templates/section.html
index b9eb680..f3c218a 100644
--- a/templates/section.html
+++ b/templates/section.html
@@ -3,7 +3,7 @@
 {% block main %}
   <main>
     {%- if taxonomy.term %}
-      <h3 style="margin-bottom:0">Filtering for "{{ section.title }}"</h3>
+      <h3 class="filter">Filtering for "{{ section.title }}"</h3>
       <small>
         <a href="{{ get_url(path="@/blog/_index.md", lang=lang) }}">Remove filter</a>
       </small>
diff --git a/templates/style.css.html b/templates/style.css.html
index 15d6b3d..267b13a 100644
--- a/templates/style.css.html
+++ b/templates/style.css.html
@@ -39,6 +39,10 @@
     font-weight: 400;
   }
 
+  .filter {
+    margin-bottom: 0;
+  }
+
   nav a {
     margin-right: 10px;
   }
diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html
index b46e07f..0f640a2 100644
--- a/templates/taxonomy_single.html
+++ b/templates/taxonomy_single.html
@@ -3,7 +3,7 @@
 {% block main %}
   <main>
     {%- if term %}
-      <h3 style="margin-bottom:0">Filtering for "{{ term.name }}"</h3>
+      <h3 class="filter">Filtering for "{{ term.name }}"</h3>
       <small>
         <a href="{{ get_url(path="@/blog/_index.md", lang=lang) }}">Remove filter</a>
       </small>