Removed unnecessary URL filter

This commit is contained in:
squidfunk 2020-10-18 11:56:29 +02:00
parent 48b4120b8f
commit 24bcf9de53
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
-#} -#}
{% set site_url = config.site_url | default(nav.homepage.url, true) | url %} {% set site_url = config.site_url | default(nav.homepage.url, true) | url %}
{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %} {% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
{% set site_url = site_url ~ "/index.html" | url %} {% set site_url = site_url ~ "/index.html" %}
{% endif %} {% endif %}
<header class="md-header" data-md-component="header"> <header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid" aria-label="{{ lang.t('header.title') }}"> <nav class="md-header-nav md-grid" aria-label="{{ lang.t('header.title') }}">

View File

@ -23,7 +23,7 @@
<!-- Mitigate bug: https://github.com/mkdocs/mkdocs/issues/2191 --> <!-- Mitigate bug: https://github.com/mkdocs/mkdocs/issues/2191 -->
{% set site_url = config.site_url | default(nav.homepage.url, true) | url %} {% set site_url = config.site_url | default(nav.homepage.url, true) | url %}
{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %} {% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %}
{% set site_url = site_url ~ "/index.html" | url %} {% set site_url = site_url ~ "/index.html" %}
{% endif %} {% endif %}
<!-- Application header --> <!-- Application header -->