2
0

base.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. <small>
  30. Powered by <a href="/fresh.html">FreshSpooge</a>
  31. </small>
  32. </div>
  33. <div id="navbar" class="navbar-collapse collapse">
  34. <ul class="nav navbar-nav navbar-right">
  35. <li {% if home %} class="active" {% endif %}><a href="{{index-uri}}">Home</a></li>
  36. {% for nav-page in navbar-pages %}
  37. <li
  38. {%ifequal page.uri nav-page.uri %} class="active" {% endifequal %}>
  39. <a href="{{nav-page.uri}}">{{nav-page.title}}</a>
  40. </li>
  41. {% endfor %}
  42. <li {% if archives %} class="active" {% endif %}><a href="{{archives-uri}}">Archives</a></li>
  43. <li class="dropdown">
  44. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  45. More <span class="caret"></span></a>
  46. <ul class="dropdown-menu" role="menu">
  47. {% if latest-posts|not-empty %}
  48. <li class="dropdown-header">Recently</li>
  49. {% for post in latest-posts %}
  50. <li><a href="{{post.uri}}">{{post.title}} <small>on {{post.date|date:"MM.dd"}}</small></a></li>
  51. {% endfor %}
  52. {% endif %}
  53. {% if tags|not-empty %}
  54. <li class="divider"></li>
  55. <li class="dropdown-header">Tags</li>
  56. {% for tag in tags %}
  57. <li><a href="{{tag.uri}}">{{tag.name}}</a></li>
  58. {% endfor %}
  59. {% endif %}
  60. {% if sidebar-pages|not-empty %}
  61. <li class="divider"></li>
  62. <li class="dropdown-header">{{ sidebar-pages-title }}</li>
  63. {% for page in sidebar-pages %}
  64. <li><a href="{{page.uri}}">{{page.title}}</a></li>
  65. {% endfor %}
  66. {% endif %}
  67. <li class="divider"></li>
  68. <li class="dropdown-header">{{ sidebar-links-title }}</li>
  69. <li><a href="{{rss-uri}}">RSS (need reader)</a></li>
  70. {% for post in sidebar-links %}
  71. <li><a href="{{post.uri}}">{{post.title}}</a></li>
  72. {% endfor %}
  73. </ul>
  74. </li>
  75. </ul>
  76. </div><!--/.nav-collapse -->
  77. </div><!--/.container-fluid -->
  78. </nav>
  79. <div class="container">
  80. <div class="row">
  81. <div class="col-lg-12">
  82. <div id="content">
  83. {% block content %}
  84. {% endblock %}
  85. </div>
  86. </div>
  87. </div>
  88. <footer>Copyright &copy; {{today|date:yyyy}} {{author}}
  89. <p style="text-align: center;">Powered by <a href="http://cryogenweb.org">Cryogen</a></p></footer>
  90. </div>
  91. {% script "js/highlight.pack.js" %}
  92. <script>hljs.initHighlightingOnLoad();</script>
  93. {% if post.klipse %} {{post.klipse|safe}} {% endif %}
  94. {% if page.klipse %} {{page.klipse|safe}} {% endif %}
  95. </body>
  96. </html>