mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Added disqus commenting to blog
This commit is contained in:
parent
0d9fb09ff2
commit
f3cc5e337b
@ -92,8 +92,8 @@ delicious_user:
|
|||||||
delicious_count: 3
|
delicious_count: 3
|
||||||
|
|
||||||
# Disqus Comments
|
# Disqus Comments
|
||||||
disqus_short_name:
|
disqus_short_name: home-assistant
|
||||||
disqus_show_comment_count: false
|
disqus_show_comment_count: true
|
||||||
|
|
||||||
# Google Analytics
|
# Google Analytics
|
||||||
google_analytics_tracking_id: UA-57927901-1
|
google_analytics_tracking_id: UA-57927901-1
|
||||||
|
@ -69,8 +69,12 @@ article {
|
|||||||
$meta-color: $site-background;
|
$meta-color: $site-background;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 0 0 5px;
|
padding: 0 0 5px;
|
||||||
> time {
|
> * {
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,9 +10,10 @@
|
|||||||
{% unless post.meta == false %}
|
{% unless post.meta == false %}
|
||||||
<div class="meta clearfix">
|
<div class="meta clearfix">
|
||||||
{% include blog/post/date.html %}{{ time }}
|
{% include blog/post/date.html %}{{ time }}
|
||||||
|
{% include post/author.html %}
|
||||||
{% include blog/post/tags.html %}
|
{% include blog/post/tags.html %}
|
||||||
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
|
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
|
||||||
<a class="pull-right" href="{% if index %}{{ site.url }}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">
|
<a class="pull-right" href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">
|
||||||
Comments <i class="icon-comment"></i>
|
Comments <i class="icon-comment"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
{% capture was_updated %}{{ updated | size }}{% endcapture %}
|
{% capture was_updated %}{{ updated | size }}{% endcapture %}
|
||||||
|
|
||||||
{% if has_date != '0' %}
|
{% if has_date != '0' %}
|
||||||
{% capture time %}<time class="pull-left" datetime="{{ date | datetime | date_to_xmlschema }}" pubdate{% if updated %} data-updated="true"{% endif %}><i class="icon-calendar"></i> {{ date_formatted }}</time>{% endcapture %}
|
{% capture time %}<time datetime="{{ date | datetime | date_to_xmlschema }}" pubdate{% if updated %} data-updated="true"{% endif %}><i class="icon-calendar"></i> {{ date_formatted }}</time>{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if was_updated != '0' %}
|
{% if was_updated != '0' %}
|
||||||
{% capture updated %}<time class="pull-left" datetime="{{ updated | datetime | date_to_xmlschema }}" class="updated">Updated {{ updated_formatted }}</time>{% endcapture %}
|
{% capture updated %}<time datetime="{{ updated | datetime | date_to_xmlschema }}" class="updated">Updated {{ updated_formatted }}</time>{% endcapture %}
|
||||||
{% else %}{% assign updated = false %}{% endif %}
|
{% else %}{% assign updated = false %}{% endif %}
|
@ -1,6 +1,6 @@
|
|||||||
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
|
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
|
||||||
{% unless category == '0' %}
|
{% unless category == '0' %}
|
||||||
<div class="pull-left">
|
<span>
|
||||||
<i class="icon-tags"></i>
|
<i class="icon-tags"></i>
|
||||||
<ul class="tags unstyled">
|
<ul class="tags unstyled">
|
||||||
{% if post %}
|
{% if post %}
|
||||||
@ -13,5 +13,5 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</span>
|
||||||
{% endunless %}
|
{% endunless %}
|
@ -5,4 +5,4 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{% assign author = site.author %}
|
{% assign author = site.author %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if author %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% endif %}
|
{% if author %}<span class="byline author vcard"><i class='icon-user'></i> {{ author }}</span>{% endif %}
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
layout: post
|
layout: post
|
||||||
title: "Website launched!"
|
title: "Website launched!"
|
||||||
date: 2014-12-18 23:24:45 -0800
|
date: 2014-12-18 23:24:45 -0800
|
||||||
|
date_formatted: "December 18, 2014"
|
||||||
comments: true
|
comments: true
|
||||||
categories: website
|
categories: website
|
||||||
author: Paulus
|
author: "Paulus Schoutsen"
|
||||||
---
|
---
|
||||||
|
|
||||||
I finally took the time to setup a simple website to help people getting started with Home Assistant. The process was super smooth thanks to the great tools [Jekyll](http://jekyllrb.com) and [Octopress](http://octopress.org) and the great services [GitHub Pages](https://pages.github.com) and [CloudFlare](https://cloudflare.com).
|
I finally took the time to setup a simple website to help people getting started with Home Assistant. The process was super smooth thanks to the great tools [Jekyll](http://jekyllrb.com) and [Octopress](http://octopress.org) and the great services [GitHub Pages](https://pages.github.com) and [CloudFlare](https://cloudflare.com).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user