base.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. {% block head %}
  6. <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/bootstrap.css" media="screen"/>
  9. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/bootstrap-responsive.css" media="screen"/>
  10. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" media="screen"/>
  11. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/solarizedlight.css" media="screen"/>
  12. {% endblock %}
  13. </head>
  14. <body>
  15. <script src="http://code.jquery.com/jquery.js"></script>
  16. <script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
  17. <div class="navbar navbar-static-top navbar-inverse">
  18. <div class="navbar-inner">
  19. <div class="container">
  20. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  21. <span class="icon-bar"></span>
  22. <span class="icon-bar"></span>
  23. <span class="icon-bar"></span>
  24. </a>
  25. <a class="brand" href="{{ SITEURL }}/">{{ SITENAME }}</a>
  26. <div class="nav-collapse collapse">
  27. <ul class="nav pull-right">
  28. <li {% if page_name == "index" %} class="active"{% endif %}><a href="{{ SITEURL }}">Home</a></li>
  29. {% if DISPLAY_PAGES_ON_MENU %}
  30. {% for page in pages %}
  31. <li {% if output_file == page.url %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  32. {% endfor %}
  33. {% endif %}
  34. <li {% if page_name == "categories" %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li>
  35. <li {% if page_name == "tags" %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li>
  36. <li {% if page_name == "archives" %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
  37. <li><form class="navbar-search"> <input type="text" class="search-query" placeholder="Search"></form></li>
  38. </ul>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="container-fluid">
  44. <div class="row-fluid">
  45. <div class="span1"></div>
  46. <div class="span10">
  47. {% block content %}
  48. {% endblock content %}
  49. </div>
  50. <div class="span1"></div>
  51. </div>
  52. </div>
  53. </body>
  54. </html>