miguelsimoni / hugo-initio

Hugo Theme port of Initio bootstrap template by GetTemplate
https://themes.gohugo.io/hugo-initio/
MIT License
90 stars 119 forks source link

update theme to enable baseof, using hugo blocks and enable easier customisation #35

Closed drmowinckels closed 3 years ago

drmowinckels commented 4 years ago

This PR has quite some changes.

Since the original theme has a lot of things hard-coded into the html, it means that users would have to copy over many files into layouts to adapt their page to what they want, or actually alter in the theme folder it self (which is not recommended for hugo). So, some main changes are regarding utilizing hugo base template and blocks (https://gohugo.io/templates/base/). #34

Secondly, I've made it so that the four different types of landing page content, and their titles can be controlled using hugo sections (https://gohugo.io/templates/section-templates/#readout). Now, all sections in the content/home folder (i.e. subfolders with _index.md files) will create a home-page section. By setting the title parameter in the _index yaml, this becomes the section title. By setting the weight parameter in the _index yaml one can control the order these sections appear. By setting typein the _index yaml one controls what type of home-page section is rendered (client, service, recentwork, download or single). Please see changes t the example site that exemplifies this.

Third minor thing, is the ability to decide if the avatar should be a circle, rounded corners or square.

drmowinckels commented 3 years ago

oh crap, there's alot in here that should not have been added. Seems I forgot to switch a branch when I was developing elsewhere!

miguelsimoni commented 3 years ago

Hi @Athanasiamo,

I wanted to thank you for this great contribution.

Lately I haven't found the time to update this project as it should, so thank you so much!

drmowinckels commented 3 years ago

I'll need to do some cleanup for you to get the theme back into a good state. It currently includes a lot of custom layouts for a specific client. You should likely revert to the e3d6945 commit in this branch to get the theme into a good state for other users. everything after that is made specifically for a project and not made to adapt well.