mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-22 02:46:49 +00:00
27 lines
805 B
HTML
27 lines
805 B
HTML
<section class="aside-module grid__item one-whole lap-one-half">
|
|
{% assign cookbook = site.cookbook | sort_natural: '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>
|