| | |
| | | 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 |
| | |
| | | |
| | | ```shell |
| | | $ 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] |
| | |
| | | $ 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 |
| | |
| | | |
| | | ```shell |
| | | $ 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] |
| | |
| | | $ 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 |
| | |
| | | |
| | | 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" |
| | |
| | | |
| | | ```shell |
| | | $ 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] |
| | |
| | | |
| | | $ 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] |
| | |
| | | |
| | | ```bash |
| | | $ 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] |
| | |
| | | |
| | | ```bash |
| | | $ 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 <nil> to map[string]interface{} |
| | |
| | | -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 |
| | |
| | | ```bash |
| | | $ 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"} |
| | |
| | | ```shell |
| | | $ 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"} |
| | |
| | | |
| | | $ 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"} |
| | |
| | | ```shell |
| | | $ 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"} |
| | |
| | | |
| | | 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/" |
| | |
| | | {{ partial "footer.html" . }} |
| | | ``` |
| | | |
| | | 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 |
| | | |