Closed drmowinckels closed 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!
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!
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.
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/). #34Secondly, 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 theweight
parameter in the _index yaml one can control the order these sections appear. By settingtype
in 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.