Skip to content

Commit

Permalink
Fix tutorial filenames and update Liquid template syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxia0 committed Feb 18, 2018
1 parent 6515732 commit 7bf2870
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions _layouts/learn.html
Expand Up @@ -40,17 +40,19 @@ <h2>Guides</h2>
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{% if page.kind == 'tutorial' %} {% if page.kind == 'tutorial' %}
<nav> <nav>
{% assign has_previous=page.previous.url and page.previous.url contains '/learn/' %} {% assign previous=page.previous.url %}
{% assign has_next=page.next.url and page.next.url contains '/learn/' %} {% assign next=page.next.url %}
{% if has_previous %} {% if previous and previous contains 'learn' %}
<a href="{{ page.previous.url }}"> <a href="{{ page.previous.url }}">
« {{ page.previous.title }} « {{ page.previous.title }}
</a> </a>
{% endif %} {% endif %}
{% if has_previous and has_next %}
{% if previous and next %}
&mdash; &mdash;
{% endif %} {% endif %}
{% if has_next %}
{% if next and next contains 'learn' %}
<a href="{{ page.next.url }}"> <a href="{{ page.next.url }}">
{{ page.next.title }} » {{ page.next.title }} »
</a> </a>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7bf2870

Please sign in to comment.