diff options
author | Steve Lane <SteveLane@users.noreply.github.com> | 2019-03-06 00:23:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 00:23:39 +0300 |
commit | 0e6206738afcfb17365e00615ce0f0cf142bc161 (patch) | |
tree | de58db68d081d7c62d79b02880b7e975a1a9cacc | |
parent | 4658a875cfd356bc79f7c25d5a337581d86103f2 (diff) | |
parent | d1a28dff4ee8358412fe834aa511e0012971b350 (diff) |
Issue #24: Added info for adding additional pages, like a blog.
-rwxr-xr-x | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -19,9 +19,15 @@ Copy `exampleSite/config.toml` into the root of your website folder, and edit it Add `theme = "hugo-icon"` to this config, or when serving, use `hugo server -t hugo-icon`. -## To Do +## Adding additional pages -- add blogging capability +If you'd like to add additional pages, say for a blog, place your content in `/content/blog/` (with an `_index.md` and additional markdown files for each entry). + +To link to it from the main menu, add the following line to `layouts/partials/nav.html`: + +```html +<a href="/blog" onclick="location.href='/blog';">Blog</a> +``` ## Credits |