aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-01 12:50:07 -0300
committerEuAndreh <eu@euandre.org>2021-01-01 12:50:07 -0300
commiteef0fa33867a56ea08aedeb703058c8c0e1493fb (patch)
tree67bb2e9eca4484abc63e5ec35e311f02669aad29 /_layouts/post.html
parentRemove <article> tag from post.html layout, already present in default.html (diff)
downloadeuandre.org-eef0fa33867a56ea08aedeb703058c8c0e1493fb.tar.gz
euandre.org-eef0fa33867a56ea08aedeb703058c8c0e1493fb.tar.xz
post.html: Remove <section> tags
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html71
1 files changed, 35 insertions, 36 deletions
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>