Permalink
Browse files

Add view port, clean up haml.

  • Loading branch information...
1 parent a61adb4 commit 2346e36c0cb7d0f9b06cbb00e6174fad59a3bf7b @funkaoshi committed Feb 23, 2010
Showing with 12 additions and 10 deletions.
  1. BIN .DS_Store
  2. +2 −0 .gitignore
  3. +0 −9 views/_analytics.haml
  4. +10 −1 views/index.haml
View
Binary file not shown.
View
@@ -0,0 +1,2 @@
+cache
+tmp
@@ -1,9 +0,0 @@
-- if @@analytics_token
- :javascript
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- :javascript
- try {
- var pageTracker = _gat._getTracker("#{@@analytics_token}");
- pageTracker._trackPageview();
- } catch(err) {}
View
@@ -4,6 +4,7 @@
%meta(charset='utf-8')
%title I Shoot Film
%link(rel='stylesheet' href='/site.css' type='text/css' media='screen' title='default style sheet')
+ %meta(name='viewport' content='width=680px')
%body
%header
%h1 I Shoot Film
@@ -26,4 +27,12 @@
%img{:src => photo.url_sq}
%footer
%p Site designed and built by <a href="http://funkaoshi.com">Ramanan Sivaranjan</a>.
- = haml(:_analytics, :layout => false)
+ - if @@analytics_token
+ :javascript
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ :javascript
+ try {
+ var pageTracker = _gat._getTracker("#{@@analytics_token}");
+ pageTracker._trackPageview();
+ } catch(err) {}

0 comments on commit 2346e36

Please sign in to comment.