home-assistant.io/source/_includes/asides/cookbook_navigation.html
2016-02-13 00:02:44 -08:00

28 lines
870 B
HTML

<section class="aside-module grid__item one-whole lap-one-half">
{% include edit_github.html %}
{% assign cookbook = site.cookbook | sort: 'title' %}
<div class='section'>
<a href='/cookbook'>Back to the cookbook</a>
</div>
<div class='section'>
<h1 class="title delta">{{page.ha_category}}</h1>
<ul class='divided'>
{% for recipe in cookbook %}
{% if recipe.ha_category == page.ha_category %}
<li>
{% if recipe.url == page.url %}
{{recipe.title}}
{% elsif recipe.ha_external_link %}
<a href='{{recipe.ha_external_link}}'>{{recipe.title}} <i class="icon-external-link"></i></a>
{% else %}
<a href='{{recipe.url}}'>{{recipe.title}}</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</section>