Fixed HTML formatting; added description
This commit is contained in:
parent
17e5773988
commit
f688304c07
@ -1,8 +1,13 @@
|
|||||||
import { FastifyInstance } from "fastify";
|
import { FastifyInstance } from "fastify";
|
||||||
import { engineList } from "../handlers/main";
|
import { engineList } from "../handlers/main";
|
||||||
|
|
||||||
|
const desc = (
|
||||||
|
"txtdot is a HTTP proxy that parses text, links and pictures " +
|
||||||
|
"from pages reducing internet traffic, removing ads and heavy scripts"
|
||||||
|
);
|
||||||
|
|
||||||
export default async function parseRoute(fastify: FastifyInstance) {
|
export default async function parseRoute(fastify: FastifyInstance) {
|
||||||
fastify.get("/start", async (_, reply) => {
|
fastify.get("/start", async (_, reply) => {
|
||||||
return reply.view("/templates/start.ejs", { engineList });
|
return reply.view("/templates/start.ejs", { desc, engineList });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,14 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<%= parsed.lang %>">
|
<html lang="<%= parsed.lang %>">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<title>
|
|
||||||
<%= parsed.title %>
|
|
||||||
</title>
|
|
||||||
<meta name="description" content="<%= parsed.textContent %>">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="robots" content="noindex, nofollow">
|
||||||
|
<title><%= parsed.title %></title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>
|
<h1><%= parsed.title %></h1>
|
||||||
<%= parsed.title %>
|
|
||||||
</h1>
|
|
||||||
<main><%- parsed.content %></main>
|
<main><%- parsed.content %></main>
|
||||||
</body>
|
</body>
|
||||||
|
</html>
|
||||||
</html>
|
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<title>TXTDot starting page</title>
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="description" content="<%= desc %>">
|
||||||
|
<title>txt. main page</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<form action="/">
|
<form action="/">
|
||||||
<label for="url">URL</label>
|
<label for="url">URL</label>
|
||||||
@ -36,5 +34,4 @@
|
|||||||
<input type="submit">
|
<input type="submit">
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
|
</html>
|
||||||
</html>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user