Skip to content

Commit 88816f0

Browse files
author
Akash.S
committed
fixing design
1 parent 2a8cb6c commit 88816f0

File tree

8 files changed

+129
-20
lines changed

8 files changed

+129
-20
lines changed

404.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout: page
3+
permalink: 404.html
4+
---
5+
<style>
6+
pre {
7+
background: none;
8+
border: none;
9+
}
10+
</style>
11+
12+
<pre>
13+
14+
444444444 000000000 444444444
15+
4::::::::4 00:::::::::00 4::::::::4
16+
4:::::::::4 00:::::::::::::00 4:::::::::4
17+
4::::44::::4 0:::::::000:::::::0 4::::44::::4
18+
4::::4 4::::4 0::::::0 0::::::0 4::::4 4::::4
19+
4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
20+
4::::4 4::::4 0:::::0 0:::::0 4::::4 4::::4
21+
4::::444444::::4440:::::0 000 0:::::04::::444444::::444
22+
4::::::::::::::::40:::::0 000 0:::::04::::::::::::::::4
23+
4444444444:::::4440:::::0 0:::::04444444444:::::444
24+
4::::4 0:::::0 0:::::0 4::::4
25+
4::::4 0::::::0 0::::::0 4::::4
26+
4::::4 0:::::::000:::::::0 4::::4
27+
44::::::44 00:::::::::::::00 44::::::44
28+
4::::::::4 00:::::::::00 4::::::::4
29+
4444444444 000000000 4444444444
30+
31+
,-----. _ _ _ _ _ _ _
32+
,'_/_|_\_`. | |_| |__ (_)___ ___| |__ ___ _ _| | __| | _ __ ___ | |_
33+
/<<::8[O]::>\ | __| '_ \| / __| / __| '_ \ / _ \| | | | |/ _` | | '_ \ / _ \| __|
34+
_|-----------|_ | |_| | | | \__ \ \__ \ | | | (_) | |_| | | (_| | | | | | (_) | |_
35+
:::| | ====-=- | |::: \__|_| |_|_|___/ |___/_| |_|\___/ \__,_|_|\__,_| |_| |_|\___/ \__|
36+
:::| | -=-==== | |:::
37+
:::\ | ::::|()|| /::: _
38+
::::| | ....|()|| |:::: | |__ __ _ _ __ _ __ ___ _ __ _____ _____ _ __
39+
| |_________| | | '_ \ / _` | '_ \| '_ \ / _ \ '_ \ / _ \ \ / / _ \ '__|
40+
| |\_______/| | | | | | (_| | |_) | |_) | __/ | | |_ | __/\ V / __/ |
41+
/ \ / \ / \ |_| |_|\__,_| .__/| .__/ \___|_| |_( ) \___| \_/ \___|_|
42+
`---' `---' `---' |_| |_| |/
43+
44+
45+
</pre>

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 İsmail Demirbilek
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

_includes/anchors.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="btn-group hidden-xs" id="nav-menu">
2+
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
3+
<i class="fa fa-bars"></i>
4+
</button>
5+
6+
<ul class="dropdown-menu postAnchors" role="menu">
7+
8+
</ul>
9+
</div>
10+

_includes/default.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,6 @@
7474
</div><!-- /.navbar-collapse -->
7575
</nav>
7676

77-
<!-- nav-menu-dropdown -->
78-
<div class="btn-group hidden-xs" id="nav-menu">
79-
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
80-
<i class="fa fa-bars"></i>
81-
</button>
82-
<ul class="dropdown-menu" role="menu">
83-
<li><a href="{{ site.BASE_PATH}}/"><i class="fa fa-home"></i>Home</a></li>
84-
<li><a href="{{ site.BASE_PATH}}/{{ site.categories_path }}"><i class="fa fa-folder"></i>Categories</a></li>
85-
<li><a href="{{ site.BASE_PATH}}/{{ site.tags_path }}"><i class="fa fa-tags"></i>Tags</a></li>
86-
<li class="divider"></li>
87-
<li><a href="#"><i class="fa fa-arrow-up"></i>Top of Page</a></li>
88-
</ul>
89-
</div>
9077

