base.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" prefix="og: http://ogp.me/ns#">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>{{title}}{% block subtitle %}{% endblock %}</title>
  6. <link rel="canonical" href="{{site-url}}{{uri}}">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. {% style "css/bootstrap-3.3.0.css" %}
  9. {% style "css/font-awesome-4.2.0.css" %}
  10. {% style "css/highlight-9.7.0.css" %}
  11. {% script "js/jquery-1.11.js" %}
  12. {% script "js/bootstrap-3.3.0.js" %}
  13. <script src="/assets/steem.js"></script>
  14. {% style "css/screen.css" %}
  15. {% block head %}
  16. {% endblock %}
  17. </head>
  18. <body>
  19. <nav class="navbar navbar-default">
  20. <div class="container">
  21. <div class="navbar-header">
  22. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  23. <span class="sr-only">Toggle navigation</span>
  24. <span class="icon-bar"></span>
  25. <span class="icon-bar"></span>
  26. <span class="icon-bar"></span>
  27. </button>
  28. <a class="navbar-brand" href="{{index-uri}}">{{title}}</a><br/>
  29. </div>
  30. <div class="navbar-text">
  31. <small>
  32. Powered by<br><a href="/">FreshSpooge</a>
  33. </small>
  34. </div>
  35. <div id="navbar" class="navbar-collapse collapse">
  36. <ul class="nav navbar-nav navbar-right">
  37. <li {% if home %} class="active" {% endif %}><a href="{{index-uri}}">Home</a></li>
  38. {% for nav-page in navbar-pages %}
  39. <li
  40. {%ifequal page.uri nav-page.uri %} class="active" {% endifequal %}>
  41. <a href="{{nav-page.uri}}">{{nav-page.title}}</a>
  42. </li>
  43. {% endfor %}
  44. <li {% if archives %} class="active" {% endif %}><a href="{{archives-uri}}">Archives</a></li>
  45. <li class="dropdown">
  46. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  47. More <span class="caret"></span></a>
  48. <ul class="dropdown-menu" role="menu">
  49. {% if latest-posts|not-empty %}
  50. <li class="dropdown-header">Recently</li>
  51. {% for post in latest-posts %}
  52. <li><a href="{{post.uri}}">{{post.title}} <small>on {{post.date|date:"MM.dd"}}</small></a></li>
  53. {% endfor %}
  54. {% endif %}
  55. {% if tags|not-empty %}
  56. <li class="divider"></li>
  57. <li class="dropdown-header">Tags</li>
  58. {% for tag in tags %}
  59. <li><a href="{{tag.uri}}">{{tag.name}}</a></li>
  60. {% endfor %}
  61. {% endif %}
  62. {% if sidebar-pages|not-empty %}
  63. <li class="divider"></li>
  64. <li class="dropdown-header">{{ sidebar-pages-title }}</li>
  65. {% for page in sidebar-pages %}
  66. <li><a href="{{page.uri}}">{{page.title}}</a></li>
  67. {% endfor %}
  68. {% endif %}
  69. <li class="divider"></li>
  70. <li class="dropdown-header">{{ sidebar-links-title }}</li>
  71. <li><a href="{{rss-uri}}">RSS (need reader)</a></li>
  72. {% for post in sidebar-links %}
  73. <li><a href="{{post.uri}}">{{post.title}}</a></li>
  74. {% endfor %}
  75. </ul>
  76. </li>
  77. </ul>
  78. </div><!--/.nav-collapse -->
  79. </div><!--/.container-fluid -->
  80. </nav>
  81. <div class="container">
  82. <div class="row">
  83. <div class="col-lg-12">
  84. <div id="content">
  85. {% block content %}
  86. {% endblock %}
  87. </div>
  88. </div>
  89. </div>
  90. <footer>Copyright &copy; {{today|date:yyyy}} {{author}}
  91. <p style="text-align: center;">Powered by <a href="http://cryogenweb.org">Cryogen</a></p></footer>
  92. </div>
  93. {% script "js/highlight.pack.js" %}
  94. <script>hljs.initHighlightingOnLoad();</script>
  95. {% if post.klipse %} {{post.klipse|safe}} {% endif %}
  96. {% if page.klipse %} {{page.klipse|safe}} {% endif %}
  97. </body>
  98. </html>