The blog.
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.
 
 
 
 

93 lines
3.6 KiB

  1. <!doctype html>
  2. <!-- https://github.com/paulirish/html5-boilerplate/blob/master/index.html -->
  3. <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
  4. <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
  5. <head>
  6. {% block starthead %}{% endblock starthead %}
  7. <meta charset="{{ resource.meta.charset }}">
  8. <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
  9. Remove this if you use the .htaccess -->
  10. <meta http-equiv="X-UA-Compatible" content="{{ resource.meta.compatibility }}">
  11. <!-- encoding must be specified within the first 512 bytes
  12. www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset -->
  13. <!-- meta element for compatibility mode needs to be before
  14. all elements except title & meta
  15. msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx -->
  16. <!-- Chrome Frame is only invoked if meta element for
  17. compatibility mode is within the first 1K bytes
  18. code.google.com/p/chromium/issues/detail?id=23003 -->
  19. <!-- automatically refresh, add/remove closing comment to enable/disable
  20. <meta http-equiv="refresh" content="2">
  21. <!-- end comment for above refresh -->
  22. <!-- Twitter cards, OpenGraph and Slack unfurling -->
  23. <meta name="twitter:card" content="summary" />
  24. {% if resource.meta.twittertitle %}
  25. <meta property="og:title" content="{{ resource.meta.twittertitle }}" />
  26. {% else %}
  27. <meta property="og:title" content="{{ resource.meta.title }}" />
  28. {% endif %}
  29. <meta property="og:description" content="{{ resource.meta.description }}" />
  30. {% if resource.meta.image %} <meta property="og:image" content="{{ resource.meta.image }}" />{% endif %}
  31. {% if resource.meta.imagealt %} <meta name="twitter:image:alt" content="{{ resource.meta.imagealt }}" />{% endif %}
  32. {% if resource.meta.twitterlabel1 %} <meta name="twitter:label1" content="{{ resource.meta.twitterlabel1 }}" />{% endif %}
  33. {% if resource.meta.twitterlabel2 %} <meta name="twitter:label2" content="{{ resource.meta.twitterlabel2 }}" />{% endif %}
  34. {% if resource.meta.twitterdata1 %} <meta name="twitter:data1" content="{{ resource.meta.twitterdata1 }}" />{% endif %}
  35. {% if resource.meta.twitterdata2 %} <meta name="twitter:data2" content="{{ resource.meta.twitterdata2 }}" />{% endif %}
  36. <title>{% block title %}{{ resource.meta.title }}{% endblock %}</title>
  37. <meta name="description" content="{{ resource.meta.description }}">
  38. <meta name="author" content="{{ resource.meta.author }}">
  39. <!-- Mobile viewport optimized: j.mp/bplateviewport -->
  40. <meta name="viewport" content="{{ resource.meta.viewport }}">
  41. {% block css %}
  42. <link rel="stylesheet" href="{{ media_url('css/tufte.css') }}">
  43. {% endblock css %}
  44. {% block endhead %}{% endblock endhead %}
  45. </head>
  46. <body id="{{ resource.meta.id if resource.meta.id else resource.slug }}">
  47. {% block content %}
  48. <div class="site" id="main" role="main">
  49. {% block container %}
  50. <header class="banner clearfix title">
  51. {% block header -%}
  52. <h1>{{ site.context.title }}</h1>
  53. {%- endblock %}
  54. </header>
  55. {% block main %}
  56. {% endblock main %}
  57. {% endblock container %}
  58. <footer>
  59. <div class="footer">
  60. <div class="contact">
  61. <ul>
  62. <li><a href="https://twitter.com/{{ site.context.tweet_via }}">Twitter</a></li>
  63. </ul>
  64. </div>
  65. </div>
  66. </footer>
  67. </div>
  68. {% endblock content%}
  69. {% block js %}
  70. <!-- Javascript at the bottom for fast page loading -->
  71. {% block scripts %}
  72. {% endblock scripts %}
  73. <!--[if lt IE 7 ]>
  74. <script src="js/libs/dd_belatedpng.js"></script>
  75. <script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
  76. <![endif]-->
  77. {% endblock js %}
  78. </body>
  79. </html>