9178
<div class="col-sm-3 sidebar hidden-xs" style="{% if site.sidebar_background_image %}background: url({{site.sidebar_background_image}}) no-repeat !important;{% endif %}">
9279
{% include sidebar.html %}

_includes/post.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,37 @@ <h4 class="section-title author-name">{{site.author.name}}</h4>
121121
</div>
122122
</article>
123123
<div class="clearfix"></div>
124+
125+
126+
<script>
127+
var anchorForId = function (id) {
128+
var anchor = document.createElement("a");
129+
anchor.className = "header-link";
130+
anchor.href = "#" + id;
131+
anchor.innerHTML = "<i class=\"fa fa-link\"></i>";
132+
return anchor;
133+
};
134+
135+
var linkifyAnchors = function (level, containingElement) {
136+
var headers = containingElement.getElementsByTagName("h" + level);
137+
for (var h = 0; h < headers.length; h++) {
138+
var header = headers[h];
139+
140+
if (typeof header.id !== "undefined" && header.id !== "") {
141+
header.appendChild(anchorForId(header.id));
142+
}
143+
}
144+
};
145+
146+
document.onreadystatechange = function () {
147+
if (this.readyState === "complete") {
148+
var contentBlock = document.getElementsByClassName("article_body")[0];
149+
if (!contentBlock) {
150+
return;
151+
}
152+
for (var level = 1; level <= 6; level++) {
153+
linkifyAnchors(level, contentBlock);
154+
}
155+
}
156+
};
157+
</script>

_includes/rightlinks.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div class="btn-group hidden-xs" id="nav-menu">
2+
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
3+
<i class="fa fa-bars"></i>
4+
</button>
5+
<ul class="dropdown-menu" role="menu">
6+
<li><a href="{{ site.BASE_PATH}}/"><i class="fa fa-home"></i>Home</a></li>
7+
<li><a href="{{ site.BASE_PATH}}/{{ site.categories_path }}"><i class="fa fa-folder"></i>Categories</a></li>
8+
<li><a href="{{ site.BASE_PATH}}/{{ site.tags_path }}"><i class="fa fa-tags"></i>Tags</a></li>
9+
<li class="divider"></li>
10+
<li><a href="#"><i class="fa fa-arrow-up"></i>Top of Page</a></li>
11+
</ul>
12+
</div>

_includes/sidebar.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ <h3 class="title">
3737
</a>
3838
</li>
3939
{% endif %}
40-
</ul>
41-
<ul id="contact-list-secondary" class="list-unstyled list-inline">
4240
{% if site.author.pinterest %}
4341
<li>
4442
<a class="btn btn-default btn-sm" href="https://pinterest.com/{{ site.author.pinterest }}">
@@ -53,11 +51,12 @@ <h3 class="title">
5351
</a>
5452
</li>
5553
{% endif %}
56-
<li>
57-
<a class="btn btn-default btn-sm" href="{{ site.BASE_PATH }}/{{ site.rss_path }}">
58-
<i class="fa fa-rss fa-lg"></i>
59-
</a>
60-
</li>
54+
</ul>
55+
56+
<ul class="list-unstyled list-inline">
57+
<li class="active"><a href="{{ site.BASE_PATH }}/">Home</a></li>
58+
<li><a href="{{ site.BASE_PATH}}/{{ site.categories_path }}">Categories</a></li>
59+
<li><a href="{{ site.BASE_PATH}}/{{ site.tags_path }}">Tags</a></li>
6160
</ul>
6261
</div>
6362
<!-- sidebar.html end -->

_layouts/page.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
layout: default
33
---
44
{% include page.html %}
5+
6+
{% include rightlinks.html %}

0 commit comments

Comments
 (0)