base.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 '_includes/latex.html' %}
  18. {% from '_includes/_defaults.html' import SITE_DESCRIPTION with context %}
  19. {% if SITE_DESCRIPTION %}
  20. <meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION }}{% endblock head_description %}" />
  21. {% endif %}
  22. {% block meta_tags_in_head %}
  23. {% from '_includes/_defaults.html' import GOOGLE_PLUS_PROFILE_URL with context %}
  24. {% if GOOGLE_PLUS_PROFILE_URL %}
  25. <link rel="author" href={{GOOGLE_PLUS_PROFILE_URL}} />
  26. {% endif %}
  27. {% endblock meta_tags_in_head %}
  28. <title>{% block title %}{{ SITENAME|striptags }}{% endblock title %}</title>
  29. {% block head_links %}
  30. <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
  31. <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
  32. {% if 'assets' in PLUGINS %}
  33. {% include '_includes/minify_css.html' with context %}
  34. {% else %}
  35. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/pygments.css" media="screen">
  36. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/tipuesearch/tipuesearch.css" media="screen">
  37. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/elegant.css" media="screen">
  38. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/custom.css" media="screen">
  39. {% endif %}
  40. {% endblock head_links %}
  41. {% include '_includes/favicon_links.html' %}
  42. {% block feed_links %}
  43. {% include '_includes/feeds.html' %}
  44. {% endblock feed_links %}
  45. {% include '_includes/analytics.html' %}
  46. </head>
  47. <body>
  48. <div id="content-sans-footer">
  49. <div class="navbar navbar-static-top">
  50. <div class="navbar-inner">
  51. <div class="container">
  52. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  53. <span class="icon-bar"></span>
  54. <span class="icon-bar"></span>
  55. <span class="icon-bar"></span>
  56. </a>
  57. <a class="brand" href="{{ SITEURL }}/"><span class=site-name>{{ SITENAME }}</span></a>
  58. <div class="nav-collapse collapse">
  59. <ul class="nav pull-right top-menu">
  60. <li {% if page_name == 'index' %} class="active"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
  61. {% if DISPLAY_PAGES_ON_MENU %}
  62. {% for page in pages %}
  63. <li {% if output_file == page.url %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  64. {% endfor %}
  65. {% endif %}
  66. <li {% if page_name == 'categories' %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li>
  67. <li {% if page_name == 'tags' %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li>
  68. <li {% if page_name == 'archives' %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
  69. <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>
  70. </ul>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="container-fluid">
  76. <div class="row-fluid">
  77. <div class="span1"></div>
  78. <div class="span10">
  79. {% block content %}
  80. {% endblock content %}
  81. </div>
  82. <div class="span1"></div>
  83. </div>
  84. </div>
  85. </div>
  86. {% include '_includes/footer.html' %}
  87. {% block script %}
  88. <script src="http://code.jquery.com/jquery.min.js"></script>
  89. <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
  90. <script>
  91. function validateForm(query)
  92. {
  93. return (query.length > 0);
  94. }
  95. </script>
  96. {% endblock script %}
  97. {% include '_includes/stat_counter.html' %}
  98. </body>
  99. </html>