chrisreddington / hugo-community

Community is a Hugo Theme intended to be used by local meetup and community groups
MIT License
2 stars 2 forks source link

[Feature Request] Implement to adjust theme to either "Single Group" or "Multi Group" view #17

Closed chrisreddington closed 3 years ago

chrisreddington commented 3 years ago

The theme originally started as a theme for a Single Group, but has quickly pivoted to be flexible enough for a multi-group scenario, i.e. a platform for groups in a community.

Moving forward, the theme should offer flexibility for both scenarios. Firstly, consider whether this is just a documentation issue, or whether configuration changes need to be made.

For example -

Alternatively, if the above wouldn't work (e.g. for SEO reasons), then this may need to be driven through a site configuration parameter, such as site_mode, which could be set to SingleGroup or MultiGroup, and adjust views as necessary.

These are some top of mind thoughts, but would love additional comments/thoughts on these approaches.

chrisreddington commented 3 years ago

I think there's a few scenarios in this one -

The devil will be in the detail on handling the "single event" or "single group" scenario for scenario 1 or 4 respectively, which will determine either config-driven or underlying template driven approach I believe.

chrisreddington commented 3 years ago

As per #48, menu configuration has been pulled out of frontmatter into the config. There are now two main menu sections, one called mainsingle, one called mainmulti. Will need to have a similar scenario for the footers.

There is also a Site Config Parameter which determines whether the layout should be in single or multi mode, and pulls the appropriate nav accordingly. This will be used for other functionality (e.g. whether to display the groups section on the homepage).

This should also be applied to the footer nav as well.