Skip to content

Commit 1f8b063

Browse files
committed
Updated template
1 parent 889c9c8 commit 1f8b063

File tree

6 files changed

+3715
-30
lines changed

6 files changed

+3715
-30
lines changed

_includes/google-analytics.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script type="text/javascript">var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-40829804-1"]);_gaq.push(["_trackPageview"]);(function(){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();</script>

_layouts/default.html

+113-30
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,113 @@
1-
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
<title>{{ page.title }}</title>
5-
<!-- link to main stylesheet -->
6-
<link rel="stylesheet" type="text/css" href="/css/main.css">
7-
</head>
8-
<body>
9-
<nav>
10-
<ul>
11-
<li><a href="/">home</a></li>
12-
<li><a href="/projects">projects</a></li>
13-
<li><a href="/album">album</a></li>
14-
<li><a href="/cv">cv</a></li>
15-
</ul>
16-
</nav>
17-
<div class="container">
18-
19-
{{ content }}
20-
21-
</div><!-- /.container -->
22-
<footer>
23-
<ul>
24-
<li><a href="mailto:[email protected]">email</a></li>
25-
<li><a href="https://github.com/anuragkh">github</a></li>
26-
<li><a href="https://www.facebook.com/anurag.khandelwal">facebook</a></li>
27-
</ul>
28-
</footer>
29-
</body>
30-
</html>
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
{% comment %}
7+
8+
We check to see what the page title is before appending
9+
"| Chris Cummins" to it, as otherwise this would result with an
10+
index title of "Chris Cummins | Chris Cummins".
11+
12+
{% endcomment %}
13+
{% if page.title == "Anurag Khandelwal" %}
14+
<title>{{ page.title }}</title>
15+
{% else %}
16+
<title>{{ page.title }} | Anurag Khandelwal</title>
17+
{% endif %}
18+
<meta name="description" content="The personal website of software developer and geek Chris Cummins.">
19+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
20+
<meta name="msapplication-tooltip" content="Chris Cummins personal website">
21+
22+
<link href="http://fonts.googleapis.com/css?family=Montserrat:700,400" rel="stylesheet" type="text/css">
23+
<link rel="stylesheet" href="/css/styles.css">
24+
<!--[if lt IE 9]>
25+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
26+
<![endif]-->
27+
28+
<link rel="icon" href="/favicon.ico" type="image/x-icon">
29+
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
30+
31+
{%include google-analytics.html %}
32+
</head>
33+
34+
<body>
35+
36+
<div class="wrapper">
37+
38+
{% comment %}
39+
40+
The header section. Contains title, navbar links, a picture, and
41+
external links.
42+
43+
{% endcomment %}
44+
<header>
45+
<center>
46+
<h1>
47+
<a href="/">ANURAG<b>KHANDELWAL</b></a>
48+
<ul>
49+
<li><a href="/projects/">projects</a></li>
50+
<li><a href="http://musingsofaboredmind.com/">blog</a></li>
51+
<li><a href="/cv/">cv</a></li>
52+
</ul>
53+
</h1>
54+
<div class="img-frame"><img src="/images/me.jpg" width="180" height="180"/></div>
55+
{% comment %} External Links {% endcomment %}
56+
<ul>
57+
<li><a href="https://github.com/anuragkh" target="_blank">GitHub<small>Code goes here</small></a></li>
58+
<li><a href="http://www.linkedin.com/in/anuragkh" target="_blank">Linked In<small>All professional like</small></a></li>
59+
<li><a href="http://www.facebook.com/anurag.khandelwal" target="_blank">Facebook<small>All unprofessional like</small></a></li>
60+
</ul>
61+
</center>
62+
</header>
63+
64+
<section>
65+
{% comment %}
66+
67+
The page.date and page.render_post variables are used as a sentinel
68+
to find out if we are rendering a post. If either are present,
69+
we use the post style.
70+
71+
{% endcomment %}
72+
{% if page.date or page.render_post %}
73+
<div id="post">
74+
<h1 class="title">{{ page.title }}</h1>
75+
<h1 class="title" id="hidden-title"></h1>
76+
{% endif %}
77+
78+
{{ content }}
79+
80+
{% if page.date or page.render_post %}
81+
<div class="nav">
82+
<hr>
83+
84+
<div class="next">
85+
{% if page.next %}
86+
<a href="{{ page.next.url }}" title="Read the previous post">Newer post</a>
87+
{% else %}
88+
<a href="/#posts" title="Return to home page">Read more</a>
89+
{% endif %}
90+
</div>
91+
92+
<div class="previous">
93+
{% if page.previous %}
94+
<a href="{{ page.previous.url }}" title="Read the previous post">Older post</a>
95+
{% else %}
96+
<a href="/#posts" title="Return to home page">Read more</a>
97+
{% endif %}
98+
</div>
99+
100+
{% if page.date %}
101+
<div class="date">
102+
{{ page.date | date_to_string }}
103+
</div>
104+
{% endif %}
105+
</div>
106+
{% endif %}
107+
</section>
108+
</div>
109+
110+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
111+
<script src="/js/site.min.js"></script>
112+
</body>
113+
</html>

0 commit comments

Comments
 (0)