Skip to content

Commit 952f361

Browse files
committed
Website: factor <meta charset> into separate file
Some parts of <head> are repeated across all web pages. Factor them into an included file. Future commits will put more interesting things into common-head.ejs.html. This commit should not change behavior.
1 parent 4ec30f0 commit 952f361

File tree

9 files changed

+36
-8
lines changed

9 files changed

+36
-8
lines changed

website/public/benchmarks/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("../common-head.ejs.html") %>
67
<script>
78
//<%
89
let url = await import("url");
@@ -14,7 +15,6 @@
1415
//%>
1516
</script>
1617
<title>quick-lint-js: benchmarks</title>
17-
<meta charset="utf-8" />
1818
<meta
1919
name="description"
2020
content="quick-lint-js is faster than any other JavaScript linter."

website/public/cli/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("../common-head.ejs.html") %>
67
<script>
78
//<%
89
let fs = await import("fs");
@@ -13,7 +14,6 @@
1314
//%>
1415
</script>
1516
<title>quick-lint-js: CLI documentation</title>
16-
<meta charset="utf-8" />
1717
<link href="../main.css" rel="stylesheet" />
1818
</head>
1919

website/public/common-head.ejs.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<%#
2+
<!-- Copyright (C) 2020 Matthew Glazar -->
3+
<!-- See end of file for extended copyright information. -->
4+
%>
5+
6+
<meta charset="utf-8" />
7+
8+
<%#
9+
<!--
10+
quick-lint-js finds bugs in JavaScript programs.
11+
Copyright (C) 2020 Matthew Glazar
12+
13+
This file is part of quick-lint-js.
14+
15+
quick-lint-js is free software: you can redistribute it and/or modify
16+
it under the terms of the GNU General Public License as published by
17+
the Free Software Foundation, either version 3 of the License, or
18+
(at your option) any later version.
19+
20+
quick-lint-js is distributed in the hope that it will be useful,
21+
but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
GNU General Public License for more details.
24+
25+
You should have received a copy of the GNU General Public License
26+
along with quick-lint-js. If not, see <https://www.gnu.org/licenses/>.
27+
-->
28+
%>

website/public/demo/index.html renamed to website/public/demo/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("../common-head.ejs.html") %>
67
<title>quick-lint-js: try in your browser</title>
7-
<meta charset="utf-8" />
88
<link href="../main.css" rel="stylesheet" />
99
<style>
1010
/* Make #code-input and #shadow-code-input have the same size. */

website/public/errors/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("../common-head.ejs.html") %>
67
<script>
78
//<%
89
let url = await import("url");
@@ -23,7 +24,6 @@
2324
//%>
2425
</script>
2526
<title>quick-lint-js: errors and warnings</title>
26-
<meta charset="utf-8" />
2727
<meta
2828
name="description"
2929
content="quick-lint-js provides helpful error messages."

website/public/hiring/index.html renamed to website/public/hiring/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("../common-head.ejs.html") %>
67
<title>quick-lint-js is hiring</title>
7-
<meta charset="utf-8" />
88
<meta
99
name="description"
1010
content="We are looking for people to help make quick-lint-js a success. We'll pay you for your help!"

website/public/index.html renamed to website/public/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("./common-head.ejs.html") %>
67
<title>quick-lint-js: find JavaScript bugs</title>
7-
<meta charset="utf-8" />
88
<meta
99
name="description"
1010
content="quick-lint-js gives you instant feedback as you code. Find bugs in your JavaScript before your finger leaves the keyboard."

website/public/install/index.html renamed to website/public/install/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("../common-head.ejs.html") %>
67
<title>quick-lint-js: installing</title>
7-
<meta charset="utf-8" />
88
<meta
99
name="description"
1010
content="Install quick-lint-js on Linux, macOS, Windows, VS Code and many more!"

website/public/license/index.html renamed to website/public/license/index.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<!-- See end of file for extended copyright information. -->
44
<html>
55
<head>
6+
<%- await include("../common-head.ejs.html") %>
67
<title>quick-lint-js: license information</title>
7-
<meta charset="utf-8" />
88
<link href="../main.css" rel="stylesheet" />
99
</head>
1010
<body>

0 commit comments

Comments
 (0)