Skip to content
/ hasper Public

Full-featured Hugo port of Ghost's default theme Casper 👻

License

Notifications You must be signed in to change notification settings

ljhrot/hasper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hasper

This is a port of Ghost's default theme Casper for Jekyll inspired by Jasper.

Live demo

Hasper Live Demo

Casper's Original Here

How to use it

Requirement: Hugo version >= 0.106.0

1. Create a New Site

$ hugo new site quickstart

2. Add the hasper Theme

$ cd quickstart
$ git init
$ git submodule add https://github.com/ljhrot/hasper.git themes/hasper
$ echo 'theme = "hasper"' >> config.toml

3. Add Some Content

$ cp themes/hasper/archetypes/default.md archetypes/default.md
$ hugo new posts/my-first-post.md

Edit the newly created content file if you want, it will start with something like this:

---
layout: post
cover: 
navigation: true
title: "My First Post"
date: 2020-08-21T23:36:45+08:00
draft: true
tags: 
logo: 
author: 
comment: false
---

4. Start the Hugo server

Now, start the Hugo server with drafts enabled:

$ hugo server -D

Navigate to your new site at http://localhost:1313/.

5. Next

Important: You will find a demo in exampleSite. Take a look at the files in this folder, especially config.toml.

Thanks

Copyright & License

Same licence as the one provided by Ghost's team. See Casper's theme license.

Copyright (C) 2015-2017 - 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.

About

Full-featured Hugo port of Ghost's default theme Casper 👻

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors