Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Multi-sections support #95

Open
gbwebdev opened this issue Jun 8, 2022 · 0 comments
Open

[FEATURE] Multi-sections support #95

gbwebdev opened this issue Jun 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gbwebdev
Copy link

gbwebdev commented Jun 8, 2022

Add support for multiple sections

For my personal use, I made a few changes to the FeelIt Theme to support multiple sections :

  • The home page displays summary cards of all sections together.
  • A menu entry is created for each section :
    • It redirects to the section's index page
    • It is higlighted whenever you are visiting the section index or a section's post.
  • The section's index pages displays a list of all the posts in said section :
    • As a timeline (by default)
    • As summary cards (by setting params>sections>displayAs to cards)
  • Catagories can be grouped by sections (by setting params>taxonomies>groupCategoriesBySections to true)
  • Tags can also be grouped by sections, but things get more complicated...
    • You have to create a new taxonomy named tag_<section_name> for each section by adding this to taxonomies :
      tag_<section_name>: tags_<section_name>
    • You have to use the right taxonomy for each section.
    • You have to set params>taxonomies>groupTagsBySections to true

If you are interesed, I would be glad to commit my work.
You might want to double check as I am quite new to both Golang and Hugo environment...

@gbwebdev gbwebdev added the enhancement New feature or request label Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant