base.html 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  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 article and article.author %}
  8. <meta name="author" content="{{ article.author }}" />
  9. <meta name="copyright" content="{{ article.author }}" />
  10. {% elif page and page.author %}
  11. <meta name="author" content="{{ page.author }}" />
  12. <meta name="copyright" content="{{ page.author }}" />
  13. {% else %}
  14. <meta name="author" content="{{ AUTHOR }}" />
  15. <meta name="copyright" content="{{ AUTHOR }}" />
  16. {% endif %}
  17. {% include 'latex.html' %}
  18. {% if SITE_DESCRIPTION %}
  19. <meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION }}{% endblock head_description %}" />
  20. {% endif %}
  21. {% block meta_tags_in_head %}
  22. {% endblock meta_tags_in_head %}
  23. <title>{% block title %}{{ SITENAME|striptags }}{% endblock title %}</title>
  24. {% block head_links %}
  25. <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
  26. <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
  27. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/elegant.css" media="screen">
  28. {%if CUSTOM_CSS %}
  29. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/custom.css" media="screen">
  30. {% endif %}
  31. {% endblock head_links %}
  32. {% include 'favicon_links.html' %}
  33. {% block feed_links %}
  34. {% include 'feeds.html' %}
  35. {% endblock feed_links %}
  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.2/js/bootstrap.min.js"></script>
  81. <script>
  82. function validateForm(query)
  83. {
  84. return (query.length > 0);
  85. }
  86. </script>
  87. {% endblock script %}
  88. {% include 'stat_counter.html' %}
  89. </body>
  90. </html>