From 7688d26354567ac7ed1c6001fa484d0438900559 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:04:19 +0800 Subject: comment --- source/_includes/after_footer.html | 1 + source/_includes/disqus.html | 21 +++++++++++++++++++++ source/_layouts/post.html | 4 ++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 source/_includes/disqus.html (limited to 'source') 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.2.3