tale/_includes/navigation.html
Michal Jirku d06b7677c8 Customize tale theme (& add sidenotes+footnotes).
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
2020-11-23 21:40:33 +01:00

13 lines
730 B
HTML

<nav class="nav">
<div class="nav-container">
<a href="{{ site.baseurl }}/">
<h2 class="nav-title"><img src="{{ '/assets/favicon-32x32.png' | prepend: site.baseurl }}" srcset="{{ '/assets/favicon-64x64.png' | prepend: site.baseurl }} 2x, {{ '/assets/favicon-96x96.png' | prepend: site.baseurl }} 3x, {{ '/assets/favicon-128x128.png' | prepend: site.baseurl }} 4x, {{ '/assets/favicon-256x256.png' | prepend: site.baseurl }} 8x"> {{ site.title }}</h2>
</a>
<ul>
<li><a href="{{ '/posts/' | prepend: site.baseurl }}">Posts</a></li>
<li><a href="{{ '/tags/' | prepend: site.baseurl }}">Tags</a></li>
<li><a href="{{ '/about/' | prepend: site.baseurl }}">About</a></li>
</ul>
</div>
</nav>