d06b7677c8
This is a large-ish commit that adds bunch of features to the base
"tale" theme forked from https://github.com/chesterhow/tale at de5cd20
.
The changes:
- custom footer
- support for sidenotes, original taken from:
https://blog.jkl.gg/jekyll-footnote-tufte-sidenote/
- logo at the top of the website
- date format is %Y-%m-%d
- The "written by" in article is only shown when article's author
differs from site author
- Pages subpage shows list of posts sorted by years
44 lines
995 B
HTML
44 lines
995 B
HTML
---
|
|
layout: default
|
|
---
|
|
|
|
<div class="post">
|
|
<div class="post-info">
|
|
{% if page.author or page.date %}
|
|
<span>Written</span>
|
|
{% if page.author %}
|
|
<span>by</span>
|
|
{% if page.author %}
|
|
{{ page.author }}
|
|
{% else %}
|
|
{{ site.author.name }}
|
|
{% endif %}
|
|
<br>
|
|
{% endif %}
|
|
|
|
{% if page.date %}
|
|
<span>on </span><time datetime="{{ page.date }}">{{ page.date | date: "%Y-%m-%d" }}</time>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
<h1 class="post-title">{{ page.title }}</h1>
|
|
<div class="post-line"></div>
|
|
|
|
{{ content }}
|
|
</div>
|
|
|
|
{% if page.comments %}
|
|
{% include disqus_comments.html %}
|
|
{% endif %}
|
|
|
|
<div class="pagination">
|
|
{% if page.next.url %}
|
|
<a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">←</a>
|
|
{% endif %}
|
|
{% if page.previous.url %}
|
|
<a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">→</a>
|
|
{% endif %}
|
|
|
|
<a href="#" class="top">⇈</a>
|
|
</div>
|