Visitar URL original
Remove trailing slash on void elements (#895) · pradyunsg/furo@d22d31c · GitHub
Skip to content

Commit d22d31c

Browse files
authored
Remove trailing slash on void elements (#895)
1 parent f91944a commit d22d31c

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

‎src/furo/theme/furo/base.html‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,50 @@
22
<html class="no-js"{% if language is not none %} lang="{{ language }}"{% endif %} data-content_root="{{ content_root }}">
33
<head>
44
{%- block site_meta -%}
5-
<meta charset="utf-8"/>
6-
<meta name="viewport" content="width=device-width,initial-scale=1"/>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width,initial-scale=1">
77
<meta name="color-scheme" content="light dark">
88

99
{%- if metatags %}{{ metatags }}{% endif -%}
1010

1111
{%- block linktags %}
1212
{%- if hasdoc('about') -%}
13-
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
13+
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}">
1414
{%- endif -%}
1515
{%- if hasdoc('genindex') -%}
16-
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
16+
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}">
1717
{%- endif -%}
1818
{%- if hasdoc('search') -%}
19-
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
19+
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}">
2020
{%- endif -%}
2121
{%- if hasdoc('copyright') -%}
22-
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
22+
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}">
2323
{%- endif -%}
2424
{%- if next -%}
25-
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
25+
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}">
2626
{%- endif -%}
2727
{%- if prev -%}
28-
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
28+
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}">
2929
{%- endif -%}
3030
{#- rel="canonical" (set by html_baseurl) -#}
3131
{%- if pageurl %}
32-
<link rel="canonical" href="{{ pageurl|e }}" />
32+
<link rel="canonical" href="{{ pageurl|e }}">
3333
{%- endif %}
3434

3535
{%- block logo_prefetch_links %}
3636
{%- if logo_url %}
37-
<link rel="prefetch" href="{{ logo_url }}" as="image" />
37+
<link rel="prefetch" href="{{ logo_url }}" as="image">
3838
{%- endif %}
3939
{%- if theme_light_logo and theme_dark_logo %}
40-
<link rel="prefetch" href="{{ pathto('_static/' + theme_light_logo, 1) }}" as="image" />
41-
<link rel="prefetch" href="{{ pathto('_static/' + theme_dark_logo, 1) }}" as="image" />
40+
<link rel="prefetch" href="{{ pathto('_static/' + theme_light_logo, 1) }}" as="image">
41+
<link rel="prefetch" href="{{ pathto('_static/' + theme_dark_logo, 1) }}" as="image">
4242
{%- endif %}
4343
{%- endblock logo_prefetch_links %}
4444
{%- endblock linktags %}
4545

4646
{# Favicon #}
4747
{%- if favicon_url -%}
48-
<link rel="shortcut icon" href="{{ favicon_url }}"/>
48+
<link rel="shortcut icon" href="{{ favicon_url }}">
4949
{%- endif -%}
5050

5151
<!-- Generated with Sphinx {{ sphinx_version }} and Furo {{ furo_version }} -->
@@ -71,7 +71,7 @@
7171
{% if css|attr("filename") -%}
7272
{{ css_tag(css) }}
7373
{%- else -%}
74-
<link rel="stylesheet" href="{{ pathto(css, 1)|e }}" type="text/css" />
74+
<link rel="stylesheet" href="{{ pathto(css, 1)|e }}" type="text/css">
7575
{%- endif %}
7676
{% endfor -%}
7777
{%- endblock regular_styles -%}

0 commit comments

Comments
 (0)