base.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 'analytics.html' %}
  36. </head>
  37. <body>
  38. <div id="content-sans-footer">
  39. <div class="navbar navbar-static-top">
  40. <div class="navbar-inner">
  41. <div class="container">
  42. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  43. <span class="icon-bar"></span>
  44. <span class="icon-bar"></span>
  45. <span class="icon-bar"></span>
  46. </a>
  47. <a class="brand" href="{{ SITEURL }}/"><span class=site-name>{{ SITENAME }}</span></a>
  48. <div class="nav-collapse collapse">
  49. <ul class="nav pull-right top-menu">
  50. <li {% if page_name == "index" %} class="active"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
  51. {% if DISPLAY_PAGES_ON_MENU %}
  52. {% for page in pages %}
  53. <li {% if output_file == page.url %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  54. {% endfor %}
  55. {% endif %}
  56. <li {% if page_name == "categories" %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li>
  57. <li {% if page_name == "tags" %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li>
  58. <li {% if page_name == "archives" %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
  59. <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>
  60. </ul>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="container-fluid">
  66. <div class="row-fluid">
  67. <div class="span1"></div>
  68. <div class="span10">
  69. {% block content %}
  70. {% endblock content %}
  71. </div>
  72. <div class="span1"></div>
  73. </div>
  74. </div>
  75. </div>
  76. {% include 'footer.html' %}
  77. {% block script %}
  78. <script src="http://code.jquery.com/jquery.min.js"></script>
  79. <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
  80. <script>
  81. function validateForm(query)
  82. {
  83. return (query.length > 0);
  84. }
  85. </script>
  86. {% endblock script %}
  87. </body>
  88. </html>