2

Hi, I install your source code to my vps, and this is simply amazing, but I don't understand how can I order the top default sub menu elements. (for all user by default) Can you help me maybe?

Hi, I install your source code to my vps, and this is simply amazing, but I don't understand how can I order the top default sub menu elements. (for all user by default) Can you help me maybe?

2 comments

[–] pembo210 1 points (+1|-0) Edited

Unfortunately there isn't a custom way yet for anon mode. It currently just reads the names from the sitemetadata then a few lines down on line 441 it gets reordered alphabetically.

I'll add this to the todo list. we have a couple things in the works related to how defaults are managed.

edit followup:

  • If you remove the else statement on lines 440 and 441, it will be in the order that it fetched it from the sitemetadata.

  • (optional) Then on line 429 you could manually make the list of names:

defaults = ['news', 'sports', 'weather', 'foxes']

warning: manually making the list will break the site if those subs don't exist yet