Skip to content

[FEATURE] Multi-sections support #95

@gbwebdev

Description

@gbwebdev

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions