-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
166 lines (134 loc) · 6.88 KB
/
index.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
{% if meta.description %}
<meta name="description" content="{{ meta.description }}">
{% endif %}{% if meta.robots %}
<meta name="robots" content="{{ meta.robots }}">
{% endif %}
<!-- Bootstrap Core CSS -->
<link href="{{ theme_url }}/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="{{ theme_url }}/css/simple-sidebar.css" rel="stylesheet">
<link href="{{ theme_url }}/css/default.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="/">
{{ site_title }}
</a>
</li>
{% for page in pages %}
{% if page.page_type == 'page' %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
<!-- Ads #################################### -->
<!-- EDIT this to add your custom list of Ads -->
<!--
<li class="ads"><a href="http://mdownhost.me" target="_blank"><button>MDownHost.ME</button><p><small>CMS for developers</small></p></a></li>
<li class="ads"><a href="http://amuzi.me" target="_blank"><button>AMUZI</button><p><small>The open source way to enjoy music</small></p></a></li>
-->
<li class="ads"><a href="http://picocms.org/" target="_blank"><button>Pico CMS</button><p><small>A stupidly simple & blazing fast, flat file CMS.</small></p></a></li>
<!-- Ads #################################### -->
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!-- Page Content -->
<div id="page-content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<!-- Title -->
{% if meta.title %}<h1>{{ meta.title }}</h1>{% endif %}
<!-- Date -->
{% if meta.date %} <p class="meta">{{ meta.date }}</p> {% endif %}
<!-- List of tags -->
{% if meta.tags %}
<article>
<p class="meta">Tags:
{% for tag in meta.tags %}
<a href="{{ base_url }}/tag/{{ tag }}">#{{ tag }}</a>
{% endfor %}
</p>
</article>
{% endif %}
<!-- Content -->
{{ content }}
<!-- Blog page - List of blog posts -->
{% if meta.page_type == 'page' and meta.page_name == 'blog' %}
{% for page in pages %}
{% if page.date and false == page.symlink %} <!-- Note we check for Date field (posts) here -->
<div class="post">
<h3><a href="{{ page.url }}">{{ page.title }}</a></h3>
<p class="meta">{{ page.date }}</p>
<p class="excerpt">{{ page.excerpt }}</p>
</div>
{% endif %}
{% endfor %}
{% elseif pages and meta.title matches '/^#/' %}
<!-- Tags page - Page that shows the list of post for a particular tag -->
All tags:
<ul class="tags">
{% for tag in tag_list %}
<li><a href="/tag/{{ tag }}">#{{ tag }}</a></li>
{% endfor %}
</ul>
<p>Posts tagged <a href="{{ page.url }}">#{{ current_tag }}</a>:</p>
{% for page in pages %}
{% if page.date %}
<div class="post">
<h3><a href="{{ page.url }}">{{ page.title }}</a></h3>
<p class="meta">{{ page.date }}</p>
<p class="excerpt">{{ page.excerpt }}</p>
</div>
{% endif %}
{% endfor %}
<!-- tags page -->
{% endif %}
<a href="#menu-toggle" class="btn btn-default" id="menu-toggle">Toggle Menu</a>
{% if meta.date %}
{{ disqus_comments }}
{% endif %}
</div>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
<footer>
<div class="container">
<!-- Customize the footer message -->
<p id="legal">Footer - Good place to put copyright info.</p>
</div>
</footer>
</div>
<!-- /#wrapper -->
{{googletrackingcode}}
<!-- jQuery -->
<script src="{{ theme_url }}/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="{{ theme_url }}/bower_components/bootstrap/dist/js/bootstrap.js"></script>
<!-- Menu Toggle Script -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
</body>
</html>