From f3cc5e337be28bcf5aed61cc4ae0165709316106 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 25 Dec 2014 09:34:53 -0800 Subject: [PATCH] Added disqus commenting to blog --- _config.yml | 4 ++-- sass/oscailte/base/_post.scss | 6 +++++- source/_includes/blog/post/article.html | 3 ++- source/_includes/blog/post/date.html | 4 ++-- source/_includes/blog/post/tags.html | 4 ++-- source/_includes/post/author.html | 2 +- source/_posts/2014-12-18-website-launched.markdown | 3 ++- 7 files changed, 16 insertions(+), 10 deletions(-) diff --git a/_config.yml b/_config.yml index 5bf1b2575ac..175f9128c14 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/sass/oscailte/base/_post.scss b/sass/oscailte/base/_post.scss index 2b577fbe4d6..e2805bd1916 100644 --- a/sass/oscailte/base/_post.scss +++ b/sass/oscailte/base/_post.scss @@ -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; + } } } diff --git a/source/_includes/blog/post/article.html b/source/_includes/blog/post/article.html index 4aa799ec947..94b0bbcc860 100644 --- a/source/_includes/blog/post/article.html +++ b/source/_includes/blog/post/article.html @@ -10,9 +10,10 @@ {% unless post.meta == false %}
{% 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 %} - + Comments {% endif %} diff --git a/source/_includes/blog/post/date.html b/source/_includes/blog/post/date.html index cf91e6bad51..34b93846492 100644 --- a/source/_includes/blog/post/date.html +++ b/source/_includes/blog/post/date.html @@ -7,9 +7,9 @@ {% capture was_updated %}{{ updated | size }}{% endcapture %} {% if has_date != '0' %} - {% capture time %}{% endcapture %} + {% capture time %}{% endcapture %} {% endif %} {% if was_updated != '0' %} - {% capture updated %}{% endcapture %} + {% capture updated %}{% endcapture %} {% else %}{% assign updated = false %}{% endif %} \ No newline at end of file diff --git a/source/_includes/blog/post/tags.html b/source/_includes/blog/post/tags.html index d1a69de9a71..1c6cf175c1a 100644 --- a/source/_includes/blog/post/tags.html +++ b/source/_includes/blog/post/tags.html @@ -1,6 +1,6 @@ {% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %} {% unless category == '0' %} -
+
    {% if post %} @@ -13,5 +13,5 @@ {% endfor %} {% endif %}
-
+ {% endunless %} \ No newline at end of file diff --git a/source/_includes/post/author.html b/source/_includes/post/author.html index 83dd6a89a71..96a10c510ab 100644 --- a/source/_includes/post/author.html +++ b/source/_includes/post/author.html @@ -5,4 +5,4 @@ {% else %} {% assign author = site.author %} {% endif %} -{% if author %}{% endif %} +{% if author %}{% endif %} diff --git a/source/_posts/2014-12-18-website-launched.markdown b/source/_posts/2014-12-18-website-launched.markdown index b69e79741ab..31e4e171b87 100644 --- a/source/_posts/2014-12-18-website-launched.markdown +++ b/source/_posts/2014-12-18-website-launched.markdown @@ -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).