From c1e748965e06d74995c246aa3802b115b8ed880f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 8 Jun 2022 02:41:44 +0400 Subject: [PATCH] Why do we need to pass it when it never changes? That's just a copy-paste from a homepage. --- files/index.js | 2 -- files/views/index.pug | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/files/index.js b/files/index.js index 7f3b80a..1c65332 100644 --- a/files/index.js +++ b/files/index.js @@ -88,8 +88,6 @@ function setRoutes() { = await getDirectoryList(file_path, decodeURI(ctx.originalUrl)); await ctx.render('index', { - title: "/ Files", - description: "File share.", clientTZ: util.getClientTimezone(ctx), main_site: util.getServiceByHost(ctx.header.host), current_path: buildCurrentPathLink(decodeURI(ctx.originalUrl)), diff --git a/files/views/index.pug b/files/views/index.pug index 96b3e0a..36af7ba 100644 --- a/files/views/index.pug +++ b/files/views/index.pug @@ -1,12 +1,12 @@ doctype html html(lang='en') head - title Arav's dwelling #{title} + title Arav's dwelling / Files meta(charset='utf-8') meta(http-equiv='X-UA-Compatible' content='IE=edge') meta(name='viewport' content='width=device-width, initial-scale=1.0') meta(name='theme-color' content='#cd2682') - meta(name='description' content=description) + meta(name='description' content='My file share.') link(rel='icon' type='image/svg+xml' href='/shared/img/favicon.svg' sizes='any') link(href='/assets/css/main.css' rel='stylesheet') script(src='/assets/js/main.js' defer)