base.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. {% if page_description %}
  8. <meta name="description" content="{{ page_description }}">
  9. {% endif %}
  10. {% if site_author %}
  11. <meta name="author" content="{{ site_author }}">
  12. {% endif %}
  13. {% if canonical_url %}
  14. <link rel="canonical" href="{{ canonical_url }}">
  15. {% endif %}
  16. <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
  17. <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
  18. <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
  19. <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
  20. <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
  21. <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
  22. <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
  23. <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
  24. <link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196">
  25. <link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
  26. <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
  27. <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
  28. <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
  29. <meta name="msapplication-TileColor" content="#2b5797">
  30. <meta name="msapplication-TileImage" content="/mstile-144x144.png">
  31. <title>{{ page_title }}</title>
  32. <link rel="stylesheet" type="text/css" media="screen"
  33. href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
  34. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
  35. <link href="{{ base_url }}/css/prettify-1.0.css" rel="stylesheet">
  36. <link href="{{ base_url }}/css/base.css" rel="stylesheet">
  37. {%- for path in extra_css %}
  38. <link href="{{ path }}" rel="stylesheet">
  39. {%- endfor %}
  40. <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  41. <script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
  42. {%- for path in extra_javascript %}
  43. {% if 'search' in path %}
  44. {% else %}
  45. <script src="{{ path }}"></script>
  46. {% endif %}
  47. {%- endfor %}
  48. </head>
  49. <body>
  50. {% include "nav.html" %}
  51. <div class="container">
  52. <div class="row">
  53. <div class="col-md-3">{% include "toc.html" %}</div>
  54. <div class="col-md-8" role="main">
  55. <div class="alert alert-danger" style="font-size:1.5em;">
  56. <strong>Important!</strong>
  57. Please read this <a href="https://eonasdan.com/posts/state-of-my-picker" target="_blank">blog post</a>
  58. </div>
  59. {% include "content.html" %}
  60. </div>
  61. </div>
  62. </div>
  63. {% if include_search %}{% include "search.html" %}{% endif %}
  64. <script src="{{ base_url }}/js/prettify-1.0.min.js"></script>
  65. <script src="{{ base_url }}/js/base.js"></script>
  66. <script>
  67. if (top != self) {
  68. top.location.replace(self.location.href);
  69. }
  70. (function (i, s, o, g, r, a, m) {
  71. i['GoogleAnalyticsObject'] = r;
  72. i[r] = i[r] || function () {
  73. (i[r].q = i[r].q || []).push(arguments)
  74. }, i[r].l = 1 * new Date();
  75. a = s.createElement(o),
  76. m = s.getElementsByTagName(o)[0];
  77. a.async = 1;
  78. a.src = g;
  79. m.parentNode.insertBefore(a, m)
  80. })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  81. ga('create', 'UA-47462200-1', 'eonasdan.github.io');
  82. ga('send', 'pageview');
  83. </script>
  84. </body>
  85. </html>