base.html 4.4 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. {% include 'latex.html' %}
  17. {% if SITE_DESCRIPTION %}
  18. <meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION }}{% endblock head_description %}" />
  19. {% endif %}
  20. {% block meta_tags_in_head %}
  21. {% endblock meta_tags_in_head %}
  22. <title>{% block title %}{{ SITENAME|striptags }}{% endblock title %}</title>
  23. {% block head_links %}
  24. <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
  25. <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
  26. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/elegant.css" media="screen">
  27. {%if CUSTOM_CSS %}
  28. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/custom.css" media="screen">
  29. {% endif %}
  30. {% endblock head_links %}
  31. {% include 'favicon_links.html' %}
  32. {% block feed_links %}
  33. {% include 'feeds.html' %}
  34. {% endblock feed_links %}
  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. {% include 'stat_counter.html' %}
  88. </body>
  89. </html>