mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +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
|
||||
|
||||
# Disqus Comments
|
||||
disqus_short_name:
|
||||
disqus_show_comment_count: false
|
||||
disqus_short_name: home-assistant
|
||||
disqus_show_comment_count: true
|
||||
|
||||
# Google Analytics
|
||||
google_analytics_tracking_id: UA-57927901-1
|
||||
|
@ -69,8 +69,12 @@ article {
|
||||
$meta-color: $site-background;
|
||||
font-size: 12px;
|
||||
padding: 0 0 5px;
|
||||
> time {
|
||||
> * {
|
||||
margin-right: 20px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,9 +10,10 @@
|
||||
{% unless post.meta == false %}
|
||||
<div class="meta clearfix">
|
||||
{% include blog/post/date.html %}{{ time }}
|
||||
{% include post/author.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 %}
|
||||
<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>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
@ -7,9 +7,9 @@
|
||||
{% capture was_updated %}{{ updated | size }}{% endcapture %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
{% 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 %}
|
@ -1,6 +1,6 @@
|
||||
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
|
||||
{% unless category == '0' %}
|
||||
<div class="pull-left">
|
||||
<span>
|
||||
<i class="icon-tags"></i>
|
||||
<ul class="tags unstyled">
|
||||
{% if post %}
|
||||
@ -13,5 +13,5 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</span>
|
||||
{% endunless %}
|
@ -5,4 +5,4 @@
|
||||
{% else %}
|
||||
{% assign author = site.author %}
|
||||
{% 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
|
||||
title: "Website launched!"
|
||||
date: 2014-12-18 23:24:45 -0800
|
||||
date_formatted: "December 18, 2014"
|
||||
comments: true
|
||||
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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user