diff --git a/CHANGELOG.md b/CHANGELOG.md index dfdd0de..a624bef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,39 +1,71 @@ # Changelog -### 2016/04/01 +## Release v1.1.1 - 04th September 2017 -#### Fontawesome as option for social icons in footer + +- [6f818c5](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/6f818c506139debad3188d3bb027ca6808d9577d) Ordered lists are now styled +- [9fb2a23](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/9fb2a23ab32fb61b62a77e9e8d590ab2cddb8201) adds support for subtitles in pages that can be defined with `.Description` in the front matter +-[a0db308](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/a0db30812aafc89cde5a77d3189f3a028fabe5ba) widens the content column to improve the readability of code examples +- [5108c87](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/5108c8787408d4d31a9161bb47cc506fd2d01fc6) loads FontAwesome from Bootstrap's CDN instead of using the local file. + + +## Release v1.1 - 26th April 2017 + +*In the future new additions and changes will be assigned to version numbers rather than dates.* This allows you to track changes in a better fashion. The state of this theme before this release has been assigned to v1.0. + +**Some changes and additions listed below require Hugo v0.20 or higher.** Consider to update Hugo to a newer as well if necessary. + +### Fixes: + +[34f8cf2](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/34f8cf2)q fixes display issues of the about page that occured in Hugo v0.18 and higher due to the way how Hugo treats sites as a page of different kinds. **It's required to rename `content/about/index.md` to `content/about/_index.md`**. + +### Improvements + +- [931eb53](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/931eb53) improves the generation URLs and linkage of pages +- [9b358a9](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/9b358a9) uses block templates to reduce redundancy +- [dd67ac4](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/dd67ac4) adds support for linking pages in the main menu + +### Deprecations + +- [fa3c87d](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/fa3c87d) replaces .Now which was deprecated in Hugo v0.19 +- [c618828](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/c618828) deprecates the `params.about` config option +- [1b6b863](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/1b6b863) deprecates the option to hide single pages with the `hidden = true` front matter option. Use `draft = true` instead + + +## 4th January 2016 + +### Fontawesome as option for social icons in footer You can now use Fontawesome as alternative to the Mono social icons. Look [here](https://github.com/digitalcraftsman/hugo-cactus-theme/tree/dev#social-link-icons) for more instructions. [Show me the diff](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/79e5435d6be25ae882ab5ae8455f17834f109a32) -#### Hide pages +### Hide pages Pages can now be hidden by adding `hidden = true` to the frontmatter. The pages are still built but they will not appear in the post in on the homepage. [Show me the diff](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/cf93e42859280b04703cd6ca96062db9a4adb65e) -### 2015/07/12 +## 7th December 2015 -#### Social link icons +### Social link icons Social links with icons can be enabled replacing the copyright field in footer. Configure the style and links in `config.toml`. -### 2015/26/11 +## 26th November 2015 Hugo v0.15 is required in order to run the theme with the changes listed below: -#### Google Analytics +### Google Analytics The setup of Google Analytics changed slighty due to the switch to Hugo's built-in template. In order to update the theme you need to relocate the `google_analytics` variable in the configs and rename it to `googleAnalytics`. Take a look in the example [`config.toml`](https://github.com/digitalcraftsman/hugo-cactus-theme/blob/dev/exampleSite/config.toml). [Show me the diff](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/c2cdd9a02a968738438c48d246ae3949a4e032fc) -#### Disqus +### Disqus -Now the theme uses the built-in template of Hugo to enable the comments section with Disqus. This change requires to relocate the `disqusShortname` variable in the configs. +Now the theme uses the built-in template of Hugo to enable the comments section with Disqus. This change requires to relocate the `disqusShortname` variable in the configs. [Show me the diff](https://github.com/digitalcraftsman/hugo-cactus-theme/commit/9ebf05f5b03b3a60fc11cc47775234b7fc2616f0) diff --git a/README.md b/README.md index e529859..17c6439 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,6 @@ Make sure to update the `themesDir` property in the config file to point to your Use the about page to introduce yourself to your visitors. You can customize the content as you like in the [`config.toml`](//github.com/digitalcraftsman/hugo-cactus-theme/blob/dev/exampleSite/config.toml). Furthermore, you should replace the [avatar placeholder](//github.com/digitalcraftsman/hugo-cactus-theme/blob/master/static/images/avatar.png) with a great image of yourself. -## Hide pages - -Pages can be hidden and don't appear in the post list on the homepage if you add the variable `hidden = true` to the frontmatter. This allows you to link from elsewhere, i.e. just the menu. - ## Disqus This theme features a comment system powered by Disqus too. Just add your Disqus-shortname to the [`config.toml`](//github.com/digitalcraftsman/hugo-cactus-theme/blob/dev/exampleSite/config.toml) and let readers respond to your blog posts. @@ -46,7 +42,7 @@ Assign either `font-awesome` or `mono-social` to the `iconFont` variable. The Mo ## Nearly finished -In order to see your site in action, run Hugo's built-in local server. +In order to see your site in action, run Hugo's built-in local server. $ hugo server @@ -67,7 +63,7 @@ This theme is released under the MIT license. For more information read the [lic ## Acknowledgements -Thanks to +Thanks to - [Nick Balestra](//github.com/nickbalestra/kactus) for creating the original theme - [Steve Francia](//github.com/spf13) for creating Hugo and the awesome community around the project. diff --git a/archetypes/default.md b/archetypes/default.md index a7aca45..17a3207 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,4 +1,5 @@ -+++ -title = "" -description = "" -+++ +--- +title: "{{ replace .TranslationBaseName "-" " " | title }}" +date: {{ .Date }} +draft: true +--- diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 829b9fe..8d758c5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,7 +12,7 @@ disqusShortname = "spf13" [params] name = "John Doe" description = "Describe your website" - bio = "Blogger - Programmer - Gopher" + bio = "Blogger & Programmer" # Enter optionally your twitter account twitter = "Your Twitter account" enableRSS = true @@ -27,7 +27,6 @@ disqusShortname = "spf13" # Navigation links home = "" - about = "" subscribe = "" # Pagination links olderPosts = "" @@ -35,7 +34,7 @@ disqusShortname = "spf13" readMore = "" copyright = "" # Sharing options and author information in posts - aboutAuthor = "I'm an enthusiastic gopher." + aboutAuthor = "I'm an blogger." tweet = "" share = "" # 404 page diff --git a/exampleSite/content/about/index.md b/exampleSite/content/about/_index.md similarity index 96% rename from exampleSite/content/about/index.md rename to exampleSite/content/about/_index.md index e39b15d..86ccf66 100644 --- a/exampleSite/content/about/index.md +++ b/exampleSite/content/about/_index.md @@ -2,6 +2,7 @@ date = "2015-06-20T14:02:37+02:00" title = "About" hidden = true +menu = "main" +++ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa ullam earum dolorum! Sed, perspiciatis. @@ -12,4 +13,4 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit. ### Lorem ipsum dolor. -Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea dicta corporis ad inventore itaque impedit dolor atque amet exercitationem! Veniam qui voluptas maiores vel laudantium necessitatibus, velit ducimus! Iste hic facere, accusamus fugiat enim facilis. \ No newline at end of file +Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea dicta corporis ad inventore itaque impedit dolor atque amet exercitationem! Veniam qui voluptas maiores vel laudantium necessitatibus, velit ducimus! Iste hic facere, accusamus fugiat enim facilis. diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/post/creating-a-new-theme.md index 3f0d1b9..6315784 100644 --- a/exampleSite/content/post/creating-a-new-theme.md +++ b/exampleSite/content/post/creating-a-new-theme.md @@ -2,13 +2,7 @@ author: "Michael Henderson" date: 2014-09-28 linktitle: Creating a New Theme -menu: - main: - parent: tutorials -next: /tutorials/github-pages-blog -prev: /tutorials/automated-deployments title: Creating a New Theme -weight: 10 --- diff --git a/exampleSite/content/post/goisforlovers.md b/exampleSite/content/post/goisforlovers.md index 8065477..41d20f1 100644 --- a/exampleSite/content/post/goisforlovers.md +++ b/exampleSite/content/post/goisforlovers.md @@ -13,7 +13,6 @@ categories = [ "Development", "golang", ] -menu = "main" +++ Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for diff --git a/exampleSite/content/post/hugoisforlovers.md b/exampleSite/content/post/hugoisforlovers.md index f84224a..73994ba 100644 --- a/exampleSite/content/post/hugoisforlovers.md +++ b/exampleSite/content/post/hugoisforlovers.md @@ -12,7 +12,6 @@ categories = [ "Development", "golang", ] -menu = "main" +++ ## Step 1. Install Hugo diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/post/migrate-from-jekyll.md index a38507b..bcf50b2 100644 --- a/exampleSite/content/post/migrate-from-jekyll.md +++ b/exampleSite/content/post/migrate-from-jekyll.md @@ -1,12 +1,7 @@ --- date: 2014-03-10 linktitle: Migrating from Jekyll -menu: - main: - parent: tutorials -prev: /tutorials/mathjax title: Migrate to Hugo from Jekyll -weight: 10 --- ## Move static content to `static` diff --git a/layouts/404.html b/layouts/404.html index d5b27a6..e98d890 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,18 +1,10 @@ - {{ partial "head.html" . }} -
- {{ partial "nav.html" . }} +{{ define "main" }} +