diff --git a/README.md b/README.md index b80d371..8561358 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ git clone https://github.com/LordMathis/hugo-theme-nix ## Configuration -Add these parameters to your `config.toml`: +Add these parameters to your `hugo.toml`: ``` [params] @@ -66,7 +66,7 @@ Optionaly you can add any of these social networks to the \[params\] section. YoutubeID = "c/your_youtube_id" ``` -To add a menu item add `[[menu.header]]` item to `config.toml`. For example: +To add a menu item add `[[menu.header]]` item to `hugo.toml`. For example: ``` [menu] @@ -76,7 +76,7 @@ To add a menu item add `[[menu.header]]` item to `config.toml`. For example: url = "/posts" ``` -To add a submenu item add `[[menu.header]]` item with a parent parameter to `config.toml`. For example: +To add a submenu item add `[[menu.header]]` item with a parent parameter to `hugo.toml`. For example: ``` [menu] @@ -98,7 +98,7 @@ To add a submenu item add `[[menu.header]]` item with a parent parameter to `con url = "/tags" ``` -To enable disqus comments add `disqusShortname` to your `config.toml`. +To enable disqus comments add `disqusShortname` to your `hugo.toml`. You can turn off disqus comments per page by adding `nocomments = true` to the front matter. diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/post/creating-a-new-theme.md index 428c7bb..7275699 100644 --- a/exampleSite/content/post/creating-a-new-theme.md +++ b/exampleSite/content/post/creating-a-new-theme.md @@ -129,7 +129,7 @@ total 8 drwxr-xr-x 7 quoha staff 238 Sep 29 16:49 . drwxr-xr-x 3 quoha staff 102 Sep 29 16:49 .. drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes --rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 hugo.toml drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static @@ -146,7 +146,7 @@ Running the `hugo` command with no options will read all the available content a ``` $ hugo --verbose -INFO: 2014/09/29 Using config file: config.toml +INFO: 2014/09/29 Using config file: hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] WARN: 2014/09/29 Unable to locate layout: [404.html] @@ -167,7 +167,7 @@ We can verify that the command worked by looking at the directory again. $ ls -l total 8 drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes --rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 hugo.toml drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public @@ -195,7 +195,7 @@ Verify that you can run the built-in web server. It will dramatically shorten yo ``` $ hugo server --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] WARN: 2014/09/29 Unable to locate layout: [404.html] @@ -253,7 +253,7 @@ $ hugo new theme zafta $ ls -l total 8 drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes --rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 hugo.toml drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public @@ -311,7 +311,7 @@ Now that we've got a theme to work with, it's a good idea to add the theme name Edit the file to add the theme, add a title for the site, and specify that all of our content will use the TOML format. ``` -$ vi config.toml +$ vi hugo.toml theme = "zafta" baseurl = "" languageCode = "en-us" @@ -328,7 +328,7 @@ Now that we have an empty theme, let's generate the site again. ``` $ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] @@ -450,7 +450,7 @@ Here's sample output showing Hugo detecting a change to the template for the hom ``` $ rm -rf public $ hugo server --watch --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] @@ -507,7 +507,7 @@ Build the web site and then verify the results. ``` $ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] @@ -560,7 +560,7 @@ Hugo has a command to generate a skeleton post, just like it does for sites and ``` $ hugo --verbose new post/first.md -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 attempting to create post/first.md of post INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/default.md ERROR: 2014/09/29 Unable to Cast to map[string]interface{} @@ -586,14 +586,14 @@ $ find themes/zafta/archetypes -type f | xargs ls -l -rw-r--r-- 1 quoha staff 51 Sep 29 21:54 themes/zafta/archetypes/post.md $ hugo --verbose new post/first.md -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 attempting to create post/first.md of post INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/first.md /Users/quoha/Sites/zafta/content/post/first.md created $ hugo --verbose new post/second.md -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 attempting to create post/second.md of post INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/second.md @@ -634,7 +634,7 @@ Build the web site and then verify the results. ``` $ rm -rf public $ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 found taxonomies: map[string]string{"category":"categories", "tag":"tags"} @@ -707,7 +707,7 @@ Build the web site and then verify the results. ``` $ rm -rf public $ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} @@ -784,7 +784,7 @@ Build the web site and verify the results. ``` $ rm -rf public $ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} @@ -853,7 +853,7 @@ Build the web site and verify the results. ``` $ rm -rf public $ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/hugo.toml INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} @@ -992,7 +992,7 @@ $ find public -name '*.html' | xargs ls -l Knowing that hugo is using the slug to generate the file name, the simplest solution is to change the slug. Let's do it the hard way and change the permalink in the configuration file. ``` -$ vi config.toml +$ vi hugo.toml [permalinks] page = "/:title/" about = "/:filename/" @@ -1063,7 +1063,7 @@ $ vi themes/zafta/layouts/index.html :wq ``` -Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the config.toml file. +Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the hugo.toml file. ### Update the Default Single Template to Use the Partials diff --git a/exampleSite/config.toml b/exampleSite/hugo.toml similarity index 100% rename from exampleSite/config.toml rename to exampleSite/hugo.toml