The blog.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

94 рядки
3.7 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/custom.css') }}">
  43. <link rel="stylesheet" href="{{ media_url('css/tufte.css') }}">
  44. {% endblock css %}
  45. {% block endhead %}{% endblock endhead %}
  46. </head>
  47. <body id="{{ resource.meta.id if resource.meta.id else resource.slug }}">
  48. {% block content %}
  49. <div class="site" id="main" role="main">
  50. {% block container %}
  51. <header class="banner clearfix title">
  52. {% block header -%}
  53. <h1>{{ site.context.title }}</h1>
  54. {%- endblock %}
  55. </header>
  56. {% block main %}
  57. {% endblock main %}
  58. {% endblock container %}
  59. <footer>
  60. <div class="footer">
  61. <div class="contact">
  62. <ul class="tags">
  63. <li><a href="https://twitter.com/{{ site.context.tweet_via }}">Twitter</a></li>
  64. </ul>
  65. </div>
  66. </div>
  67. </footer>
  68. </div>
  69. {% endblock content%}
  70. {% block js %}
  71. <!-- Javascript at the bottom for fast page loading -->
  72. {% block scripts %}
  73. {% endblock scripts %}
  74. <!--[if lt IE 7 ]>
  75. <script src="js/libs/dd_belatedpng.js"></script>
  76. <script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
  77. <![endif]-->
  78. {% endblock js %}
  79. </body>
  80. </html>