Tweak sidebar and twitter link
This commit is contained in:
parent
0181f1b5b3
commit
39e5eb9441
13 changed files with 51 additions and 91 deletions
|
@ -5,7 +5,8 @@
|
|||
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>
|
||||
<li><a href='/demo/'>Try the online demo</a></li>
|
||||
<li><a class="twitter-follow-button" href="https://twitter.com/Home_Assistant">Follow Home Assistant on Twitter</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.async=true;js.src='//platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<ul class="divided">
|
||||
{% assign categories = site.categories | sort %}
|
||||
{% for category in categories %}
|
||||
<li><a href="/blog/categories/{{ category | first }}/">{{ category | first | replace: '-', ' '}}</a></li>
|
||||
<li><a href="/blog/categories/{{ category | first | downcase }}/">{{ category | first | replace: '-', ' '}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{% if site.social.github.user %}
|
||||
<section id="github-repos" class="aside-module grid__item one-whole lap-one-half">
|
||||
<h1 class="title delta">
|
||||
GitHub Repos
|
||||
{% if site.social.github.show_profile_link or site.github_show_profile_link %}
|
||||
<small class="pull-right">
|
||||
<a class="btn" href="//github.com/{{ site.social.github.user }}" title="@{{ site.social.github.user }} on GitHub" target="_blank">
|
||||
<i class="icon-external-link"></i>
|
||||
</a>
|
||||
</small>
|
||||
{% endif %}
|
||||
</h1>
|
||||
<ul id="gh_repos" class="divided">
|
||||
<li class="loading">
|
||||
<i class="icon-spinner icon-spin"></i>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
|
@ -1,4 +1,5 @@
|
|||
<section id="site-search" class="aside-module grid__item one-whole lap-one-half">
|
||||
<h1 class="title delta">Search</h1>
|
||||
<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"/>
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{% unless site.social.visible == false %}
|
||||
<section class="social aside-module grid__item one-whole lap-one-half">
|
||||
<h1 class="title delta">
|
||||
{% if site.social.title %}{{ site.social.title }}{% else %}Follow me!{% endif %}
|
||||
</h1>
|
||||
<ul class="unstyled">
|
||||
{% if site.social.adn %}<li><a class="adn" rel="me" href="//alpha.app.net/{{ site.social.adn }}"><i class="icon-adn"></i> App.net</a></li>{% endif %}
|
||||
{% if site.social.dribbble %}<li><a class="dribbble" href="//dribbble.com/{{ site.social.dribbble }}"><i class="icon-dribbble"></i> Dribbble</a></li>{% endif %}
|
||||
{% if site.social.github.user %}<li><a class="github" href="//github.com/{{ site.social.github.user }}"><i class="icon-github"></i> Github</a></li>{% endif %}
|
||||
{% if site.social.facebook.user %}<li><a class="facebook" href="//facebook.com/{{ site.social.facebook.user }}"><i class="icon-facebook-sign"></i> Facebook</a></li>{% endif %}
|
||||
{% if site.social.googleplus %}<li><a class="gplus" href="//plus.google.com/{{ site.social.googleplus }}"><i class="icon-google-plus-sign"></i> Google+</a></li>{% endif %}
|
||||
{% if site.social.linkedin %}<li><a class="linkedin" href="//linkedin.com/in/{{ site.social.linkedin }}"><i class="icon-linkedin-sign"></i> LinkedIn</a></li>{% endif %}
|
||||
{% if site.social.pinterest %}<li><a class="pinterest" href="//pinterest.com/{{ site.social.pinterest }}"><i class="icon-pinterest"></i> Pinterest</a></li>{% endif %}
|
||||
{% if site.social.stackoverflow %}<li><a class="stackoverflow" href="//stackoverflow.com/users/{{ site.social.stackoverflow }}"><i class="icon-stackexchange"></i> StackOverflow</a></li>{% endif %}
|
||||
{% if site.social.twitter.user %}<li><a class="twitter" href="//twitter.com/{{ site.social.twitter.user }}"><i class="icon-twitter"></i> Twitter</a></li>{% endif %}
|
||||
{% if site.social.youtube %}<li><a class="youtube" href="//youtube.com/user/{{ site.social.youtube }}"><i class="icon-youtube"></i> YouTube</a></li>{% endif %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endunless %}
|
|
@ -1,17 +0,0 @@
|
|||
{% if site.social.twitter.user and site.social.twitter.widget.is_shown %}
|
||||
<section id="twitter-timeline" class="aside-module grid__item one-whole lap-one-half">
|
||||
<h1 class="title delta">
|
||||
Latest Tweets
|
||||
{% if site.social.twitter.widget.show_profile_link %}
|
||||
<small class="pull-right">
|
||||
<a class="btn" href="//twitter.com/{{ site.social.twitter.user }}" title="@{{ site.social.twitter.user }} on Twitter" target="_blank">
|
||||
<i class="icon-external-link"></i>
|
||||
</a>
|
||||
</small>
|
||||
{% endif %}
|
||||
</h1>
|
||||
|
||||
<a class="twitter-timeline" data-dnt="true" href="//twitter.com/{{ site.social.twitter.user }}" data-widget-id="{{ site.social.twitter.widget.widget_id }}" data-link-color="#049cdb" data-tweet-limit="{{ site.social.twitter.widget.tweet_count }}" data-chrome="noheader nofooter transparent noscrollbar">Tweets by @{{ site.social.twitter.user }}</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
</section>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue