2
0

base.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  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. <link href="//fonts.googleapis.com/css?family=Alegreya:400italic,700italic,400,700" rel="stylesheet"
  9. type="text/css">
  10. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
  11. <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
  12. <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/styles/default.min.css">
  13. {% style "css/screen.css" %}
  14. </head>
  15. <body>
  16. <nav class="navbar navbar-default">
  17. <div class="container">
  18. <div class="navbar-header">
  19. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  20. <span class="sr-only">Toggle navigation</span>
  21. <span class="icon-bar"></span>
  22. <span class="icon-bar"></span>
  23. <span class="icon-bar"></span>
  24. </button>
  25. <a class="navbar-brand" href="{{index-uri}}">{{title}}</a>
  26. </div>
  27. <div id="navbar" class="navbar-collapse collapse">
  28. <ul class="nav navbar-nav navbar-right">
  29. <li {% if home %} class="active" {% endif %}><a href="{{index-uri}}">Home</a></li>
  30. <li
  31. {% if archives %} class="active" {% endif %}><a href="{{archives-uri}}">Archives</a></li>
  32. {% for nav-page in navbar-pages %}
  33. <li
  34. {%ifequal page.uri nav-page.uri %} class="active" {% endifequal %}>
  35. <a href="{{nav-page.uri}}">{{nav-page.title}}</a>
  36. </li>
  37. {% endfor %}
  38. <li><a href="{{rss-uri}}">RSS</a></li>
  39. </ul>
  40. </div><!--/.nav-collapse -->
  41. </div><!--/.container-fluid -->
  42. </nav>
  43. <div class="container">
  44. <div class="row">
  45. <div class="col-lg-9">
  46. <div id="content">
  47. {% block content %}
  48. {% endblock %}
  49. </div>
  50. </div>
  51. <div class="col-md-3">
  52. <div id="sidebar">
  53. <h3>Links</h3>
  54. <ul id="links">
  55. <li><a href="http://cryogenweb.org/docs/home.html">Cryogen Docs</a></li>
  56. <li><a href="http://carmenla.me/blog/archives">Carmen's Blog</a></li>
  57. {% for page in sidebar-pages %}
  58. <li><a href="{{page.uri}}">{{page.title}}</a></li>
  59. {% endfor %}
  60. </ul>
  61. {% if latest-posts|not-empty %}
  62. <div id="recent">
  63. <h3>Recent Posts</h3>
  64. <ul>
  65. {% for post in latest-posts %}
  66. <li><a href="{{post.uri}}">{{post.title}}</a></li>
  67. {% endfor %}
  68. </ul>
  69. </div>
  70. {% endif %}
  71. {% if tags|not-empty %}
  72. <div id="tags">
  73. <h3>Tags</h3>
  74. <ul>
  75. {% for tag in tags %}
  76. <li><a href="{{tag.uri}}">{{tag.name}}</a></li>
  77. {% endfor %}
  78. </ul>
  79. </div>
  80. {% endif %}
  81. </div>
  82. </div>
  83. </div>
  84. <footer>Copyright &copy; {{today|date:yyyy}} {{author}}
  85. <p style="text-align: center;">Powered by <a href="http://cryogenweb.org">Cryogen</a></p></footer>
  86. </div>
  87. <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
  88. <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
  89. {% script "js/highlight.pack.js" %}
  90. <script>hljs.initHighlightingOnLoad();</script>
  91. {% if post.klipse %} {{post.klipse|safe}} {% endif %}
  92. {% if page.klipse %} {{page.klipse|safe}} {% endif %}
  93. </body>
  94. </html>