PageRenderTime 66ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/syte/templates/base.html

https://bitbucket.org/samdunne/syte-rails
HTML | 162 lines | 151 code | 10 blank | 1 comment | 0 complexity | 1322780751389669036a3cf4663c77bc MD5 | raw file
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. {% block metadescription %}<meta name="description" content="Personal website and blog of developer, designer and entrepreneur Rodrigo Neri also known as Rigo. Follow him at @rigoneri" />{% endblock %}
  6. {% block metakeywords %}<meta name="keywords" content="Rodrigo Neri, rigoneri, developer, designer, entrepreneur, instin, myhomework" />{% endblock %}
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>{% block pagetitle %}Rigo [Rodrigo Neri]{% endblock %}</title>
  9. <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  10. {% if RSS_FEED_ENABLED %}
  11. <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ RSS_FEED_URL }}" />
  12. {% endif %}
  13. {% if DEV_DEPLOYMENT_MODE %}
  14. <link rel="stylesheet/less" type="text/css" href="{{ MEDIA_URL }}less/styles.less">
  15. <script src="{{ MEDIA_URL }}less/less-1.3.1.min.js" type="text/javascript"></script>
  16. {% else %}
  17. <link rel="stylesheet" href="{{ MEDIA_URL }}css/styles-{{ COMPRESS_REVISION_NUMBER }}.min.css" type="text/css" media="screen, projection">
  18. {% endif %}
  19. </head>
  20. <body>
  21. <header class="main-header">
  22. <hgroup>
  23. <div class="picture">
  24. <a href="/" rel="home"></a>
  25. </div>
  26. <h1>Rodrigo Neri</h1>
  27. <h2>iOS & Web Developer + Designer + Entrepreneur Co-Founder of <a href="http://instin.com">Instin</a></h2>
  28. </hgroup>
  29. <nav>
  30. <ul class="main-nav">
  31. <li><a href="/" id="home-link">Home</a></li>
  32. <li><a href="http://twitter.com/#!/rigoneri" id="twitter-link">Twitter</a></li>
  33. <li><a href="http://github.com/rigoneri" id="github-link">Github</a></li>
  34. <li><a href="http://dribbble.com/rigoneri" id="dribbble-link">Dribbble</a></li>
  35. <li><a href="http://instagr.am/p/Lau1VrEPbt" id="instagram-link">Instagram</a></li>
  36. <li><a href="http://lastfm.com/user/rigoneri" id="lastfm-link">Last.fm</a></li>
  37. <li><a href="https://foursquare.com/user/8786308" id="foursquare-link">Foursquare</a></li>
  38. {% comment %}
  39. <li><a href="http://tent.henklein.com" id="tent-link">Tent.io</a></li>
  40. <li><a href="http://soundcloud.com/guram-kajaia" id="soundcloud-link">Soundcloud</a></li>
  41. <li><a href="http://bitbucket.org/rigoneri" id="bitbucket-link">Bitbucket</a></li>
  42. <li><a href="http://steamcommunity.com/id/steamshortname" id="steam-link">Steam</a></li>
  43. <li><a href="http://stackoverflow.com/users/USERID/USERNAME" id="stackoverflow-link">StackOverflow</a></li>
  44. {% endcomment %}
  45. <li><a href="mailto:contact@rigoneri.com?subject=Hello" id="contact-link">Contact</a></li>
  46. </ul>
  47. </nav>
  48. <a href="https://github.com/rigoneri/syte" class="fork-me">Fork me on Github</a>
  49. </header>
  50. {% block main_section %}{% endblock %}
  51. <div class="mobile-nav">
  52. <span class="nav-btn" id="mobile-nav-btn">
  53. <span class="nav-btn-bar"></span>
  54. <span class="nav-btn-bar"></span>
  55. <span class="nav-btn-bar"></span>
  56. </span>
  57. <h3><a href="/">rigoneri.com</a></h3>
  58. </div>
  59. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  60. <script type="text/javascript">
  61. var twitter_integration_enabled = {% if TWITTER_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  62. github_integration_enabled = {% if GITHUB_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  63. dribbble_integration_enabled = {% if DRIBBBLE_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  64. instagram_integration_enabled = {% if INSTAGRAM_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  65. lastfm_integration_enabled = {% if LASTFM_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  66. disqus_integration_enabled = {% if DISQUS_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  67. soundcloud_integration_enabled = {% if SOUNDCLOUD_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  68. bitbucket_integration_enabled = {% if BITBUCKET_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  69. foursquare_integration_enabled = {% if FOURSQUARE_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  70. disqus_integration_enabled = {% if DISQUS_INTEGRATION_ENABLED %}true{% else %}false{% endif %},
  71. tent_integration_enabled = {% if TENT_INTEGRATION_ENABLED %}true{% else %}false{% endif %};
  72. steam_integration_enabled = {% if STEAM_INTEGRATION_ENABLED %}true{% else %}false{% endif %};
  73. stackoverflow_integration_enabled = {% if STACKOVERFLOW_INTEGRATION_ENABLED %}true{% else %}false{% endif %};
  74. {% if DISQUS_INTEGRATION_ENABLED %}var disqus_shortname = '{{ DISQUS_SHORTNAME }}';{% endif %}
  75. </script>
  76. {% if TENT_INTEGRATION_ENABLED %}
  77. <script type="text/javascript">
  78. var tent_entity_uri = '{{ TENT_ENTITY_URI }}';
  79. var tent_feed_url = '{{ TENT_FEED_URL }}';
  80. </script>
  81. {% endif %}
  82. {% if DEV_DEPLOYMENT_MODE %}
  83. <script src="{{ MEDIA_URL }}js/libs/jquery.url.js"></script>
  84. <script src="{{ MEDIA_URL }}js/libs/require.js"></script>
  85. <script src="{{ MEDIA_URL }}js/libs/handlebars.js"></script>
  86. <script src="{{ MEDIA_URL }}js/libs/moment.min.js"></script>
  87. <script src="{{ MEDIA_URL }}js/libs/bootstrap-transition.js"></script>
  88. <script src="{{ MEDIA_URL }}js/libs/bootstrap-modal.js"></script>
  89. <script src="{{ MEDIA_URL }}js/libs/spin.js"></script>
  90. <script src="{{ MEDIA_URL }}js/libs/prettify.js"></script>
  91. <script src="{{ MEDIA_URL }}js/components/base.js"></script>
  92. <script src="{{ MEDIA_URL }}js/components/mobile.js"></script>
  93. <script src="{{ MEDIA_URL }}js/components/blog-posts.js"></script>
  94. <script src="{{ MEDIA_URL }}js/components/links.js"></script>
  95. {% if TWITTER_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/twitter.js"></script>{% endif %}
  96. {% if GITHUB_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/github.js"></script>{% endif %}
  97. {% if DRIBBBLE_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/dribbble.js"></script>{% endif %}
  98. {% if INSTAGRAM_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/instagram.js"></script>{% endif %}
  99. {% if LASTFM_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/lastfm.js"></script>{% endif %}
  100. {% if BITBUCKET_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/bitbucket.js"></script>{% endif %}
  101. {% if DISQUS_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/disqus.js"></script>{% endif %}
  102. {% if SOUNDCLOUD_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/soundcloud.js"></script>{% endif %}
  103. {% if FOURSQUARE_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/foursquare.js"></script>{% endif %}
  104. {% if TENT_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/tent.js"></script>{% endif %}
  105. {% if STEAM_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/steam.js"></script>{% endif %}
  106. {% if STACKOVERFLOW_INTEGRATION_ENABLED %}<script src="{{ MEDIA_URL }}js/components/stackoverflow.js"></script>{% endif %}
  107. {% else %}
  108. <script src="{{ MEDIA_URL }}js/min/scripts-{{ COMPRESS_REVISION_NUMBER }}.min.js"></script>
  109. {% endif %}
  110. {% if SHARETHIS_PUBLISHER_KEY %}
  111. <script type="text/javascript">var switchTo5x=true;</script>
  112. <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
  113. <script type="text/javascript">stLight.options({publisher: "{{ SHARETHIS_PUBLISHER_KEY }}"});</script>
  114. {% endif %}
  115. {% block extra_js %}{% endblock %}
  116. <script type="text/javascript">
  117. {% block extra_inline_js %}{% endblock %}
  118. {% if WOOPRA_TRACKING_DOMAIN %}
  119. // Start of woopra code
  120. function woopraReady(tracker) {
  121. tracker.setDomain("{{WOOPRA_TRACKING_DOMAIN}}");
  122. tracker.setIdleTimeout({{WOOPRA_TRACKING_IDLE_TIMEOUT}});
  123. {% if WOOPRA_INCLUDE_QUERY %}
  124. tracker.trackPageview({type:'pageview',url:window.location.pathname+window.location.search,title:document.title});
  125. {% else %}
  126. tracker.track();
  127. {% endif %}
  128. return false;
  129. }
  130. (function() {
  131. var wsc = document.createElement('script');
  132. wsc.src = document.location.protocol+'//static.woopra.com/js/woopra.js';
  133. wsc.type = 'text/javascript';
  134. wsc.async = true;
  135. var ssc = document.getElementsByTagName('script')[0];
  136. ssc.parentNode.insertBefore(wsc, ssc);
  137. })();
  138. // End of woopra code
  139. {% endif %}
  140. {% if GOOGLE_ANALYTICS_TRACKING_ID %}
  141. var _gaq = _gaq || [];
  142. _gaq.push(['_setAccount', '{{GOOGLE_ANALYTICS_TRACKING_ID}}']);
  143. _gaq.push(['_trackPageview']);
  144. (function() {
  145. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  146. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  147. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  148. })();
  149. {% endif %}
  150. </script>
  151. </body>
  152. </html>