Skip to content

Commit 8e68ae0

Browse files
committed
remove xhtml structures; merge changes from www layout to doc layout
1 parent 222b030 commit 8e68ae0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

doc/_templates/layout.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
#}
88
{%- block doctype -%}
9-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
10-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9+
<!DOCTYPE html>
1110
{%- endblock %}
1211
{%- macro relbar(class) %}
1312
<div class="related {{ class }}">
@@ -82,9 +81,14 @@ <h3>{{ _('Quick search') }}</h3>
8281
{%- endfor %}
8382
{%- endmacro %}
8483

85-
<html xmlns="http://www.w3.org/1999/xhtml">
84+
<html lang="en">
8685
<head>
87-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
86+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
87+
<meta name="viewport" content="width=device-width, initial-scale=1">
88+
{%- if 'name="description"' not in metatags %}
89+
<meta name="description"
90+
content="Page {{ pagename }} in documentation on the Roundup issue tracker, version {{ release|e }}.">
91+
{%- endif %}
8892
{{ metatags }}
8993
{%- if builder != 'htmlhelp' %}
9094
{%- set titlesuffix = " &mdash; "|safe + docstitle|e %}

website/www/_templates/layout.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
2-
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
2+
<html lang="en">
33
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
{%- if 'name="description"' not in metatags %}
77
<meta name="description"
@@ -21,7 +21,6 @@
2121
{%- endfor %}
2222
{%- else %}
2323
<link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}" type="text/css" />
24-
2524
{%- endif %}
2625
{%- if builder != 'htmlhelp' %}
2726
<script type="text/javascript">

0 commit comments

Comments
 (0)