Upgrade blog sidebar

This commit is contained in:
Paulus Schoutsen 2015-12-17 19:00:01 -08:00
parent 53a3209449
commit 8de91b31ee
11 changed files with 43 additions and 42 deletions

View file

@ -0,0 +1,11 @@
<section class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">About Home Assistant</h1>
<ul class="divided">
<li>
Home Assistant is an open-source home automation platform running on Python 3. Track and control all devices at home and automate control.
</li>
<li><a href='/getting-started/'>Get started with Home Assistant</a></li>
<li><a href='/demo/'>Open the online demo</a></li>
<li><a href='https://github.com/balloob/home-assistant/'>Browse code on GitHub</a></li>
</ul>
</section>

View file

@ -0,0 +1,9 @@
<section class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">Categories</h1>
<ul class="divided">
{% assign categories = site.categories | sort %}
{% for category in categories %}
<li><a href="/blog/categories/{{ category | first }}/">{{ category | first | replace: '-', ' '}}</a></li>
{% endfor %}
</ul>
</section>

View file

@ -1,17 +0,0 @@
{% if site.delicious_user %}
<section class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">
Delicious
<small class="pull-right">
<a class="btn" href="//delicious.com/{{ site.delicious_user }}" title="@{{ site.delicious_user }} on Delicious" target="_blank">
<i class="icon-external-link"></i>
</a>
</small>
</h1>
<div id="delicious">
<span class="loading">
<i class="icon-spinner icon-spin"></i>
</span>
</div>
</section>
{% endif %}

View file

@ -1,3 +0,0 @@
{% comment %}
This section intentionally blank.
{% endcomment %}

View file

@ -1,17 +0,0 @@
{% if site.pinboard_user %}
<section id="pinboard" class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">
My Pinboard
<small class="pull-right">
<a class="btn" href="//pinboard.in/u:{{ site.pinboard_user }}" title="My Pinboard Bookmarks" target="_blank">
<i class="icon-external-link"></i>
</a>
</small>
</h1>
<ul class="divided" id="pinboard_linkroll">
<li class="loading">
<i class="icon-spinner icon-spin"></i>
</li>
</ul>
</section>
{% endif %}

View file

@ -1,5 +1,5 @@
<section id="recent-posts" class="aside-module grid__item one-whole lap-one-half">
<h1 class="title delta">Other Posts</h1>
<h1 class="title delta">Recent Posts</h1>
<ul class="divided">
{% for post in site.posts limit: site.recent_posts %}
{% if post.url != page.url %}

View file

@ -0,0 +1,7 @@
<section id="site-search" class="aside-module grid__item one-whole lap-one-half">
<form action="{{ site.simple_search }}" method="get">
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
<input class="search" type="text" name="q" results="0" placeholder="Search home-assistant.io"/>
<button type="submit"><i class="icon-search"></i></button>
</form>
</section>