From 7688d26354567ac7ed1c6001fa484d0438900559 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:04:19 +0800 Subject: comment --- sass/_parts.scss | 1 + sass/parts/_comment.scss | 11 +++++++++++ source/_includes/after_footer.html | 1 + source/_includes/disqus.html | 21 +++++++++++++++++++++ source/_layouts/post.html | 4 ++-- 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 sass/parts/_comment.scss create mode 100644 source/_includes/disqus.html diff --git a/sass/_parts.scss b/sass/_parts.scss index 014c8c3..5c88ad5 100644 --- a/sass/_parts.scss +++ b/sass/_parts.scss @@ -2,5 +2,6 @@ @import "parts/banner"; @import "parts/index"; @import "parts/article"; +@import "parts/comment"; @import "parts/footer"; @import "parts/syntax"; \ No newline at end of file diff --git a/sass/parts/_comment.scss b/sass/parts/_comment.scss new file mode 100644 index 0000000..f98c014 --- /dev/null +++ b/sass/parts/_comment.scss @@ -0,0 +1,11 @@ +#comment{ + padding: 30px 0; + border-top: 1px solid $light-shadow; + border-bottom: 1px solid $border; + h1.title{ + font-size: 25px; + font-weight: 300; + line-height: 35px; + margin-bottom: 20px; + } +} \ No newline at end of file diff --git a/source/_includes/after_footer.html b/source/_includes/after_footer.html index 9e4e391..cc756a0 100644 --- a/source/_includes/after_footer.html +++ b/source/_includes/after_footer.html @@ -1 +1,2 @@ +{% include disqus.html %} {% include custom/after_footer.html %} \ No newline at end of file diff --git a/source/_includes/disqus.html b/source/_includes/disqus.html new file mode 100644 index 0000000..eb30877 --- /dev/null +++ b/source/_includes/disqus.html @@ -0,0 +1,21 @@ +{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %} +{% if site.disqus_short_name and page.comments != false %} + +{% endif %} diff --git a/source/_layouts/post.html b/source/_layouts/post.html index fbc6ef6..fac9a41 100644 --- a/source/_layouts/post.html +++ b/source/_layouts/post.html @@ -4,7 +4,7 @@ single: true ---
{% include article.html %}
-
-

留言

+
+

留言

{% include post/disqus_thread.html %}
\ No newline at end of file -- cgit v1.1-2-g2b99