Got rid of cringe /index path
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-09 19:43:09 +03:00
parent d56c127306
commit 382ee2f39a
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"en": {
"link": "index",
"link": "",
"title": "Market Gaps",
"description": "Find a profitable difference between the price of the set and the price of the sum of it's parts.",
"filter_by_difference": "Filter by difference:",

View File

@@ -35,7 +35,7 @@ class Output {
const template = await this._compileTemplate()
Object.keys(i18n).forEach(locale => {
const filename = i18n[locale].link
const filename = i18n[locale].link || 'index'
this._writeToFile(`./public/${filename}.html`, template({
...this,
t: i18n[locale],