aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-03 05:03:43 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-03 05:05:48 +0300
commit84da41dffc9392ea38b975ae0d493c16f2ad4e80 (patch)
tree5df7a2e59bffdbaf48f822e876a3a94ba99884c0
parent03cf4f64761fb3f33863d6311e2aa6f3205caab1 (diff)
downloadpopov.link-84da41dffc9392ea38b975ae0d493c16f2ad4e80.tar.xz
popov.link-84da41dffc9392ea38b975ae0d493c16f2ad4e80.zip
The post template has been rewritten
Signed-off-by: Valentin Popov <valentineus@gmail.com>
-rw-r--r--_layouts/post.html42
1 files changed, 10 insertions, 32 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index b511563..17e18f4 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,52 +2,30 @@
layout: default
---
+<!-- Content of the post -->
<div class="post">
- <div class="post-info">
- <span>Written by</span>
- {% if page.author %}
- {{ page.author }}
- {% else %}
- {{ site.author.name }}
- {% endif %}
-
- {% if page.date %}
- <br />
- <span>on&nbsp;</span><time datetime="{{ page.date }}">{{ page.date | date: "%B %d, %Y" }}</time> {% endif %}
- </div>
-
<h1 class="post-title">{{ page.title }}</h1>
- <div class="post-line"></div>
-
+ <span class="post-date">{{ page.date | date_to_long_string }}</span>
{{ content }}
-
</div>
-{% if page.comments %}
+<!-- Comments on the post -->
+<div class="comments">
<div id="disqus_thread"></div>
<script type="text/javascript" defer>
- var disqus_config = function () {
+ var disqus_config = function() {
+ this.page.identifier = '{{ page.url | relative_url }}';
+ this.page.title = '{{ page.title }}';
this.page.url = '{{ page.url | absolute_url }}';
- this.page.identifier = '{{ page.url | absolute_url }}';
};
(function() {
- var d = document, s = d.createElement('script');
- s.src = 'https://valentineus-link.disqus.com/embed.js';
+ var d = document,
+ s = d.createElement('script');
+ s.src = '//valentineus-link.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
-{% endif %}
-
-<div class="pagination">
- {% if page.next.url %}
- <a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">&#8592;</a>
- {% endif %}
-
- {% if page.previous.url %}
- <a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
- {% endif %}
- <a href="#" class="top">Top</a>
</div>