New package st-pages: change page names and icons in sidebar without changing filenames

Hi @Will1, that’s because hide_pages uses css to hide the pages, which involves inserting a small block of html into the page. Unfortunately, I don’t think there’s a way to avoid this, but you could do hide_pages at the end of the app code.

This method doesn’t handle the indentation, but if the main goal is dynamically changing the pages, you could also consider this method New login page navigation example with streamlit 1.31