Skip to content

Commit 5ae8e2c

Browse files
author
Ram swaroop
committed
initial commit
0 parents  commit 5ae8e2c

35 files changed

+1422
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_site
2+
.sass-cache

404.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: page
3+
title: "Page not found"
4+
permalink: /404.html
5+
hide: true
6+
---
7+
Sorry, the requested page wasn't found on the server.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Rohan Chandra
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, 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,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Type Theme
2+
3+
![Default Type Theme blog](https://cloud.githubusercontent.com/assets/816965/5142407/19742e48-71d6-11e4-8d9d-fdfe010784f0.png)
4+
5+
A free and open-source [Jekyll](http://jekyllrb.com) theme. Great for blogs and easy to customize.
6+
7+
## Get Started
8+
9+
[Demo](https://rohanchandra.github.io/type-theme/)
10+
11+
[Using Type](https://rohanchandra.github.io/project/type/)
12+
13+
## License
14+
The MIT License (MIT)

_config.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SITE CONFIGURATION
2+
baseurl: "" # the subpath of your site, e.g. /blog/
3+
url: "http://example.com" # the base hostname & protocol for your site
4+
5+
# THEME-SPECIFIC CONFIGURATION
6+
theme:
7+
# Meta
8+
title: Type Theme
9+
avatar: avatar.png
10+
gravatar: # Email MD5 hash
11+
description: "A website with blog posts and pages" # used by search engines
12+
13+
# Header and footer text
14+
header_text: >
15+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
16+
17+
<p>Remove all header text in <code>_config.yml</code> to disable this feature.</p>
18+
header_text_feature_image:
19+
footer_text: >
20+
Powered by <a href="http://jekyllrb.com">Jekyll</a> with <a href="https://rohanchandra.github.io/project/type/">Type Theme</a>
21+
22+
# Icons
23+
rss: false
24+
email_address: # Full email address, e.g. "sam@example.com"
25+
behance:
26+
bitbucket:
27+
dribbble:
28+
facebook:
29+
flickr:
30+
github: "rohanchandra/type-theme"
31+
google_plus:
32+
instagram:
33+
linkedin: # Full URL
34+
pinterest:
35+
reddit:
36+
soundcloud:
37+
stack_exchange: # Full URL
38+
steam:
39+
tumblr:
40+
twitter: "twitter"
41+
wordpress:
42+
youtube:
43+
44+
# Scripts
45+
google_analytics: # Tracking ID, e.g. "UA-000000-01"
46+
disqus_shortname:
47+
katex: true # Enable if using math markup
48+
49+
# Localization strings
50+
str_follow_on: "Follow on"
51+
str_rss_follow: "Follow RSS feed"
52+
str_email: "Email"
53+
str_next: "Next"
54+
str_prev: "Prev"
55+
str_continue_reading: "Continue reading"
56+
57+
# Colours, typography and padding
58+
# Open the "_sass > base" folder, and open "_variables.scss"
59+
google_fonts: "Source+Sans+Pro:400,700,700italic,400italic"
60+
61+
# PAGINATION
62+
paginate: 5
63+
paginate_path: "blog/page:num"
64+
65+
# BUILD SETTINGS
66+
markdown: kramdown
67+
highlighter: pygments
68+
sass:
69+
sass_dir: _sass
70+
style: :compressed

_includes/disqus.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div id="disqus_thread"></div>
2+
<script type="text/javascript">
3+
var disqus_shortname = '{{ site.theme.disqus_shortname }}';
4+
(function() {
5+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
6+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
7+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
8+
})();
9+
</script>
10+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

_includes/footer.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script src="{{ "/js/main.js" | prepend: site.baseurl }}"></script>
2+
3+
{% if site.theme.footer_text %}
4+
<footer class="site-footer">
5+
<p class="text">{{ site.theme.footer_text }}</p>
6+
</footer>
7+
{% endif %}

_includes/head.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme.title }}</title>
4+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme.description }}{% endif %}">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta http-equiv="X-Frame-Options" content="sameorigin">
7+
8+
<!-- CSS -->
9+
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10+
11+
<!--Favicon-->
12+
<link rel="shortcut icon" href="{{ "/favicon.ico" | prepend: site.baseurl }}" type="image/x-icon">
13+
14+
<!-- Canonical -->
15+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
16+
17+
<!-- RSS -->
18+
<link rel="alternate" type="application/atom+xml" title="{{ site.theme.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
19+
20+
<!-- Font Awesome -->
21+
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
22+
23+
<!-- Google Fonts -->
24+
{% if site.theme.google_fonts %}
25+
<link href="//fonts.googleapis.com/css?family={{ site.theme.google_fonts }}" rel="stylesheet" type="text/css">
26+
{% endif %}
27+
28+
<!-- KaTeX -->
29+
{% if site.theme.katex %}
30+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css">
31+
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.js"></script>
32+
{% endif %}
33+
34+
<!-- Google Analytics -->
35+
{% if site.theme.google_analytics %}
36+
<script>
37+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
38+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
39+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
40+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
41+
42+
ga('create', '{{ site.theme.google_analytics }}', 'auto');
43+
ga('send', 'pageview');
44+
</script>
45+
{% endif %}
46+
</head>

