darshanbaral / aafu

Portfolio theme with blog
https://themes.gohugo.io/aafu/
MIT License
47 stars 58 forks source link

Allow self defined directories for site menu #24

Closed binhonglee closed 7 months ago

binhonglee commented 3 years ago

Current implementation limits the type of content and title labeling allowed for use. With this patch, anyone can add their own labels and directories while still leveraging the same blog style partial format for the single page.

Also added the ability to disableBlog instead of removing it entirely to prevent breaking existing themes (they are still enabled by default unless specified otherwise.

Testing: Manually tested this on my device with the exampleSite by changing up the config.toml and seeing it work as intended.

pedrocamargo commented 2 years ago

I am not sure @binhonglee is still interested in doing this, but this is what is missing on config.tml

New menus section

[params.menu]
    [[params.menu.list]]
        label='MyNewPage'
        dir = "my_new_page"  # The sub-directory on the website we are being redirected to