luizdepra / hugo-coder

A minimalist blog theme for hugo.
MIT License
2.69k stars 1.06k forks source link

New to Hugo, adding new content to existing theme #908

Open SamKrasnoff opened 5 months ago

SamKrasnoff commented 5 months ago

Hello all,

I'm new to using hugo, but I've been very impressed by this theme and the product as a whole. However, I'm trying to add an about/projects page, but I'm not sure where/how to. I've tried creating HTML files and using the hugo new command, but they still do not appear. Thanks for any guidance you can provide!

luizdepra commented 5 months ago

Hey!

So, you only need to create an HTML when you need a new layout/template for a new kind of content (in Hugo it is called Archetype). Hugo Coder has two kinds of content currently: pages and posts. Basically, the difference between these two are that posts can be configured with tags, categories and series, and display comments. Pages are just crude pages.

To create a about page or a project page you just need to cerate a markdown file inside the content folder. See this example of my about page here (it is in Portuguese).