Permalink
Browse files

first commit

  • Loading branch information...
rosario committed Nov 10, 2013
1 parent 2aa9d36 commit 42e577465bb996f7a5dd2d3c71c121ed7c3f2d29
View
@@ -0,0 +1,2 @@
+_site
+.DS_Store
View
@@ -0,0 +1,22 @@
+Copyright (c) 2013 Ghost Foundation - Released under The MIT License.
+
+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:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+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
+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.
View
@@ -1,4 +1,38 @@
-kasper
-======
+# Kasper
-Ghost's default theme (Casper) on Jekyll
+This is a port of Ghost's default theme [Casper](https://github.com/tryghost/casper) for Jekyll.
+Feel free to fork, change, modify and re-use it.
+
+## How to use it
+
+Simply clone this repository, and then run `jekyll -w serve` inside the directory.
+
+Kasper theme includes:
+
+* Pagination
+* Rss
+* Google Analytics Tracking code
+* Code Syntax Highlight
+* Author's profile with picture
+* Disqus comments
+
+## Screenshots
+
+<!-- ![index page](/assets/images/kasper-theme-index.png)
+![post page](/assets/images/kasper-theme-post.png)
+ -->
+
+## Thanks
+Most of the work as been already done by the Ghost team, I've just ported Casper to Jekyll.
+I've also added few things for specifid to Jekyll and some minor style changes.
+
+## Copyright & License
+
+Copyright (C) 2013 Ghost Foundation - Released under the MIT License.
+
+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:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+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
+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.
View
@@ -0,0 +1,12 @@
+name: Your New Jekyll Site
+description: Blogging about stuffs
+meta_description: "Your New Jekyll Site, Blogging about stuffs"
+
+markdown: redcarpet
+pygments: true
+logo: false
+paginate: 15
+
+# Details for the RSS feed generator
+url: 'blog url'
+author: 'Your Name'
View
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+
+ <title>{{ site.name }} - {{ site.description }}</title>
+ <meta name="description" content="{{ site.meta_description}}" />
+
+ <meta name="HandheldFriendly" content="True" />
+ <meta name="MobileOptimized" content="320" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+
+ <link rel="stylesheet" type="text/css" href="/assets/css/screen.css" />
+ <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic|Open+Sans:700,400" />
+ <!-- This is for syntax highlight -->
+ <link rel="stylesheet" type="text/css" href="/assets/css/syntax.css">
+ <!-- Customisation -->
+ <link rel="stylesheet" type="text/css" href="/assets/css/main.css" />
+
+</head>
+<body class="home-template">
+
+
+ {{ content }}
+
+ <footer class="site-footer">
+ <a class="subscribe icon-feed" href="{{ site.baseurl }}rss.xml"><span class="tooltip">Subscribe!</span></a>
+ <div class="inner">
+ <section class="copyright">All content copyright <a href="{{ site.baseurl }}">{{ site.name }}</a> &copy; {{date format="YYYY"}} &bull; All rights reserved.</section>
+ <section class="poweredby">Made with Jekyll using <a href="http://github.com/rosario/kasper">Kasper theme</a></section>
+
+ </section>
+ </div>
+ </footer>
+
+
+ <script type="text/javascript" src="/assets/js/jquery-1.10.2.min.js"></script>
+ <script type="text/javascript" src="/assets/js/jquery.fitvids.js"></script>
+ <script type="text/javascript" src="/assets/js/index.js"></script>
+
+ <!-- Google Analytics Tracking code -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+</body>
+</html>
View
@@ -0,0 +1,25 @@
+---
+layout: default
+---
+
+<main class="content" role="main">
+ <article class="post">
+ <header class="post-header">
+ <a id="blog-logo" href="{{site.baseurl}}">
+ {% if site.logo %}
+ <img src="{{site.logo}}" alt="{{ site.name }}" />
+ {% else %}
+ <span class="blog-title">{{ site.name }}</span>
+ {%endif%}
+ </a>
+ </header>
+
+ <h1 class="post-title">{{ page.title }}</h1>
+
+ <section class="post-content">
+ {{content}}
+ </section>
+
+ </article>
+
+</main>
View
@@ -0,0 +1,101 @@
+---
+layout: default
+disqus: false
+archive: false
+---
+
+<main class="content" role="main">
+
+ <article class="post">
+ <header class="post-header">
+ <a id="blog-logo" href="{{site.baseurl}}">
+ {% if site.logo %}
+ <img src="{{site.logo}}" alt="{{ site.name }}" />
+ {% else %}
+ <span class="blog-title">{{ site.name }}</span>
+ {%endif%}
+ </a>
+ </header>
+
+ <span class="post-meta">
+ <time datetime="{{ page.date | date_to_string }}">{{ page.date | date_to_string }}</time>
+ {% if post.categories %}
+ on
+ {% for category in page.categories %}
+ {{category}}
+ {% endfor %}
+ {% endif %}
+ </span>
+
+ <h1 class="post-title">{{ page.title }}</h1>
+
+ <section class="post-content">
+ {{content}}
+ </section>
+
+ {% if page.archive %}
+ <section class="archive">
+ <h5>Archive</h5>
+ <ul>
+ {% for post in site.posts %}
+ <li><span>{{ post.date | date_to_string }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </section>
+ {% endif %}
+
+ <footer class="post-footer">
+ <!-- If we want to display author's name and bio -->
+ {% if site.author %}
+ <section class="author">
+ <header> <a href="{{ site.baseurl }}"> <img class="profile" src="/assets/images/profile.png"></a></header>
+ <article>
+ <!-- Author Name -->
+ <h4> {{ site.author }} </h4>
+ <!-- Author Bio -->
+ <p>
+ Here goes the author description. You might want to place some links too in here
+ </p>
+ </article>
+ </section>
+ {% endif %}
+
+ <section class="share">
+ <h4>Share this post</h4>
+ <a class="icon-twitter" href="http://twitter.com/share?text={{page.title}}&url={{ page.url }}"
+ onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
+ <span class="hidden">Twitter</span>
+ </a>
+ <a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{page.url}}"
+ onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
+ <span class="hidden">Facebook</span>
+ </a>
+ <a class="icon-google-plus" href="https://plus.google.com/share?url={{page.url}}"
+ onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
+ <span class="hidden">Google+</span>
+ </a>
+ </section>
+
+ {% if page.disqus %}
+ <section class="disqus">
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+
+ var disqus_shortname = '';
+ var disqus_developer = 0; // developer mode is on
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+ <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
+ </section>
+ {% endif %}
+
+ </footer>
+
+ </article>
+
+</main>
Oops, something went wrong.

0 comments on commit 42e5774

Please sign in to comment.