jorge/docs/includes/nav.html
Facundo Olano c02e1fc91e
Add page.previous and page.next liquid variables (#22)
* sort pages

* rename tutorial files to enforce an order

* add prev next props to posts

* test previous next

* prevent nested recursive links between posts

* add a next/prev footer

* make prev/next work as expected for both pages and posts

* remove sort by index

* bold current section in nav
2024-03-02 16:16:40 -03:00

12 lines
517 B
HTML

<nav>
<a href="/">{{ site.config.name }}</a>
{% assign section = page.path|split:"/" | first %}
<a {% if section == "tutorial" %}style="font-weight:bold"{% endif %} href="/tutorial/">tutorial</a>
<a {% if section == "blog" %}style="font-weight:bold"{% endif %} href="/blog/">devlog</a>
<div class="nav-right hidden-mobile">
<a href="https://github.com/facundoolano/jorge">github</a>
<a href="https://github.com/facundoolano/jorge/releases/latest">download</a>
</div>
</nav>