about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorAlan Pearce2023-06-23 14:04:35 +0200
committerAlan Pearce2023-06-23 14:04:53 +0200
commitc05bd8303b53d26e5b283bc71b0153f221dca962 (patch)
treed9b2431e0c5c589fae06acd3622cccf1b5347e92 /templates
parent19701d1646fcf8f95c51bab60ee4aadc23ece2b5 (diff)
downloadwebsite-c05bd8303b53d26e5b283bc71b0153f221dca962.tar.lz
website-c05bd8303b53d26e5b283bc71b0153f221dca962.tar.zst
website-c05bd8303b53d26e5b283bc71b0153f221dca962.zip
Improve HTML indentation
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html
index 7a7d753..ab91a21 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,10 +4,10 @@
 
 {% block title_class %} p-name fn{% endblock %}
 
-{% block main %}
+{% block main -%}
   <main id="content">
     <div>
-      {{ section.content | safe }}
+      {{ section.content | safe -}}
     </div>
     <section>
       <h2>Latest Posts</h2>
@@ -26,11 +26,11 @@
       <ul>
         {%- for item in config.extra.contact_menu %}
           <li>
-            {%- if item.url is starting_with("mailto:") %}
+            {%- if item.url is starting_with("mailto:") -%}
               <a href="{{ item.url | safe }}" class="u-email email" rel="me">{{ item.name }}</a>
-            {%- else %}
+            {%- else -%}
               <a href="{{ item.url | safe }}" class="u-url url" rel="me">{{ item.name }}</a>
-            {%- endif %}
+            {%- endif -%}
           </li>
         {%- endfor %}
       </ul>