From eef0fa33867a56ea08aedeb703058c8c0e1493fb Mon Sep 17 00:00:00 2001
From: EuAndreh <eu@euandre.org>
Date: Fri, 1 Jan 2021 12:50:07 -0300
Subject: post.html: Remove <section> tags

---
 _layouts/post.html | 71 +++++++++++++++++++++++++++---------------------------
 1 file changed, 35 insertions(+), 36 deletions(-)

(limited to '_layouts/post.html')

diff --git a/_layouts/post.html b/_layouts/post.html
index 8aafb9d..28af9ce 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,52 +1,51 @@
 ---
 layout: default
 ---
-<section class="header">
+<div class="header">
   {{ site.t.posted_on[page.lang] }}
   {% include i18n-date.html date=page.date %}
-</section>
-{% if page.updated_at %}
-  <section class="header">
+
+  {% if page.updated_at %}
+    <br />
     {{ site.t.updated_at[page.lang] }}
     {% include i18n-date.html date=page.updated_at %}
-  </section>
-{% endif %}
-<section>
+  {% endif %}
+</div>
 
-  {% if page.audio %}
-    {% assign ogg=page.url | replace_first: "/", "" | replace: ".html", ".ogg" %}
-    <audio controls>
-      <source src="{% link {{ ogg }} %}" type="audio/ogg">
-    </audio>
+{% if page.audio %}
+  {% assign ogg=page.url | replace_first: "/", "" | replace: ".html", ".ogg" %}
+  <audio controls>
+    <source src="{% link {{ ogg }} %}" type="audio/ogg">
+  </audio>
 
-    <div class="torrent-link">
-      {% capture torrent-file %}{{ ogg | absolute_url | append: ".torrent" }}{% endcapture %}
-      <a href="{{ torrent-file }}">torrent</a>
-      |
-      <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a>
-    </div>
+  <div class="torrent-link">
+    {% capture torrent-file %}{{ ogg | absolute_url | append: ".torrent" }}{% endcapture %}
+    <a href="{{ torrent-file }}">torrent</a>
+    |
+    <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a>
+  </div>
+{% endif %}
+
+{% if page.video %}
+  {% assign webm=page.url | replace_first: "/", "" | replace: ".html", ".webm" %}
+  {% if site.flags.direct-video %}
+    <video width="320" height="240" controls>
+      <source src="{% link {{ webm }} %}" type="video/webm">
+    </video>
   {% endif %}
 
-  {% if page.video %}
-    {% assign webm=page.url | replace_first: "/", "" | replace: ".html", ".webm" %}
-    {% if site.flags.direct-video %}
-      <video width="320" height="240" controls>
-        <source src="{% link {{ webm }} %}" type="video/webm">
-      </video>
-    {% endif %}
+  <div class="torrent-link">
+    {% capture torrent-file %}{{ webm | absolute_url | append: ".torrent" }}{% endcapture %}
+    <a href="{{ torrent-file }}">torrent</a>
+    |
+    <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a>
+  </div>
+{% endif %}
 
-    <div class="torrent-link">
-      {% capture torrent-file %}{{ webm | absolute_url | append: ".torrent" }}{% endcapture %}
-      <a href="{{ torrent-file }}">torrent</a>
-      |
-      <a href="/torrent.html?torrent={{ torrent-file | uri_escape }}">online webtorrent</a>
-    </div>
-  {% endif %}
+{{ content }}
 
-  {{ content }}
-</section>
-<section class="post-footer">
+<div class="post-footer">
   <p>
     {% include public-inbox.html %}
   </p>
-</section>
+</div>
-- 
cgit v1.2.3