alabaster icon indicating copy to clipboard operation
alabaster copied to clipboard

Order of links in extra_nav_links

Open rvernica opened this issue 8 years ago • 2 comments

I provided a few links for the extra_nav_links parameter. It looks like the links are in random order (probably key-hash order). It would be nice to be able to control the order. Alphabetical by key name might be a good start. A better option might by to allow list (instead of a dictionary) of (key, value) pairs and preserve the order in the list.

rvernica avatar Sep 07 '17 03:09 rvernica

Yea optionally allowing a list (or if across a backwards compat boundary, simply changing it to be so) seems like the way to go. I've no time to do this myself but might be able to merge a PR.

bitprophet avatar Sep 07 '17 20:09 bitprophet

@rvernica I've had success using an OrderedDict to maintain the order of my links. I've opened a PR to document this (#127)

joealcorn avatar Jan 20 '18 16:01 joealcorn