Skip to content

Commit 42e5774

Browse files
committed
first commit
1 parent 2aa9d36 commit 42e5774

26 files changed

+2108
-3
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_site
2+
.DS_Store

LICENSE.txt

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

README.md

+37-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,38 @@
1-
kasper
2-
======
1+
# Kasper
32

4-
Ghost's default theme (Casper) on Jekyll
3+
This is a port of Ghost's default theme [Casper](https://github.com/tryghost/casper) for Jekyll.
4+
Feel free to fork, change, modify and re-use it.
5+
6+
## How to use it
7+
8+
Simply clone this repository, and then run `jekyll -w serve` inside the directory.
9+
10+
Kasper theme includes:
11+
12+
* Pagination
13+
* Rss
14+
* Google Analytics Tracking code
15+
* Code Syntax Highlight
16+
* Author's profile with picture
17+
* Disqus comments
18+
19+
## Screenshots
20+
21+
<!-- ![index page](/assets/images/kasper-theme-index.png)
22+
![post page](/assets/images/kasper-theme-post.png)
23+
-->
24+
25+
## Thanks
26+
Most of the work as been already done by the Ghost team, I've just ported Casper to Jekyll.
27+
I've also added few things for specifid to Jekyll and some minor style changes.
28+
29+
## Copyright & License
30+
31+
Copyright (C) 2013 Ghost Foundation - Released under the MIT License.
32+
33+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
34+
35+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
36+
37+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

_config.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Your New Jekyll Site
2+
description: Blogging about stuffs
3+
meta_description: "Your New Jekyll Site, Blogging about stuffs"
4+
5+
markdown: redcarpet
6+
pygments: true
7+
logo: false
8+
paginate: 15
9+
10+
# Details for the RSS feed generator
11+
url: 'blog url'
12+
author: 'Your Name'

_layouts/default.html

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6+
7+
<title>{{ site.name }} - {{ site.description }}</title>
8+
<meta name="description" content="{{ site.meta_description}}" />
9+
10+
<meta name="HandheldFriendly" content="True" />
11+
<meta name="MobileOptimized" content="320" />
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
13+
14+
15+
<link rel="stylesheet" type="text/css" href="/assets/css/screen.css" />
16+
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic|Open+Sans:700,400" />
17+
<!-- This is for syntax highlight -->
18+
<link rel="stylesheet" type="text/css" href="/assets/css/syntax.css">
19+
<!-- Customisation -->
20+
<link rel="stylesheet" type="text/css" href="/assets/css/main.css" />
21+
22+
</head>
23+
<body class="home-template">
24+
25+
26+
{{ content }}
27+
28+
<footer class="site-footer">
29+
<a class="subscribe icon-feed" href="{{ site.baseurl }}rss.xml"><span class="tooltip">Subscribe!</span></a>
30+
<div class="inner">
31+
<section class="copyright">All content copyright <a href="{{ site.baseurl }}">{{ site.name }}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
32+
<section class="poweredby">Made with Jekyll using <a href="http://github.com/rosario/kasper">Kasper theme</a></section>
33+
34+
</section>
35+
</div>
36+
</footer>
37+
38+
39+
<script type="text/javascript" src="/assets/js/jquery-1.10.2.min.js"></script>
40+
<script type="text/javascript" src="/assets/js/jquery.fitvids.js"></script>
41+
<script type="text/javascript" src="/assets/js/index.js"></script>
42+
43+
<!-- Google Analytics Tracking code -->
44+
<script type="text/javascript">
45+
46+
var _gaq = _gaq || [];
47+
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
48+
_gaq.push(['_trackPageview']);
49+
50+
(function() {
51+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
52+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
53+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
54+
})();
55+
56+
</script>
57+
</body>
58+
</html>

_layouts/page.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
---
4+
5+
<main class="content" role="main">
6+
<article class="post">
7+
<header class="post-header">
8+
<a id="blog-logo" href="{{site.baseurl}}">
9+
{% if site.logo %}
10+
<img src="{{site.logo}}" alt="{{ site.name }}" />
11+
{% else %}
12+
<span class="blog-title">{{ site.name }}</span>
13+
{%endif%}
14+
</a>
15+
</header>
16+
17+
<h1 class="post-title">{{ page.title }}</h1>
18+
19+
<section class="post-content">
20+
{{content}}
21+
</section>
22+
23+
</article>
24+
25+
</main>

_layouts/post.html

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
layout: default
3+
disqus: false
4+
archive: false
5+
---
6+
7+
<main class="content" role="main">
8+
9+
<article class="post">
10+
<header class="post-header">
11+
<a id="blog-logo" href="{{site.baseurl}}">
12+
{% if site.logo %}
13+
<img src="{{site.logo}}" alt="{{ site.name }}" />
14+
{% else %}
15+
<span class="blog-title">{{ site.name }}</span>
16+
{%endif%}
17+
</a>
18+
</header>
19+
20+
<span class="post-meta">
21+
<time datetime="{{ page.date | date_to_string }}">{{ page.date | date_to_string }}</time>
22+
{% if post.categories %}
23+
on
24+
{% for category in page.categories %}
25+
{{category}}
26+
{% endfor %}
27+
{% endif %}
28+
</span>
29+
30+
<h1 class="post-title">{{ page.title }}</h1>
31+
32+
<section class="post-content">
33+
{{content}}
34+
</section>
35+
36+
{% if page.archive %}
37+
<section class="archive">
38+
<h5>Archive</h5>
39+
<ul>
40+
{% for post in site.posts %}
41+
<li><span>{{ post.date | date_to_string }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
42+
{% endfor %}
43+
</ul>
44+
</section>
45+
{% endif %}
46+
47+
<footer class="post-footer">
48+
<!-- If we want to display author's name and bio -->
49+
{% if site.author %}
50+
<section class="author">
51+
<header> <a href="{{ site.baseurl }}"> <img class="profile" src="/assets/images/profile.png"></a></header>
52+
<article>
53+
<!-- Author Name -->
54+
<h4> {{ site.author }} </h4>
55+
<!-- Author Bio -->
56+
<p>
57+
Here goes the author description. You might want to place some links too in here
58+
</p>
59+
</article>
60+
</section>
61+
{% endif %}
62+
63+
<section class="share">
64+
<h4>Share this post</h4>
65+
<a class="icon-twitter" href="http://twitter.com/share?text={{page.title}}&url={{ page.url }}"
66+
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
67+
<span class="hidden">Twitter</span>
68+
</a>
69+
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{page.url}}"
70+
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
71+
<span class="hidden">Facebook</span>
72+
</a>
73+
<a class="icon-google-plus" href="https://plus.google.com/share?url={{page.url}}"
74+
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
75+
<span class="hidden">Google+</span>
76+
</a>
77+
</section>
78+
79+
{% if page.disqus %}
80+
<section class="disqus">
81+
<div id="disqus_thread"></div>
82+
<script type="text/javascript">
83+
84+
var disqus_shortname = '';
85+
var disqus_developer = 0; // developer mode is on
86+
(function() {
87+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
88+
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
89+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
90+
})();
91+
</script>
92+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
93+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
94+
</section>
95+
{% endif %}
96+
97+
</footer>
98+
99+
</article>
100+
101+
</main>

0 commit comments

Comments
 (0)