base.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. {% else %}
  9. <meta name="author" content="{{ AUTHOR }}" />
  10. {% endif %}
  11. {% if SITE_LICENSE %}
  12. <meta name="copyright" content="{{ SITE_LICENSE|striptags }}">
  13. {% endif %}
  14. {% if SITE_DESCRIPTION %}
  15. <meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION }}{% endblock head_description %}">
  16. {% endif %}
  17. <title>{% block title %}{{ SITENAME|striptags }}{% endblock title %}</title>
  18. {% block head_links %}
  19. <link href="http://cdn-images.mailchimp.com/embedcode/slim-081711.css" rel="stylesheet" type="text/css">
  20. <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
  21. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" media="screen">
  22. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/solarizedlight.css" media="screen">
  23. {% endblock head_links %}
  24. <link rel="shortcut icon" href="{{ SITEURL }}/theme/images/favicon.ico" type="image/x-icon" />
  25. <link rel="apple-touch-icon" href="{{ SITEURL }}/theme/images/apple-touch-icon.png" />
  26. <link rel="apple-touch-icon" sizes="57x57" href="{{ SITEURL }}/theme/images/apple-touch-icon-57x57.png" />
  27. <link rel="apple-touch-icon" sizes="72x72" href="{{ SITEURL }}/theme/images/apple-touch-icon-72x72.png" />
  28. <link rel="apple-touch-icon" sizes="114x114" href="{{ SITEURL }}/theme/images/apple-touch-icon-114x114.png" />
  29. <link rel="apple-touch-icon" sizes="144x144" href="{{ SITEURL }}/theme/images/apple-touch-icon-144x144.png" />
  30. <link rel="icon" href="{{ SITEURL }}/theme/images/apple-touch-icon-144x144.png" />
  31. {% include 'analytics.html' %}
  32. </head>
  33. <body>
  34. <div id="content-sans-footer">
  35. <div class="navbar navbar-static-top">
  36. <div class="navbar-inner">
  37. <div class="container">
  38. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  39. <span class="icon-bar"></span>
  40. <span class="icon-bar"></span>
  41. <span class="icon-bar"></span>
  42. </a>
  43. <a class="brand" href="{{ SITEURL }}/"><span class=site-name>{{ SITENAME }}</span></a>
  44. <div class="nav-collapse collapse">
  45. <ul class="nav pull-right top-menu">
  46. <li {% if page_name == "index" %} class="active"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
  47. {% if DISPLAY_PAGES_ON_MENU %}
  48. {% for page in pages %}
  49. <li {% if output_file == page.url %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  50. {% endfor %}
  51. {% endif %}
  52. <li {% if page_name == "categories" %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li>
  53. <li {% if page_name == "tags" %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li>
  54. <li {% if page_name == "archives" %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
  55. <li><form class="navbar-search" action="search.html"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
  56. </ul>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <div class="container-fluid">
  62. <div class="row-fluid">
  63. <div class="span1"></div>
  64. <div class="span10">
  65. {% block content %}
  66. {% endblock content %}
  67. </div>
  68. <div class="span1"></div>
  69. </div>
  70. </div>
  71. </div>
  72. {% include 'footer.html' %}
  73. {% block script %}
  74. <script src="http://code.jquery.com/jquery.min.js"></script>
  75. <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
  76. {% endblock script %}
  77. </body>
  78. </html>