From f688304c072f5ff6e7c0984355845374cf05ea60 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 15 Aug 2023 14:57:10 +0400 Subject: [PATCH] Fixed HTML formatting; added description --- src/routes/start.ts | 7 ++++++- templates/index.ejs | 17 +++++------------ templates/start.ejs | 11 ++++------- 3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/src/routes/start.ts b/src/routes/start.ts index 1bf780b..56d321a 100644 --- a/src/routes/start.ts +++ b/src/routes/start.ts @@ -1,8 +1,13 @@ 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", { engineList }); + return reply.view("/templates/start.ejs", { desc, engineList }); }); } diff --git a/templates/index.ejs b/templates/index.ejs index 8689476..c2a64c9 100644 --- a/templates/index.ejs +++ b/templates/index.ejs @@ -1,21 +1,14 @@ - - - - <%= parsed.title %> - - + + + <%= parsed.title %> - -

- <%= parsed.title %> -

+

<%= parsed.title %>

<%- parsed.content %>
- - \ No newline at end of file + diff --git a/templates/start.ejs b/templates/start.ejs index 8fd9310..496d940 100644 --- a/templates/start.ejs +++ b/templates/start.ejs @@ -1,14 +1,12 @@ - - - TXTDot starting page - + + + txt. main page -
@@ -36,5 +34,4 @@
- - \ No newline at end of file +