Add categories to cookbook

This commit is contained in:
Paulus Schoutsen 2016-02-07 14:21:44 -08:00
parent f5a7217b3f
commit a06217bbee
17 changed files with 273 additions and 20 deletions

View file

@ -1,24 +1,39 @@
---
layout: page
title: "Configuration Cookbook"
description: "Community maintained list of configuration exmaples."
title: "Cookbook"
description: "Community maintained list of different ways to use Home Assistant."
date: 2015-10-08 19:05
sidebar: false
comments: false
sharing: true
footer: true
regenerate: true
hide_github_edit: true
---
This is a community currated list of `configuration.yaml` examples. New recipes can be added via the [home-assistant.io repository](https://github.com/balloob/home-assistant.io/tree/master/source/_cookbook).
This is a community currated list of different ways to use Home Assistant. New recipes can be added via the [home-assistant.io repository](https://github.com/balloob/home-assistant.io/tree/master/source/_cookbook).
{% for recipe in site.cookbook %}
* [{{recipe.title}}]({{recipe.url}})
{% endfor %}
{% assign cookbook = site.cookbook | sort: 'title' %}
{% assign categories = cookbook | sort: 'ha_category' | map: 'ha_category' | uniq %}
### {% linkable_title Configuration.yaml Gists %}
{% for category in categories %}
### {% linkable_title {{ category }} %}
{% if category == 'Automation Examples' %}
{% elsif category == 'Full configuration.yaml examples' %}
Some users keep a public scrubbed copy of their `configuration.yaml` to learn from.
{% elsif category == '' %}
- [Configuration.yaml by Carlo Costanzo](https://gist.github.com/CCOSTAN/9934de973a293b809868)
- [Configuration.yaml by happyleavesaoc](https://github.com/happyleavesaoc/my-home-automation/tree/master/homeassistant)
{% endif %}
{% for recipe in site.cookbook %}
{% if recipe.ha_category == category %}
{% if recipe.ha_external_link %}
* [{{recipe.title}}]({{recipe.ha_external_link}})
{% else %}
* [{{recipe.title}}]({{recipe.url}})
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}