aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_layouts/post.html71
-rw-r--r--styles.css4
2 files changed, 37 insertions, 38 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>
diff --git a/styles.css b/styles.css
index d48d35c..2faf8ff 100644
--- a/styles.css
+++ b/styles.css
@@ -50,7 +50,7 @@ nav ul li a {
/* Article bodies */
-section.header {
+div.header {
color: #555;
font-size: 14px;
font-style: italic;
@@ -90,7 +90,7 @@ footer li a {
margin-left: 5px;
}
-section.post-footer, div.footnotes {
+div.post-footer, div.footnotes {
border-top: 0.5px solid #555;
}