Skip to content
Snippets Groups Projects
Commit e156ba00 authored by Shale XIONG's avatar Shale XIONG
Browse files

fix the href.

parent a1689253
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{% if menu_items.first.parent_menu %} {% if menu_items.first.parent_menu %}
{% assign check_url = menu_items.first.parent_menu | downcase | prepend: '/' | append: '/' %} {% assign check_url = menu_items.first.parent_menu | downcase | prepend: '/' | append: '/' %}
<li class="dropdown"> <li class="dropdown">
<a class="nav-link {% if page.url contains check_url %}active{% endif %} dropbtn" href="#">{{ menu_items.first.parent_menu }}</a> <a class="nav-link {% if page.url contains check_url %}active{% endif %} dropbtn" href="">{{ menu_items.first.parent_menu }}</a>
<div class="dropdown-content"> <div class="dropdown-content">
{% for item in menu_items %} {% for item in menu_items %}
<a class="nav-link {% if item.url == page.url %}active{% endif %}" href="{{ item.url | prepend: site.baseurl }}">{{ item.title }}</a> <a class="nav-link {% if item.url == page.url %}active{% endif %}" href="{{ item.url | prepend: site.baseurl }}">{{ item.title }}</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment