diff --git a/README.md b/README.md index 9b35d07..55ec83b 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,19 @@ # 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. +[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. ![Screenshot](https://raw.githubusercontent.com/eueung/hugo-casper-two/master/images/screenshot.png) ## Theme Demo -- [Sample Site](//eueung.github.io/hugo-casper-two/) +- [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-two.git casper-two + $ 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. @@ -57,6 +57,9 @@ paginate = 6 pageNotFoundTitle = "404 - Page not found" + #casper or caspertwo + singleViewStyle = "casper" + [permalinks] post = "/:slug/" @@ -83,6 +86,7 @@ paginate = 6 Sample content structure is given in the `exampleSite` folder. Have fun! +![Screenshot](https://raw.githubusercontent.com/eueung/hugo-casper-two/master/images/single.jpg) ## License diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2626b00..672d9a0 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -9,7 +9,7 @@ canonifyurls = true [params] title = "Hugo Casper Two" subtitle = "Port of Casper 2.x for Hugo" - copyright = "Released under the MIT license." + copyright = "© 2018" cover = "img/blog-cover.jpg" description = "Here is a description of your site." @@ -35,6 +35,9 @@ canonifyurls = true pageNotFoundTitle = "404 - Page not found" + #casper or caspertwo + singleViewStyle = "casper" + [permalinks] post = "/post/:slug/" @@ -49,8 +52,8 @@ canonifyurls = true weight = 100 [[menu.main]] - name = "Food" - url = "/categories/food/" + name = "Categories" + url = "/categories/" weight = 99 [[menu.main]] diff --git a/images/single.jpg b/images/single.jpg new file mode 100644 index 0000000..f4c64e2 Binary files /dev/null and b/images/single.jpg differ diff --git a/layouts/404.html b/layouts/404.html index 0407c2b..fbaccfc 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,13 +1,18 @@ {{ partial "head" . }} -