zetxek / adritian-free-hugo-theme

Adritian - Hugo Theme for Personal Websites
https://themes.gohugo.io/themes/adritian-free-hugo-theme/
MIT License
87 stars 76 forks source link

Move content for "Clients&Work" to content (instead of theme configuration) #62

Closed zetxek closed 3 months ago

zetxek commented 3 months ago

Solves #56. Having the content as a content type instead of a hardcoded parameter makes the theme cleaner, and prevents cluttering the theme with "sample content".

This allows customization of the theme at content level - that can be reused by other themes easier, and queried as "content".

This PR has an analog PR in https://github.com/zetxek/adritian-demo/pull/46, that shows how the theme should be updated to use this feature.

Changes:

To create a new "client&work" item, you can use the following command in your hugo instance:

hugo new client-work/client-work-name.md

(where client-work-name should be customized)

Or just create the .md file in content/client-work.

The images for the logos can be anywhere - you can see the example placement in https://github.com/zetxek/adritian-demo/pull/46.