Fixed and tested url management.

- Also set up custom id for static_site
corrected version of generate_index