A fork of hyde, the static site generation. Some patches will be pushed upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

102 lines
4.1 KiB

  1. {% extends "root.html" %}
  2. {% block all %}
  3. <!doctype html>
  4. <!-- https://github.com/paulirish/html5-boilerplate/blob/master/index.html -->
  5. <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
  6. <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
  7. <!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
  8. <!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
  9. <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
  10. <head>
  11. {% block starthead %}{% endblock starthead %}
  12. <meta charset="{{page.meta.charset|default('utf-8')}}">
  13. <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
  14. Remove this if you use the .htaccess -->
  15. <meta http-equiv="X-UA-Compatible" content="{{page.meta.compatibility|default('IE=edge,chrome=1')">
  16. <!-- encoding must be specified within the first 512 bytes www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset -->
  17. <!-- meta element for compatibility mode needs to be before all elements except title & meta msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx -->
  18. <!-- Chrome Frame is only invoked if meta element for compatibility mode is within the first 1K bytes code.google.com/p/chromium/issues/detail?id=23003 -->
  19. <title>{% block title %}{{page.meta.title}}{% endblock %}</title>
  20. <meta name="description" content="{{page.meta.description}}">
  21. <meta name="author" content="{{page.meta.author}}">
  22. <!-- Mobile viewport optimized: j.mp/bplateviewport -->
  23. <meta name="viewport" content="{{page.meta.viewport|default('width=device-width, initial-scale=1.0')">
  24. {% block favicons %}
  25. <!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
  26. <link rel="shortcut icon" href="{% media '/favicon.ico' %}">
  27. <link rel="apple-touch-icon" href="{% media '/apple-touch-icon.png' %}">
  28. {% endblock favicons %}
  29. {% block css %}
  30. <!-- CSS : implied media="all" -->
  31. <link rel="stylesheet" href="{% media 'css/site.css' %}">
  32. <!-- Uncomment if you are specifically targeting less enabled mobile browsers
  33. <link rel="stylesheet" media="handheld" href="css/handheld.css?v=2"> -->
  34. {% endblock css %}
  35. {% block headjs %}
  36. <!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
  37. <script src="{% media 'js/libs/modernizr-1.6.min.js' %}"></script>
  38. {% endblock headjs %}
  39. {% block endhead %}{% endblock endhead %}
  40. </head>
  41. <body id="{{page.id if page.id else page.name_without_extension}}">
  42. {% block content %}
  43. <div id="container">
  44. {% block container %}
  45. <header>
  46. {% block header %}{% endblock header %}
  47. </header>
  48. <div id="main" role="main">
  49. {% block main %}{% endblock main %}
  50. </div>
  51. <footer>
  52. {% block footer %}{% endblock %}
  53. </footer>
  54. {% endblock container%}
  55. </div> <!--! end of #container -->
  56. {% endblock content%}
  57. {% block js %}
  58. <!-- Javascript at the bottom for fast page loading -->
  59. {% block jquery %}
  60. <!-- Grab Google CDN's jQuery. fall back to local if necessary -->
  61. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
  62. <script>!window.jQuery && document.write(unescape('%3Cscript src="{% media 'js/libs/jquery-1.4.4.js' %}"%3E%3C/script%3E'))</script>
  63. {% endblock jquery %}
  64. {% block scripts %}
  65. <!-- scripts concatenated and minified via ant build script-->
  66. <script src="{% media 'js/plugins.js' %}"></script>
  67. <script src="{% media 'js/script.js' %}"></script>
  68. <!-- end concatenated and minified scripts-->
  69. {% endblock scripts %}
  70. {% block pngfix %}
  71. <!--[if lt IE 7 ]>
  72. <script>
  73. // More information on tackling transparent PNGs for IE goo.gl/mZiyb
  74. //fix any <img> or .png_bg background-images
  75. $.getScript("{% media 'js/libs/dd_belatedpng.js' %}",function(){ DD_belatedPNG.fix('img, .png_bg'); });
  76. </script>
  77. <![endif]-->
  78. {% endblock pngfix %}
  79. {% block debug %}
  80. {% include "devmode.html" %}
  81. {% endblock debug %}
  82. {%block analytics %}
  83. {% include "analytics.html" %}
  84. {% endblock analytics %}
  85. {% endblock js %}
  86. </body>
  87. </html>
  88. {% endblock all %}