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
1.6 KiB
1.6 KiB
layout | title | permalink |
---|---|---|
default | Posts | /posts/ |
{{ page.title }}
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}{{ this_year }}{% endif %}
{% unless forloop.last %}
{% if this_year != next_year %}{{ next_year }}{% endif %}
{% endunless %}
{% endfor %}
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
{{ this_year }}
{% endif %}
{{ post.title }}
{% if forloop.last %}