Giter Club home page Giter Club logo

hexo-theme_casper's Introduction

casper

Casper Hexo port

Ghost Casper hexo port, a really minimalist theme. Preview: live demo

Installation

Install

$ git clone https://github.com/kywk/hexo-theme-casper.git themes/casper

Enable

Modify theme setting in _config.yml to casper.

Update

cd themes/casper
git pull

Configuration

# config
cover: //blog.ghost.org/content/images/2013/Nov/cover.png
logo: //blog.ghost.org/content/images/2013/Nov/bloglogo_1-1.png
bio: 'A designer, developer and entrepreneur. Spends his time travelling the world with a bag of kites. Likes journalism and publishing platforms.'

# Content
excerpt_link: Read More

# Miscellaneous
rss:
  • cover - Cover for index page.
  • logo - Your website logo.
  • bio - Descript yourself.
  • rss - RSS subscription link (change if using Feedburner)
  • google_analytics - Google Analytics id.

Original Casper 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.

hexo-theme_casper's People

Contributors

imzack avatar kywk avatar nt3rp 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

hexo-theme_casper's Issues

Gravatar

Hail,

I would like to use Gravatar to update my logo... can anyone think someway to do it?
Current, I use this:

_config.yml:

logo: //pt.gravatar.com/userimage/28012198/dfcb56791d001388e1eb7c0b2c06196d.png

[ ]'s

favicon

Is there a way to add this link to the header when you run hexo generate?

TypeError

Hey kywk!

Just started using hexo and trying different layouts out on my localhost. I found that when I hit the site with your layout, I get a TypeError in casper/head.ejs on line 35:

<% if (config.feed.type = 'atom') { %>
Cannot set property 'type' of undefined

On way to fix this is to have the user npm install hexo-generator-feed and than edit the main _config file to put feed stuff in there.

On a more user friendly approach, I suggest you change both the if (config.feed.type = 'atom') and if (config.feed.type ='rss') conditionals to:

if (config.feed && config.feed.type == 'atom')
if (config.feed && config.feed.type == 'rss')

This way you first check if config.feed is undefined, avoiding a TypeError if it is indeed.

cheers

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.