From 382ee2f39a0ffdf93e8046dc8c426da9b5881a35 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Wed, 9 Mar 2022 19:43:09 +0300 Subject: [PATCH] Got rid of cringe /index path --- src/output/i18n.json | 2 +- src/output/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/i18n.json b/src/output/i18n.json index 9b0c6cb..3be7300 100644 --- a/src/output/i18n.json +++ b/src/output/i18n.json @@ -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:", diff --git a/src/output/index.js b/src/output/index.js index e84f2fa..7620a77 100644 --- a/src/output/index.js +++ b/src/output/index.js @@ -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],