Why do we need to pass it when it never changes? That's just a copy-paste from a homepage.

This commit is contained in:
Alexander Andreev 2022-06-08 02:41:44 +04:00
parent 02d94542e0
commit c1e748965e
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 2 additions and 4 deletions

View File

@ -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)),

View File

@ -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)