summaryrefslogtreecommitdiffstats
path: root/source/_includes/banner.html
diff options
context:
space:
mode:
Diffstat (limited to 'source/_includes/banner.html')
-rw-r--r--source/_includes/banner.html12
1 files changed, 10 insertions, 2 deletions
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