parsiya / Hugo-Octopress

Port of the classic Octopress theme to Hugo
MIT License
155 stars 53 forks source link

Modifying site tree #64

Open tadamhicks opened 3 years ago

tadamhicks commented 3 years ago

I'm new to Hugo so this may be a lack of education, but I don't seem to be able to add an "About" page and map it to "/about" in my config.toml. For the life of me I don't know what I'm doing wrong or does it require theme modification.

parsiya commented 3 years ago

Hi, sorry for the late reply. If this is still an issue can you please point me to a git repo of your site with example code so I can investigate?

As an example, you can look at the source of my website at https://github.com/parsiya/parsiya.net to see how the about page is added. In short, you want to add it at content/page/about.markdown" (or about.md). Then in the frontmatter you can assign it to individual URLs url: "/about/".

See my about page at https://raw.githubusercontent.com/parsiya/parsiya.net/master/content/page/about.markdown

If you want to add the about page as a side bar link or the menu link, you can see my config.yaml file.