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