]> git.0d.be Git - panikweb-esperanzah.git/blobdiff - panikweb_esperanzah/templates/home.html
misc: apply new pre-commit-config
[panikweb-esperanzah.git] / panikweb_esperanzah / templates / home.html
index e0161ab35122e8f472bd915301c9e8adce44c449..6d6da157be20c2b03963df7ca208fafe56935d2b 100644 (file)
@@ -4,80 +4,80 @@
 {% block htmltitle %}{{ radio_long_name }}{% endblock %}
 
 {% block head %}
-{{ block.super }}
-<script type="application/ld+json">
-{
-  "@context": "http://schema.org",
-  "@type": "Organization",
-  "url": "https://radio.esperanzah.be",
-  "name" : "Radio Esperanzah!"
-}
-</script>
+  {{ block.super }}
+  <script type="application/ld+json">
+    {
+      "@context": "http://schema.org",
+      "@type": "Organization",
+      "url": "https://radio.esperanzah.be",
+      "name" : "Radio Esperanzah!"
+    }
+  </script>
 {% endblock %}
 
 {% block main %}
 
-<div class="" id="specialHome">
+  <div class="" id="specialHome">
     <div>
 
-            {% if newsitems %}
-             <div id="actu">
-                     <h2>{{newsitems.0.title}}</h2>
-                     <div>{{newsitems.0.text|safe}}</div>
-             </div>
-           {% endif %}
+      {% if newsitems %}
+        <div id="actu">
+          <h2>{{newsitems.0.title}}</h2>
+          <div>{{newsitems.0.text|safe}}</div>
+        </div>
+      {% endif %}
 
 
-            <div>
-           {% spaceless %}
-           {% for emission in emissions %}
-           <div class="emission-tile {% if emission.has_focus %}emission-focus{% endif %}">
-             <a href="{% url 'emission-view' slug=emission.slug %}">
+      <div>
+        {% spaceless %}
+          {% for emission in emissions %}
+            <div class="emission-tile {% if emission.has_focus %}emission-focus{% endif %}">
+              <a href="{% url 'emission-view' slug=emission.slug %}">
                 <div class="image  {% cycle 'style1' 'style2' 'style3' %}">
-                            <div class="img">
-                       {% thumbnail emission.image "450x450" crop="50% 50%" as im %}
-                        <img alt="" loading="lazy" src="{{im.url}}">
-                        {% empty %}
-                        <img alt="" class="empty" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8nez3HwAGugKtHMIYIwAAAABJRU5ErkJggg==">
-                       {% endthumbnail %}
-                            </div>
-                   </div>
-             <div class="name"><span>{{emission.title}}</span></div>
-             </a>
+                  <div class="img">
+                    {% thumbnail emission.image "450x450" crop="50% 50%" as im %}
+                      <img alt="" loading="lazy" src="{{im.url}}">
+                    {% empty %}
+                      <img alt="" class="empty" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8nez3HwAGugKtHMIYIwAAAABJRU5ErkJggg==">
+                    {% endthumbnail %}
+                  </div>
+                </div>
+                <div class="name"><span>{{emission.title}}</span></div>
+              </a>
               <div class="tags">
-              {% if emission.subtitle %}<span>{{ emission.subtitle }}</span>
-              {% elif emission.has_focus %}<span>#podcast</span>{% endif %}
-              {% for schedule in emission.schedule_set.all %}
-                {% if forloop.first and forloop.last %}#{{schedule.datetime|date:"l"}}{% endif %}
-              {% endfor %}
+                {% if emission.subtitle %}<span>{{ emission.subtitle }}</span>
+                {% elif emission.has_focus %}<span>#podcast</span>{% endif %}
+                {% for schedule in emission.schedule_set.all %}
+                  {% if forloop.first and forloop.last %}#{{schedule.datetime|date:"l"}}{% endif %}
+                {% endfor %}
               <!-- &nbsp;<span>#espe{{emission.creation_timestamp|date:"Y"}}</span> -->
               </div>
-           </div>
-           {% endfor %}
+            </div>
+          {% endfor %}
 
-           {% for page in extra_pages %}
-           <div class="emission-tile">
-           <a href="{{page.get_online_url}}">
-                   <div class="image">
-                            <div class="img">
-                       {% thumbnail page.picture "450x450" crop="50% 50%" as im %}
-                        <img alt="" loading="lazy" src="{{im.url}}">
-                        {% empty %}
-                        <img alt="" class="empty" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8nez3HwAGugKtHMIYIwAAAABJRU5ErkJggg==" height="450" width="450">
-                       {% endthumbnail %}
-                            </div>
-                   </div>
-                   <div class="name"><span>{{page.title}}</span></div>
-           </a>
-                      <div class="tags">
-                      {% if page.slug == "interviews" %}<span>#podcast</span>{% endif %}
-                      </div>
-           </div>
-           {% endfor %}
-           {% endspaceless %}
+          {% for page in extra_pages %}
+            <div class="emission-tile">
+              <a href="{{page.get_online_url}}">
+                <div class="image">
+                  <div class="img">
+                    {% thumbnail page.picture "450x450" crop="50% 50%" as im %}
+                      <img alt="" loading="lazy" src="{{im.url}}">
+                    {% empty %}
+                      <img alt="" class="empty" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8nez3HwAGugKtHMIYIwAAAABJRU5ErkJggg==" height="450" width="450">
+                    {% endthumbnail %}
+                  </div>
+                </div>
+                <div class="name"><span>{{page.title}}</span></div>
+              </a>
+              <div class="tags">
+                {% if page.slug == "interviews" %}<span>#podcast</span>{% endif %}
+              </div>
             </div>
+          {% endfor %}
+        {% endspaceless %}
+      </div>
 
     </div>
-</div>
+  </div>
 
 {% endblock %}