summaryrefslogtreecommitdiffstats
path: root/source/_includes
diff options
context:
space:
mode:
authorSkyArrow <tommy351@gmail.com>2012-01-24 18:24:40 +0100
committerSkyArrow <tommy351@gmail.com>2012-01-24 18:24:40 +0100
commitee892b908a7e1b3b8c1fccb1c4d8b8d54c94f174 (patch)
tree2c4fe92f279f887bf30f5dcdd236e1679e1b4525 /source/_includes
parentf54c3bdd1563d6bbd398c10ad0722396fa2ae75d (diff)
downloadoctopress-theme-jeyzu-ee892b908a7e1b3b8c1fccb1c4d8b8d54c94f174.zip
octopress-theme-jeyzu-ee892b908a7e1b3b8c1fccb1c4d8b8d54c94f174.tar.gz
use site config
Diffstat (limited to 'source/_includes')
-rw-r--r--source/_includes/article.html6
-rw-r--r--source/_includes/banner.html12
-rw-r--r--source/_includes/custom/after_footer.html3
-rw-r--r--source/_includes/header.html14
-rw-r--r--source/_includes/post/sharing.html8
5 files changed, 32 insertions, 11 deletions
diff --git a/source/_includes/article.html b/source/_includes/article.html
index 347a52d..ddb24f3 100644
--- a/source/_includes/article.html
+++ b/source/_includes/article.html
@@ -3,12 +3,12 @@
<div class="entry">
{{ content | excerpt }}
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
- {% if excerpted == 'true' %}<a href="{{ root_url }}{{ post.url }}" class="more-link">閱讀全文</a>{% endif %}
+ {% if excerpted == 'true' %}<a href="{{ root_url }}{{ post.url }}" class="more-link">{{ site.excerpt_link }}</a>{% endif %}
</div>
<div class="meta">
<div class="date">{% include post/date.html %}{{ time }}</div>
<div class="tags">{% include post/categories.html %}</div>
- {% if site.disqus_short_name and post.comments == true %}
+ {% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %}
<div class="comments"><a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">留言</a></div>
{% endif %}
</div>
@@ -18,7 +18,7 @@
<div class="meta">
<div class="date">{% include post/date.html %}{{ time }}</div>
<div class="tags">{% include post/categories.html %}</div>
- {% if site.disqus_short_name and page.comments == true %}
+ {% if site.disqus_short_name and page.comments == true and site.disqus_show_comment_count == true %}
<div class="comments"><a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">留言</a></div>
{% endif %}
</div>
diff --git a/source/_includes/banner.html b/source/_includes/banner.html
index 5839bd4..e2493c9 100644
--- a/source/_includes/banner.html
+++ b/source/_includes/banner.html
@@ -1,7 +1,15 @@
+{% if site.twitter_user %}
<div id="banner" class="inner">
<div class="container">
<ul class="feed"></ul>
</div>
- <small><a href="http://twitter.com/tommy351">tommy351</a> @ <a href="http://twitter.com">Twitter</a></small>
+ <small><a href="http://twitter.com/{{ site.twitter_user }}">{{ site.twitter_user }}</a> @ <a href="http://twitter.com">Twitter</a></small>
<div class="loading">載入中...</div>
-</div> \ No newline at end of file
+</div>
+<script src="{{ root_url }}/javascripts/twitter.js"></script>
+<script type="text/javascript">
+ (function($){
+ $('#banner').getTwitterFeed('{{ site.twitter_user }}', {{ site.twitter_tweet_count }});
+ })(jQuery);
+</script>
+{% endif %} \ No newline at end of file
diff --git a/source/_includes/custom/after_footer.html b/source/_includes/custom/after_footer.html
index 50003bb..1ea5c22 100644
--- a/source/_includes/custom/after_footer.html
+++ b/source/_includes/custom/after_footer.html
@@ -2,5 +2,4 @@
<script src="{{ root_url }}/javascripts/external.js"></script>
<script src="{{ root_url }}/javascripts/navigation.js"></script>
<script src="{{ root_url }}/javascripts/jquery.fancybox.pack.js"></script>
-<script src="{{ root_url }}/javascripts/caption.js"></script>
-<script src="{{ root_url }}/javascripts/twitter.js"></script> \ No newline at end of file
+<script src="{{ root_url }}/javascripts/caption.js"></script> \ No newline at end of file
diff --git a/source/_includes/header.html b/source/_includes/header.html
index ac544be..234ffae 100644
--- a/source/_includes/header.html
+++ b/source/_includes/header.html
@@ -6,10 +6,18 @@
<input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}">
</form>
<div class="social right">
- <a href="http://www.facebook.com/tommy351" title="Facebook">Facebook</a>
- <a href="https://plus.google.com/105931860008509594725" title="Google+">Google+</a>
- <a href="http://twitter.com/tommy351" title="Twitter">Twitter</a>
+ {% if site.facebook_user %}
+ <a href="http://www.facebook.com/{{ site.facebook_user }}" title="Facebook">Facebook</a>
+ {% endif %}
+ {% if site.googleplus_user %}
+ <a href="https://plus.google.com/{{ site.googleplus_user }}" title="Google+">Google+</a>
+ {% endif %}
+ {% if site.twitter_user %}
+ <a href="http://twitter.com/{{ site.twitter_user }}" title="Twitter">Twitter</a>
+ {% endif %}
+ {% if site.subscribe_rss %}
<a href="{{ site.subscribe_rss }}" title="RSS">RSS</a>
+ {% endif %}
</div>
</div>
{% include custom/header.html %} \ No newline at end of file
diff --git a/source/_includes/post/sharing.html b/source/_includes/post/sharing.html
index d41d1e0..b099de9 100644
--- a/source/_includes/post/sharing.html
+++ b/source/_includes/post/sharing.html
@@ -1,8 +1,14 @@
<div class="share">
<div class="addthis_toolbox addthis_default_style ">
+ {% if site.facebook_like %}
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
+ {% endif %}
+ {% if site.twitter_tweet_button %}
<a class="addthis_button_tweet"></a>
- <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
+ {% endif %}
+ {% if site.google_plus_one %}
+ <a class="addthis_button_google_plusone" g:plusone:size="{{ site.google_plus_one_size }}"></a>
+ {% endif %}
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eb4a0c47196e907"></script>