Skip to content

Commit 4243120

Browse files
committed
Tweak response_start template
1 parent a88c12c commit 4243120

File tree

1 file changed

+36
-21
lines changed

1 file changed

+36
-21
lines changed

redbot/formatter/templates/response_start.html

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,46 @@
22
<html lang="en">
33

44
<head>
5-
<title>REDbot: &lt;{{ html_uri }}&gt;</title>
5+
{% if html_uri %}
6+
<title>REDbot{{ extra_title | striptags }}: &lt;{{ html_uri }}&gt;</title>
7+
{% else %}
8+
<title>REDbot: Lint for your HTTP Resources</title>
9+
{% endif %}
610
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
711
<meta name="viewport" content="width=device-width, initial-scale=1" />
12+
<meta name="description" content="REDbot is lint for your HTTP resources.">
13+
<meta name="application-name" content="REDbot" />
814
<meta name="ROBOTS" content="INDEX, NOFOLLOW" />
15+
<meta property="og:type" content="website">
16+
<meta property="og:title" content="REDbot">
17+
<meta property="og:description" content="REDbot is lint for your HTTP resources.">
18+
<meta property="og:url" content="https://redbot.org/">
19+
<meta property="og:site_name" content="REDbot">
20+
<meta property="og:image" content="https://redbot.org/static/logo/redbot-sq.png">
921
<link rel="stylesheet" type="text/css" href="{{ static }}/style.css?{{ redbot_version }}">
22+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ static }}/logo/apple-touch-icon-144x144.png" />
23+
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ static }}/logo/apple-touch-icon-152x152.png" />
24+
<link rel="icon" href="{{ static }}/logo/favicon.ico" />
25+
<link rel="icon" type="image/png" href="{{ static }}/logo/favicon-32x32.png" sizes="32x32" />
26+
<link rel="icon" type="image/png" href="{{ static }}/logo/favicon-16x16.png" sizes="16x16" />
27+
<meta name="msapplication-TileColor" content="#FFFFFF" />
28+
<meta name="msapplication-TileImage" content="{{ static }}/logo/mstile-144x144.png" />
29+
<link rel="prefetch" href="{{ static }}/icons/check-circle.svg" />
30+
<link rel="prefetch" href="{{ static }}/icons/exclamation-circle.svg" />
31+
<link rel="prefetch" href="{{ static }}/icons/info-circle.svg" />
32+
<link rel="prefetch" href="{{ static }}/icons/question-circle.svg" />
33+
<link rel="prefetch" href="{{ static }}/icons/times-circle.svg" />
34+
<script type="application/ld+json">
35+
{
36+
"@context": "https://schema.org",
37+
"@type": "WebApplication",
38+
"name": "REDbot",
39+
"url": "https://redbot.org/",
40+
"description": "Lint for HTTP resources; tests protocol correctness, cacheability, and content negotiation.",
41+
"applicationCategory": "DeveloperTool",
42+
"operatingSystem": "Any"
43+
}
44+
</script>
1045
<script type="text/javascript" nonce="{{ nonce }}">
1146
var errorsReported = 0
1247
window.onerror = function (message, url, line, col, errorObj) {
@@ -23,26 +58,6 @@
2358
}
2459
</script>
2560
<script id="config" type="application/json" nonce="{{ nonce }}">{{ config }}</script>
26-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ static }}/logo/apple-touch-icon-144x144.png" />
27-
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ static }}/logo/apple-touch-icon-152x152.png" />
28-
<link rel="icon" href="{{ static }}/logo/favicon.ico" />
29-
<link rel="icon" type="image/png" href="{{ static }}/logo/favicon-32x32.png" sizes="32x32" />
30-
<link rel="icon" type="image/png" href="{{ static }}/logo/favicon-16x16.png" sizes="16x16" />
31-
<meta name="description" content="{{ _('REDbot is lint for your HTTP resources.') }}">
32-
<meta name="application-name" content="REDbot" />
33-
<meta name="msapplication-TileColor" content="#FFFFFF" />
34-
<meta name="msapplication-TileImage" content="{{ static }}/logo/mstile-144x144.png" />
35-
<meta property="og:type" content="website">
36-
<meta property="og:title" content="REDbot">
37-
<meta property="og:description" content="{{ _('Lint for your HTTP resources') }}">
38-
<meta property="og:url" content="https://redbot.org/">
39-
<meta property="og:site_name" content="REDbot">
40-
<meta property="og:image" content="https://redbot.org/static/logo/redbot-sq.png">
41-
<link rel="prefetch" href="{{ static }}/icons/check-circle.svg" />
42-
<link rel="prefetch" href="{{ static }}/icons/exclamation-circle.svg" />
43-
<link rel="prefetch" href="{{ static }}/icons/info-circle.svg" />
44-
<link rel="prefetch" href="{{ static }}/icons/question-circle.svg" />
45-
<link rel="prefetch" href="{{ static }}/icons/times-circle.svg" />
4661
{{ extra_js }}
4762
</head>
4863

0 commit comments

Comments
 (0)