|
2 | 2 | <nav class="w-full flex justify-center glass-nav {% if isHomePage %}bg-transparent opacity-0 -translate-y-full{% else %}bg-pycon-blue/70{% endif %} z-50 fixed top-0 transition-all duration-500" id="main-navbar"> |
3 | 3 | <div class="w-full max-w-5xl mx-auto px-6 hidden md:block py-3"> |
4 | 4 | <div class="relative flex justify-center items-center h-12 px-6"> |
5 | | - <a href="{{ env.baseUrl }}" class="absolute left-0"> |
6 | | - <img src="{{ env.baseUrl }}img/logo.png" alt="PyCon India 2025" class="h-10 w-auto"> |
| 5 | + <a href="{{ env.baseUrl }}/" class="absolute left-0"> |
| 6 | + <img src="{{ env.baseUrl }}/img/logo.png" alt="PyCon India 2025" class="h-10 w-auto"> |
7 | 7 | </a> |
8 | 8 | <ul class="flex items-center justify-center w-full gap-8 relative"> |
9 | 9 | {% set menuItems = [ |
|
64 | 64 | <div class="w-full flex flex-col"> |
65 | 65 | {% for subitem in item.submenu %} |
66 | 66 | <div class="w-full p-4 bg-white/90 hover:bg-pycon-lime border-b border-black/10 flex justify-between items-center transition-colors duration-150 first:rounded-t-lg last:rounded-b-lg last:border-b-0"> |
67 | | - <a href="{{ env.baseUrl }}{{ subitem.link }}" class="text-gray-800 hover:text-[#4662ff] text-sm font-medium font-['Inter'] leading-tight no-underline dropdown-item block w-full"> |
| 67 | + <a href="{{ env.baseUrl }}/{{ subitem.link }}" class="text-gray-800 hover:text-[#4662ff] text-sm font-medium font-['Inter'] leading-tight no-underline dropdown-item block w-full"> |
68 | 68 | {{ subitem.name }} |
69 | 69 | </a> |
70 | 70 | <div class="size-5 relative overflow-hidden"> |
|
77 | 77 | </div> |
78 | 78 | {% else %} |
79 | 79 | {# TODO: item.name != 'Sponsors' is a hack till we get the sponsors page up#} |
80 | | - <a href="{% if item.isExternal %}{{ item.link }}{% elif item.link and item.link[0] == '#' and item.name != 'Sponsors' %}{{ env.baseUrl }}{{ item.link }}{% else %}{{ env.baseUrl }}{{ item.link }}{% endif %}" |
| 80 | + <a href="{% if item.isExternal %}{{ item.link }}{% elif item.link and item.link[0] == '#' and item.name != 'Sponsors' %}{{ env.baseUrl }}/{{ item.link }}{% else %}{{ env.baseUrl }}/{{ item.link }}{% endif %}" |
81 | 81 | {% if item.isExternal %}target="_blank" rel="noopener noreferrer"{% endif %} |
82 | 82 | class="flex items-center gap-1 py-2 px-3 text-white hover:text-[#D7FF7B] text-base font-normal font-['Acid_Grotesk'] leading-tight transition-colors duration-200 no-underline nav-link"> |
83 | 83 | {{ item.name }} |
|
95 | 95 | </div> |
96 | 96 |
|
97 | 97 | <div class="flex justify-between items-center px-4 py-3 w-full md:hidden"> |
98 | | - <a href="{{ env.baseUrl }}" class="flex items-center z-20"> |
99 | | - <img src="{{ env.baseUrl }}img/logo.png" alt="PyCon India 2025" class="h-8 w-auto"> |
| 98 | + <a href="{{ env.baseUrl }}/" class="flex items-center z-20"> |
| 99 | + <img src="{{ env.baseUrl }}/img/logo.png" alt="PyCon India 2025" class="h-8 w-auto"> |
100 | 100 | </a> |
101 | 101 |
|
102 | 102 | <input type="checkbox" id="mobile-menu-checkbox" class="hidden"> |
|
129 | 129 | <div class="flex flex-col space-y-4"> |
130 | 130 | {% for item in menuItems %} |
131 | 131 | {% if not item.hasSubmenu %} |
132 | | - <a href="{% if item.isExternal %}{{ item.link }}{% elif item.link and item.link[0] == '#' %}{{ item.link }}{% else %}{{ env.baseUrl }}{{ item.link | url }}{% endif %}" |
| 132 | + <a href="{% if item.isExternal %}{{ item.link }}{% elif item.link and item.link[0] == '#' %}{{ item.link }}{% else %}{{ env.baseUrl }}/{{ item.link | url }}{% endif %}" |
133 | 133 | {% if item.isExternal %}target="_blank" rel="noopener noreferrer"{% endif %} |
134 | 134 | class="p-4 bg-white/10 backdrop-blur-sm border border-white/20 rounded-lg hover:bg-white/20 flex justify-between items-center transition-all duration-200 text-white text-base font-medium no-underline"> |
135 | 135 | {{ item.name }} |
|
154 | 154 | <div class="hidden mt-2 mobile-submenu"> |
155 | 155 | <div class="bg-pycon-lime/90 backdrop-blur-sm border border-black/10 rounded-lg p-3 flex flex-col gap-2"> |
156 | 156 | {% for subitem in item.submenu %} |
157 | | - <a href="{{ env.baseUrl }}{{ subitem.link | url }}" class="p-2 text-gray-800 text-sm font-medium hover:text-[#4E62F5] transition-colors duration-200 no-underline"> |
| 157 | + <a href="{{ env.baseUrl }}/{{ subitem.link | url }}" class="p-2 text-gray-800 text-sm font-medium hover:text-[#4E62F5] transition-colors duration-200 no-underline"> |
158 | 158 | {{ subitem.name }} |
159 | 159 | </a> |
160 | 160 | {% endfor %} |
|
0 commit comments