aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-01 12:43:27 -0300
committerEuAndreh <eu@euandre.org>2021-01-01 12:43:27 -0300
commit35eed5bea57d1e99a255d473afcaed89e86296d0 (patch)
treeeac1b6b7a304c3924ad1d7fcefdc722fb3fe43e8 /_layouts/post.html
parentRemove _layouts/page.html, use 'default' layout for pages (diff)
downloadeuandre.org-35eed5bea57d1e99a255d473afcaed89e86296d0.tar.gz
euandre.org-35eed5bea57d1e99a255d473afcaed89e86296d0.tar.xz
Remove <article> tag from post.html layout, already present in default.html
Diffstat (limited to '')
-rw-r--r--_layouts/post.html86
1 files changed, 42 insertions, 44 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index afa66df..8aafb9d 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,54 +1,52 @@
---
layout: default
---
-<article>
+<section class="header">
+ {{ site.t.posted_on[page.lang] }}
+ {% include i18n-date.html date=page.date %}
+</section>
+{% if page.updated_at %}
<section class="header">
- {{ site.t.posted_on[page.lang] }}
- {% include i18n-date.html date=page.date %}
+ {{ site.t.updated_at[page.lang] }}
+ {% include i18n-date.html date=page.updated_at %}
</section>
- {% if page.updated_at %}
- <section class="header">
- {{ site.t.updated_at[page.lang] }}
- {% include i18n-date.html date=page.updated_at %}
- </section>
- {% endif %}
- <section>
-
- {% if page.audio %}
- {% assign ogg=page.url | replace_first: "/", "" | replace: ".html", ".ogg" %}
- <audio controls>
- <source src="{% link {{ ogg }} %}" type="audio/ogg">
- </audio>
+{% endif %}
+<section>
- <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.audio %}
+ {% assign ogg=page.url | replace_first: "/", "" | replace: ".html", ".ogg" %}
+ <audio controls>
+ <source src="{% link {{ ogg }} %}" type="audio/ogg">
+ </audio>
- {% 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 %}{{ 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 %}
- <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>
+ {% 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 %}
- {{ content }}
- </section>
- <section class="post-footer">
- <p>
- {% include public-inbox.html %}
- </p>
- </section>
-</article>
+ <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 }}
+</section>
+<section class="post-footer">
+ <p>
+ {% include public-inbox.html %}
+ </p>
+</section>