diff --git a/src/routes/start.ts b/src/routes/start.ts index 56d321a..1bf780b 100644 --- a/src/routes/start.ts +++ b/src/routes/start.ts @@ -1,13 +1,8 @@ import { FastifyInstance } from "fastify"; 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) { fastify.get("/start", async (_, reply) => { - return reply.view("/templates/start.ejs", { desc, engineList }); + return reply.view("/templates/start.ejs", { engineList }); }); } diff --git a/templates/start.ejs b/templates/start.ejs index 496d940..64c04ca 100644 --- a/templates/start.ejs +++ b/templates/start.ejs @@ -1,3 +1,4 @@ +<% const desc = "txtdot is a HTTP proxy that parses text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts" %> @@ -6,32 +7,74 @@ txt. main page + + -
- - -

- - -

-

- - -

- -
+
+
+

txt.

+

<%= desc %>

+
+
+
+ +
+
+ +
+
+
+ + +
+
+ + +
+
+
+