diff options
| author | eatradish <sakiiily@aosc.io> | 2022-04-11 14:04:43 +0800 | 
|---|---|---|
| committer | eatradish <sakiiily@aosc.io> | 2022-04-11 14:04:43 +0800 | 
| commit | 60db42dc20f22b9a4744af1e7808c25cb40417f5 (patch) | |
| tree | 3c424627a2753b6d423ef62802a852a64ee2b995 /templates | |
| parent | 3bb31ab8e6c923d8404568b6dc676b088855f35f (diff) | |
| download | Seje2-60db42dc20f22b9a4744af1e7808c25cb40417f5.tar.gz Seje2-60db42dc20f22b9a4744af1e7808c25cb40417f5.tar.bz2 Seje2-60db42dc20f22b9a4744af1e7808c25cb40417f5.zip | |
templates/navbar: fix path bug
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/navbar.html | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/templates/navbar.html b/templates/navbar.html index d6cd507..5c66805 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -3,7 +3,7 @@          {% set data = config.extra.seje_menu_links %}          {% for item in data %}          <li class="menu-item"> -            {% set url_1 = item['url'] | replace(from="$BASE_URL", to=config.base_url) %} +            {% set url_1 = item['url'] | replace(from="$BASE_URL", to="") %}              {% set url = url_1 ~ '/'%}              {% set path = page.path|default(value = section.path) %}              {% if url == path or url_1 == path %} | 
