Giter Site home page Giter Site logo

kasper's Introduction

Kasper

This is a port of Ghost's default theme Casper v1 for Jekyll. Here is a live demo.

Feel free to fork, change, modify and re-use it.

Installation

git clone https://github.com/rosario/kasper.git
cd kasper
gem install jekyll
gem install jekyll-paginate

Change _config.yml

Change the following settings in _config.yaml. Most likely you want the baseurl: ""

baseurl: ""
domain_name: "yourblog-domain.com"

How to use it

Build page and start local web server

jekyll serve

Build page into _site folder

jekyll build

Kasper theme includes

  • Pagination
  • Rss
  • Google Analytics Tracking code
  • Code Syntax Highlight
  • Author's profile with picture
  • Disqus comments

Screenshots

index page post page

Thanks

Most of the work has been already done by the Ghost team, I've just ported Casper to Jekyll. I've also added few things specific 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.

kasper's People

Contributors

federivo avatar jasonrhaas avatar kentliau avatar lokyoung avatar lukaszklis avatar mikevitale42 avatar mskims avatar pavelbinar avatar potados99 avatar rosario avatar surdu avatar zodvik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kasper's Issues

jekyll 3.x error

detail info:

Deprecation: Collection#map should be called on the #docs array directly.
                    Called by /Users/huoqiu/Documents/blog/_plugins/rssgenerator.rb:46:in `block in generate'.
       Deprecation: Collection#count should be called on the #docs array directly.
                    Called by /Users/huoqiu/Documents/blog/_plugins/rssgenerator.rb:49:in `rescue in block in generate'.
       Deprecation: Collection#reverse should be called on the #docs array directly.
                    Called by /Users/huoqiu/Documents/blog/_plugins/rssgenerator.rb:51:in `block in generate'.
       Deprecation: Document#title is now a key in the #data hash.
                    Called by /Users/huoqiu/Documents/blog/_plugins/rssgenerator.rb:53:in `block (3 levels) in generate'.
       Deprecation: Document#excerpt is now a key in the #data hash.
                    Called by /Users/huoqiu/Documents/blog/_plugins/rssgenerator.rb:55:in `block (3 levels) in generate'.

Automatic add class "full-img" to img

In my post, both ![dormitory]({{site.baseurl}}image/post/dormitory.jpg)
and <img src="/image/post/dormitory.jpg" alt="dormitory">
will render same tag with a full-img class added
<img src="/image/post/dormitory.jpg" alt="dormitory" class="full-img">

Why that add it automaticly? And how can I avoid that?

Include a separate page for tagged articles

Hello,

This issue is w.r.t #12

Thanks for this amazing theme. I was able to configure it a lot but I am stuck at making a feature in which if I click on a tag it should take me to a new page with all the related articles of the same tag. I am still trying to make one, if I complete it, I will open a pull request but if anyone can do it quickly that would be really great!

Replace google font library

Thank you very much to provide such a good theme

Because google has been blocked in China,This leads to my blog very slow access speed.

How do I need to do to replace google font library is loaded on each page issue.

I need to replace it fonts.useso.com

Thank you

URL for Social sharing on post footer not working

The social sharing on post footer have some URL issues.

If I use {{ post.url}} instead of your {{ page.url}}, it is not working. I want to manually add my home URL with {{ page.url}} in sharing code.

Like http://myhomepage{{ page.url}}

Now my code look like,

<a class="icon-twitter" href="http://twitter.com/share?text={{page.title}}&url=http://sarathlal.com{{ page.url }}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"> <span class="hidden">Twitter</span> </a>

Even in Kasper demo, the links for social sharing are broken.

Logo

Can you somehow work out how to include a logo on top, as in the original for both posts and homepage, instead of the footer in posts only?

EDIT: I already figured it out for the homepage and don't really need it elsewhere, so nevermind.

Liquid syntax errors

When building the site, these errors come across.

    Liquid Warning: Liquid syntax error (line 26): Unexpected character = in "{{date format="YYYY"}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 26): Unexpected character = in "{{date format="YYYY"}}" in /_layouts/default.html
    Liquid Warning: Liquid syntax error (line 56): Unexpected character { in "{{{title}}" in index.html
    Liquid Warning: Liquid syntax error (line 59): Unexpected character = in "{{excerpt words="26"}}" in index.html
    Liquid Warning: Liquid syntax error (line 62): Unexpected character # in "{{#if author.image}}" in index.html
    Liquid Warning: Liquid syntax error (line 62): Unexpected character / in "{{/if}}" in index.html
    Liquid Warning: Liquid syntax error (line 64): Unexpected character = in "{{tags prefix=" on "}}" in index.html
    Liquid Warning: Liquid syntax error (line 65): Unexpected character = in "{{date format='YYYY-MM-DD'}}" in index.html
    Liquid Warning: Liquid syntax error (line 65): Unexpected character = in "{{date format="DD MMMM YYYY"}}" in index.html
    Liquid Warning: Liquid syntax error (line 26): Unexpected character = in "{{date format="YYYY"}}" in /_layouts/default.html

Date format in _layouts/default.html

In line 26 (ghost blog syntax):

              {{date format="YYYY"}} &bull; All rights reserved.

However it should be (jekyll syntax):

              {{"now" | date: "%Y"}} &bull; All rights reserved.

Div in index.html <header> has two classes

I'm referring to this line in index.html.

I'm not exactly sure what class should be attributed: none of the CSS files contain the site-head-content class. I assume it should simply be attributed the inner class?

Cannot add Disqus

Hello, I don't know if that's all I need to add Disqus on my blog, but I added my disqus-shortname in _config.yml and enabled disqus: true on _layouts/post.html and nothing changed. What am I doing wrong?

Jekyll build error, Wrong Argument Type, Expected String

Configuration file: /Users/ziluweng/Documents/gitHub/kasper/_config.yml
Deprecation: You appear to have pagination turned on, but you haven't included the jekyll-paginate gem. Ensure you have gems: [jekyll-paginate] in your configuration file.
Source: /Users/ziluweng/Documents/gitHub/kasper
Destination: /Users/ziluweng/Documents/gitHub/kasper/_site
Incremental build: disabled. Enable with --incremental
Generating...
Deprecation: Collection#map should be called on the #docs array directly.
Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:46:in block in generate'. Deprecation: Collection#count should be called on the #docs array directly. Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:49:inrescue in block in generate'.
Deprecation: Collection#reverse should be called on the #docs array directly.
Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:51:in block in generate'. Deprecation: Document#title is now a key in the #data hash. Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:53:inblock (3 levels) in generate'.
Deprecation: Document#excerpt is now a key in the #data hash.
Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:55:in `block (3 levels) in generate'.
jekyll 3.0.1 | Error: wrong argument type Jekyll::Excerpt (expected String)
Zilus-MacBook-Pro:kasper ziluweng$ gem

Adding new home page

Super nice theme, thanks for the work!

Is there a way to replace the default landing page with the about me page instead of the post page?

Share this post: icons not showing

I have cloned your repo and I did jekyll serveand the social share icons are not showing. I saw the issue with incorrect links but this is not the same issue:

your_new_jekyll_site_-_blogging_about_stuffs

how create a post

how i can create a post with kasper ? can you create a tutorial how i can do this ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.