_includes/header.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<header class="site-header">
2+
<div class="branding">
3+
{% if site.theme.gravatar %}
4+
<a href="{{ site.baseurl }}/">
5+
<img class="avatar" src="https://secure.gravatar.com/avatar/{{ site.theme.gravatar }}?s=100" alt=""/>
6+
</a>
7+
{% elsif site.theme.avatar %}
8+
<a href="{{ site.baseurl }}/">
9+
<img class="avatar" src="/img/{{ site.theme.avatar }}" alt=""/>
10+
</a>
11+
{% endif %}
12+
<h1 class="site-title">
13+
<a href="{{ site.baseurl }}/">{{ site.theme.title }}</a>
14+
</h1>
15+
</div>
16+
<nav class="site-nav">
17+
<ul>
18+
{% for page in site.pages %}
19+
{% if page.title and page.hide != true %}
20+
<li>
21+
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">
22+
{{ page.title }}
23+
</a>
24+
</li>
25+
{% endif %}
26+
{% endfor %}
27+
<!-- Social icons from Font Awesome, if enabled -->
28+
{% include icons.html %}
29+
</ul>
30+
</nav>
31+
</header>

_includes/icons.html

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
{% if site.theme.rss %}
2+
<li>
3+
<a href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" title="{{ site.theme.str_rss_follow }}">
4+
<i class="fa fa-fw fa-rss"></i>
5+
</a>
6+
</li>
7+
{% endif %}
8+
9+
{% if site.theme.email_address %}
10+
<li>
11+
<a href="mailto:{{ site.theme.email_address }}" title="{{ site.theme.str_email }}">
12+
<i class="fa fa-fw fa-envelope"></i>
13+
</a>
14+
</li>
15+
{% endif %}
16+
17+
{% if site.theme.behance %}
18+
<li>
19+
<a href="https://www.behance.net/{{ site.theme.behance }}" title="{{ site.theme.str_follow_on }} Behance">
20+
<i class="fa fa-fw fa-behance"></i>
21+
</a>
22+
</li>
23+
{% endif %}
24+
25+
{% if site.theme.bitbucket %}
26+
<li>
27+
<a href="https://bitbucket.org/{{ site.theme.bitbucket }}" title="{{ site.theme.str_follow_on }} Bitbucket">
28+
<i class="fa fa-fw fa-bitbucket"></i>
29+
</a>
30+
</li>
31+
{% endif %}
32+
33+
{% if site.theme.dribbble %}
34+
<li>
35+
<a href="https://dribbble.com/{{ site.theme.dribbble }}" title="{{ site.theme.str_follow_on }} Dribbble">
36+
<i class="fa fa-fw fa-dribbble"></i>
37+
</a>
38+
</li>
39+
{% endif %}
40+
41+
{% if site.theme.facebook %}
42+
<li>
43+
<a href="https://www.facebook.com/{{ site.theme.facebook }}" title="{{ site.theme.str_follow_on }} Facebook">
44+
<i class="fa fa-fw fa-facebook"></i>
45+
</a>
46+
</li>
47+
{% endif %}
48+
49+
{% if site.theme.flickr %}
50+
<li>
51+
<a href="https://www.flickr.com/photos/{{ site.theme.flickr }}" title="{{ site.theme.str_follow_on }} Flickr">
52+
<i class="fa fa-fw fa-flickr"></i>
53+
</a>
54+
</li>
55+
{% endif %}
56+
57+
{% if site.theme.github %}
58+
<li>
59+
<a href="https://github.com/{{ site.theme.github }}" title="{{ site.theme.str_follow_on }} GitHub">
60+
<i class="fa fa-fw fa-github"></i>
61+
</a>
62+
</li>
63+
{% endif %}
64+
65+
{% if site.theme.google_plus %}
66+
<li>
67+
<a href="https://plus.google.com/{{ site.theme.google_plus }}" title="{{ site.theme.str_follow_on }} Google+">
68+
<i class="fa fa-fw fa-google-plus"></i>
69+
</a>
70+
</li>
71+
{% endif %}
72+
73+
{% if site.theme.instagram %}
74+
<li>
75+
<a href="http://instagram.com/{{ site.theme.instagram }}" title="{{ site.theme.str_follow_on }} Instagram">
76+
<i class="fa fa-fw fa-instagram"></i>
77+
</a>
78+
</li>
79+
{% endif %}
80+
81+
{% if site.theme.linkedin %}
82+
<li>
83+
<a href="{{ site.theme.linkedin }}" title="{{ site.theme.str_follow_on }} LinkedIn">
84+
<i class="fa fa-fw fa-linkedin"></i>
85+
</a>
86+
</li>
87+
{% endif %}
88+
89+
{% if site.theme.pinterest %}
90+
<li>
91+
<a href="http://www.pinterest.com/{{ site.theme.pinterest }}" title="{{ site.theme.str_follow_on }} Pinterest">
92+
<i class="fa fa-fw fa-pinterest"></i>
93+
</a>
94+
</li>
95+
{% endif %}
96+
97+
{% if site.theme.reddit %}
98+
<li>
99+
<a href="https://www.reddit.com/user/{{ site.theme.reddit }}" title="{{ site.theme.str_follow_on }} Reddit">
100+
<i class="fa fa-fw fa-reddit"></i>
101+
</a>
102+
</li>
103+
{% endif %}
104+
105+
{% if site.theme.soundcloud %}
106+
<li>
107+
<a href="https://soundcloud.com/{{ site.theme.soundcloud }}" title="{{ site.theme.str_follow_on }} SoundCloud">
108+
<i class="fa fa-fw fa-soundcloud"></i>
109+
</a>
110+
</li>
111+
{% endif %}
112+
113+
{% if site.theme.stack_exchange %}
114+
<li>
115+
<a href="{{ site.theme.stack_exchange }}" title="{{ site.theme.str_follow_on }} Stack Exchange">
116+
<i class="fa fa-fw fa-stack-exchange"></i>
117+
</a>
118+
</li>
119+
{% endif %}
120+
121+
{% if site.theme.steam %}
122+
<li>
123+
<a href="http://steamcommunity.com/id/{{ site.theme.steam }}" title="{{ site.theme.str_follow_on }} Steam">
124+
<i class="fa fa-fw fa-steam"></i>
125+
</a>
126+
</li>
127+
{% endif %}
128+
129+
{% if site.theme.tumblr %}
130+
<li>
131+
<a href="http://{{ site.theme.tumblr }}.tumblr.com/" title="{{ site.theme.str_follow_on }} Tumblr">
132+
<i class="fa fa-fw fa-tumblr"></i>
133+
</a>
134+
</li>
135+
{% endif %}
136+
137+
{% if site.theme.twitter %}
138+
<li>
139+
<a href="https://twitter.com/{{ site.theme.twitter }}" title="{{ site.theme.str_follow_on }} Twitter">
140+
<i class="fa fa-fw fa-twitter"></i>
141+
</a>
142+
</li>
143+
{% endif %}
144+
145+
{% if site.theme.wordpress %}
146+
<li>
147+
<a href="https://{{ site.theme.wordpress }}.wordpress.com/" title="{{ site.theme.str_follow_on }} WordPress">
148+
<i class="fa fa-fw fa-wordpress"></i>
149+
</a>
150+
</li>
151+
{% endif %}
152+
153+
{% if site.theme.youtube %}
154+
<li>
155+
<a href="https://www.youtube.com/user/{{ site.theme.youtube }}" title="{{ site.theme.str_follow_on }} YouTube">
156+
<i class="fa fa-fw fa-youtube"></i>
157+
</a>
158+
</li>
159+
{% endif %}

0 commit comments

Comments
 (0)