Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eueung committed Dec 29, 2017
1 parent a0f84fe commit decc795
Show file tree
Hide file tree
Showing 53 changed files with 5,948 additions and 2 deletions.
22 changes: 22 additions & 0 deletions LICENSE-Casper
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2013-2017 Ghost Foundation

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.
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 Eueung Mulyana

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.
93 changes: 91 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,91 @@
# hugo-casper-two
Port of Casper 2.x to Hugo
# Casper Two

[Casper Two](https://github.com/eueung/hugo-casper-two) is a port of the [Casper](https://github.com/TryGhost/Casper), the default personal blogging theme for Ghost. While a legacy version (v1.x) has [already been ported](https://github.com/vjeantet/hugo-theme-casper) to Hugo years ago, it is incompatible with the recent 2.x version. So I ended up porting this new Casper version. It is currently functional, but not covered all page templates yet. They may be added in the future updates.

![Screenshot](https://raw.githubusercontent.com/eueung/hugo-casper-two/master/images/screenshot.png)

## Theme Demo

- [Sample Site](//eueung.github.io/hugo-casper-new/)

## Installation

Inside the folder of your Hugo site run:

$ cd themes
$ git clone https://github.com/eueung/hugo-casper-new.git casper-new

For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo.

## Sample Configuration

The following `config.toml` is used for the demo site.

```toml
baseurl = "/"
theme = "casper-two"
languageCode = "en-US"
disqusShortname = ""
paginate = 6
#SectionPagesMenu = "main"

[params]
title = "Hugo Casper Two"
subtitle = "Port of Casper 2.x for Hugo"

cover = "img/blog-cover.jpg"
description = "Here is a description of your site."
metaDescription = ""
googleAnalytics = ""
customCSS = []
RSSLink = ""

twitterName = "faketryghost"
fbName = "fakeghost"
githubName = "eueung"

logo = "hugo-logo.png"
orgName = "EM"
orgWebsite = "https://www.telematika.org"
orgDescription = "Here is a description placeholder for your org"

author = "EM"
authorAvatar = "img/ghost-icon.png"
authorLocation = "Bandung, ID"
authorWebsite = "https://eueung.github.io"
authorDescription = "Describe yourself.."

pageNotFoundTitle = "404 - Page not found"

[permalinks]
post = "/:slug/"

[[menu.main]]
name = "Home"
url = "/"
weight = 200

[[menu.main]]
name = "Go"
url = "/tags/golang/"
weight = 100

[[menu.main]]
name = "Food"
url = "/categories/food/"
weight = 99

[[menu.main]]
name = "External"
url = "https://google.com/"
weight = 95
```

Sample content structure is given in the `exampleSite` folder. Have fun!


## License

This theme is released under the MIT license. For more information read the [License](//github.com/eueung/hugo-casper-two/blob/master/LICENSE.md).


2 changes: 2 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
+++
+++
60 changes: 60 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
baseurl = "/"
theme = "casper-two"
languageCode = "en-US"
disqusShortname = ""
paginate = 6
#SectionPagesMenu = "main"

[params]
title = "Hugo Casper Two"
subtitle = "Port of Casper 2.x for Hugo"
copyright = "Released under the MIT license."

cover = "img/blog-cover.jpg"
description = "Here is a description of your site."
metaDescription = ""
googleAnalytics = ""
customCSS = []
RSSLink = ""

twitterName = "faketryghost"
fbName = "fakeghost"
githubName = "eueung"

logo = "hugo-logo.png"
orgName = "EM"
orgWebsite = "https://www.telematika.org"
orgDescription = "Here is a description placeholder for your org"

author = "EM"
authorAvatar = "img/ghost-icon.png"
authorLocation = "Bandung, ID"
authorWebsite = "https://eueung.github.io"
authorDescription = "Your description here"

pageNotFoundTitle = "404 - Page not found"

[permalinks]
post = "/post/:slug/"

[[menu.main]]
name = "Home"
url = "/"
weight = 200

[[menu.main]]
name = "Go"
url = "/tags/golang/"
weight = 100

[[menu.main]]
name = "Food"
url = "/categories/food/"
weight = 99

[[menu.main]]
name = "External"
url = "https://google.com/"
weight = 95


18 changes: 18 additions & 0 deletions exampleSite/content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
+++
comments = false
date = "2015-04-14T22:17:00+00:00"
draft = false
noauthor = true
share = false
title = "About me"
type = "page"
[menu.main]
weight = 111

+++
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Yow !
Loading

0 comments on commit decc795

Please sign in to comment.