base.html 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. {% if article and article.author %}
  7. <meta name="author" content="{{ article.author }}" />
  8. <meta name="copyright" content="{{ article.author }}" />
  9. {% elif page and page.author %}
  10. <meta name="author" content="{{ page.author }}" />
  11. <meta name="copyright" content="{{ page.author }}" />
  12. {% else %}
  13. <meta name="author" content="{{ AUTHOR }}" />
  14. <meta name="copyright" content="{{ AUTHOR }}" />
  15. {% endif %}
  16. {% if SITE_DESCRIPTION %}
  17. <meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION }}{% endblock head_description %}" />
  18. {% endif %}
  19. {% block meta_tags_in_head %}
  20. {% endblock meta_tags_in_head %}
  21. <title>{% block title %}{{ SITENAME|striptags }}{% endblock title %}</title>
  22. {% block head_links %}
  23. <link href="http://cdn-images.mailchimp.com/embedcode/slim-081711.css" rel="stylesheet" type="text/css">
  24. <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
  25. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" media="screen">
  26. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/solarizedlight.css" media="screen">
  27. {% endblock head_links %}
  28. <link rel="shortcut icon" href="{{ SITEURL }}/theme/images/favicon.ico" type="image/x-icon" />
  29. <link rel="apple-touch-icon" href="{{ SITEURL }}/theme/images/apple-touch-icon.png" />
  30. <link rel="apple-touch-icon" sizes="57x57" href="{{ SITEURL }}/theme/images/apple-touch-icon-57x57.png" />
  31. <link rel="apple-touch-icon" sizes="72x72" href="{{ SITEURL }}/theme/images/apple-touch-icon-72x72.png" />
  32. <link rel="apple-touch-icon" sizes="114x114" href="{{ SITEURL }}/theme/images/apple-touch-icon-114x114.png" />
  33. <link rel="apple-touch-icon" sizes="144x144" href="{{ SITEURL }}/theme/images/apple-touch-icon-144x144.png" />
  34. <link rel="icon" href="{{ SITEURL }}/theme/images/apple-touch-icon-144x144.png" />
  35. {% include 'feeds.html' %}
  36. {% include 'analytics.html' %}
  37. </head>
  38. <body>
  39. <div id="content-sans-footer">
  40. <div class="navbar navbar-static-top">
  41. <div class="navbar-inner">
  42. <div class="container">
  43. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  44. <span class="icon-bar"></span>
  45. <span class="icon-bar"></span>
  46. <span class="icon-bar"></span>
  47. </a>
  48. <a class="brand" href="{{ SITEURL }}/"><span class=site-name>{{ SITENAME }}</span></a>
  49. <div class="nav-collapse collapse">
  50. <ul class="nav pull-right top-menu">
  51. <li {% if page_name == "index" %} class="active"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
  52. {% if DISPLAY_PAGES_ON_MENU %}
  53. {% for page in pages %}
  54. <li {% if output_file == page.url %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  55. {% endfor %}
  56. {% endif %}
  57. <li {% if page_name == "categories" %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li>
  58. <li {% if page_name == "tags" %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li>
  59. <li {% if page_name == "archives" %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
  60. <li><form class="navbar-search" action="{{ SITEURL }}/search.html" onsubmit="return validateForm(this.elements['q'].value);"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
  61. </ul>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="container-fluid">
  67. <div class="row-fluid">
  68. <div class="span1"></div>
  69. <div class="span10">
  70. {% block content %}
  71. {% endblock content %}
  72. </div>
  73. <div class="span1"></div>
  74. </div>
  75. </div>
  76. </div>
  77. {% include 'footer.html' %}
  78. {% block script %}
  79. <script src="http://code.jquery.com/jquery.min.js"></script>
  80. <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
  81. <script>
  82. function validateForm(query)
  83. {
  84. return (query.length > 0);
  85. }
  86. </script>
  87. {% endblock script %}
  88. </body>
  89. </html>