Commit 5246834e authored by shadMod's avatar shadMod 💬

Rewrite the navbar code

parent 1422fcdf
......@@ -21,7 +21,7 @@
- name: Smartphone e tablet
endpoint: pages.scopri-ubuntu_ubuntu-touch
- name: 20.04 LTS Focal Fossa
- name: 22.04 LTS Jammy Jellyfish
endpoint: pages.scopri-ubuntu_nuovo-rilascio
- name: Derivate
......
......@@ -56,7 +56,7 @@ class Navbar:
def install(self, app):
"""Install this navbar on the app"""
raw = pkg_resources.resource_string("uitwww", "data/navbar.yml")
config = yaml.safe_load(raw.decode("utf-8"))
config = yaml.load(raw.decode("utf-8"))
self._prepare_navbar_cache(config, [])
# Add the _navbars variable to the templates
......
......@@ -88,7 +88,6 @@
<ul class="right">
<li><a href="https://www.facebook.com/ubuntu.it">Facebook</a></li>
<li><a href="https://twitter.com/ubuntuit">Twitter</a></li>
<li><a href="https://www.youtube.com/ubuntuitpromozione">YouTube</a></li>
<li><a href="https://telegram.me/ubuntuit">Telegram</a></li>
</ul>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment