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] Relative weighing of pages #67

Open
3 tasks done
chipzoller opened this issue Nov 30, 2021 · 0 comments
Open
3 tasks done

[Feature] Relative weighing of pages #67

chipzoller opened this issue Nov 30, 2021 · 0 comments

Comments

@chipzoller
Copy link
Contributor

I have checked all the prerequisites below and I'm yet experiencing a problem

  • Read the README.md
  • Have the extended version of Hugo installed
  • Used the exampleSite's config.toml as a reference

Describe the feature

In the Compose theme today, pages are globally weighed to determine ordering in the left-hand navigation pane. This approach makes it quite difficult when adding or extending pages as when a site grows organically. What I suggest as a better approach is to have the pages weighed relative to the sections in which they're located.

For example, in a site composed like this (under /content/docs/)

$ tree .
.
├── _index.md
├── about
│   ├── architecture.md
│   ├── features.md
│   └── roadmap.md
├── installation
│   ├── _index.md
│   ├── daemonset.md
│   ├── flags.md
│   └── static.md
└── usage
    ├── _index.md
    ├── cloud-provider.md
    ├── equinix.md
    ├── k3s.md
    └── kind.md

The pages under /about should be weighed only in relation to other pages in /about and not pages in either /installation or /usage. This will probably require that there be another control somewhere in the theme to specify the ordering of those page categories. The ideal location would probably be in the menu.toml file. Once that's done, the subpages can be weighed relative to each other.

Desktop (please complete the following information):

  • OS: N/A
  • Browser: N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant