Skip to content

Commit 476958f

Browse files
committed
Implement sidebar-enabled default template
1 parent 201af48 commit 476958f

File tree

5 files changed

+50
-46
lines changed

5 files changed

+50
-46
lines changed

_layouts/default.html

+23-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,30 @@
55
</head>
66
<body>
77
{% include nav.html %}
8+
<div class="zd-header" id="content" tabindex="-1">
9+
<div class="container">
10+
<h1>{{ page.title }}</h1>
11+
<p>{{ page.lead }}</p>
12+
</div>
13+
</div>
814
<div class="container">
9-
{{ content }}
15+
<div class="row">
16+
<div class="col-md-{% if page.sidebar %}9{% else %}12{% endif %}" role="main">
17+
{{ content }}
18+
</div>
19+
{% if page.sidebar == true %}
20+
<div class="col-md-3" role="complementary">
21+
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm">
22+
<ul class="nav bs-docs-sidenav">
23+
{% include nav/{{page.slug}}.html %}
24+
</ul>
25+
<a class="back-to-top" href="#top">
26+
Back to top
27+
</a>
28+
</nav>
29+
</div>
30+
{% endif %}
31+
</div>
1032
</div>
1133
{% include footer.html %}
1234
{% include js.html %}

blog/index.html

+13-17
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,17 @@
22
layout: default
33
title: Blog
44
---
5-
<div class="row">
6-
<h1 class="page-header">{{ page.title }}</h1>
5+
{% for post in site.posts %}
6+
<article class="post">
7+
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
8+
<small>{{ post.date | date: '%B %d, %Y' }} · by <a href="https://github.com/{{ site.authors[post.author].github }}">{{ site.authors[post.author].name }}</a></small>
9+
<p>
10+
{{ post.excerpt }}
11+
</p>
12+
<a href="{{ site.baseurl }}{{ post.url }}">Read More</a>
13+
</article>
14+
{% endfor %}
715

8-
{% for post in site.posts %}
9-
<article class="post">
10-
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
11-
<small>{{ post.date | date: '%B %d, %Y' }} · by <a href="https://github.com/{{ site.authors[post.author].github }}">{{ site.authors[post.author].name }}</a></small>
12-
<p>
13-
{{ post.excerpt }}
14-
</p>
15-
<a href="{{ site.baseurl }}{{ post.url }}">Read More</a>
16-
</article>
17-
{% endfor %}
18-
19-
{% if site.posts.size == 0 %}
20-
<h2 class="text-center">No posts yet. Come back later!</h2>
21-
{% endif %}
22-
</div>
16+
{% if site.posts.size == 0 %}
17+
<h2 class="text-center">No posts yet. Come back later!</h2>
18+
{% endif %}

contact.html

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
layout: default
33
title: Contact
44
slug: contact
5+
lead: We want your feedback!
56
---
6-
<div class="row">
7-
<h1 class="page-header">{{ page.title }}</h1>
8-
9-
<p class="lead">
10-
We want your feedback!
11-
</p>
12-
7+
<div class="zd-section">
138
<p>Please choose a communication method that better suits your needs.</p>
149

1510
<ul>

download.html

+7-15
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@
22
layout: default
33
title: Download
44
slug: download
5+
lead: There are various ways to download Zeal, depending on which operating
6+
system you use, and whether you want to use pre-compiled binary, or build
7+
it yourself from the source code.
58
---
6-
<div class="row">
7-
<h1 class="page-header">{{ page.title }}</h1>
8-
9-
<p class="lead">
10-
There are various ways to download Zeal, depending on which operating
11-
system you use, and whether you want to use pre-compiled binary, or build
12-
it yourself from source code.
13-
</p>
14-
</div>
15-
16-
<div class="row">
9+
<div class="zd-section">
1710
<h2 id="windows">Windows</h2>
1811

1912
<h3>Stable release</h3>
@@ -35,10 +28,9 @@ <h3>CI builds</h3>
3528
<p>
3629
<a href="https://bintray.com/zealdocs/windows-ci" class="btn btn-default" role="button">View CI builds</a>
3730
</p>
38-
3931
</div>
4032

41-
<div class="row">
33+
<div class="zd-section">
4234
<h2 id="linux">Linux</h2>
4335

4436
<p>
@@ -98,7 +90,7 @@ <h3 id="linux-ubuntu">Ubuntu</h3>
9890
</p>
9991
</div>
10092

101-
<div class="row">
93+
<div class="zd-section">
10294
<h2 id="bsd">BSD</h2>
10395

10496
<h3 id="bsd-freebsd">FreeBSD</h3>
@@ -115,7 +107,7 @@ <h3 id="bsd-openbsd">OpenBSD</h3>
115107
<a href="http://openports.se/devel/zeal" class="btn btn-default" role="button">View OpenBSD Ports</a>
116108
</div>
117109

118-
<div class="row">
110+
<div class="zd-section">
119111
<h2 id="source">Source code</h2>
120112
<p>Complete source code is available on GitHub. To build Zeal follow instruction in the <code>README.md</code> file.</p>
121113
<p><a href="https://github.com/zealdocs/zeal" class="btn btn-default" role="button">Go to GitHub</a></p>

usage.html

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
title: Usage
44
slug: usage
55
---
6-
<div class="row">
7-
<h1 class="page-header">{{ page.title }}</h1>
8-
</div>
9-
<div class="row">
10-
<img class="pull-right" src="https://i.imgur.com/1gT8891.png" class="img-responsive">
6+
<div class="zd-section">
7+
<h2 id="download-docsets">Download Docsets</h2>
118

12-
<h2>Download Docsets</h2>
9+
<img class="pull-right" src="https://i.imgur.com/1gT8891.png" class="img-responsive">
1310

1411
<p>
1512
After installing Zeal go to <kbd>File</kbd><kbd>Options</kbd><kbd>Docsets</kbd> to browse and download
@@ -28,7 +25,9 @@ <h2>Search Filters</h2>
2825
<li><code>python:string</code> will search only docsets related to Python for <code>string</code></li>
2926
</ul>
3027
<img src="/static/img/search_filter.png" class="img-responsive">
28+
</div>
3129

30+
<div class="zd-section">
3231
<h2 id="plugins">IDE Plugins</h2>
3332

3433
<h3>Atom</h3>

0 commit comments

Comments
 (0)