Skip to content

Commit

Permalink
Don't load twitter feed JS unless displaying a feed.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Dec 23, 2010
1 parent a76eb9a commit 6f83499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/_layouts/page.html
Expand Up @@ -14,7 +14,9 @@
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script><![endif]-->
<script src="/javascripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="/javascripts/paging_keys.js" type="text/javascript"></script>
{% if page.twitter_feed %}
<script src="/javascripts/jquery.twitter.js" type="text/javascript"></script>
{% endif %}
<script src="/javascripts/application.js" type="text/javascript"></script>
<style>article, aside, dialog, figure, footer, header, hgroup, menu, nav, section { display: block; }</style>

Expand Down
1 change: 1 addition & 0 deletions web/index.html
@@ -1,5 +1,6 @@
---
layout: page
twitter_feed: true
---
<body class='about index' id='about_index'>
{% include home_header.html %}
Expand Down

0 comments on commit 6f83499

Please sign in to comment.