mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-03 17:48:59 +00:00
28 lines
870 B
HTML
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>
|