Got rid of cringe /index path
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"en": {
|
"en": {
|
||||||
"link": "index",
|
"link": "",
|
||||||
"title": "Market Gaps",
|
"title": "Market Gaps",
|
||||||
"description": "Find a profitable difference between the price of the set and the price of the sum of it's parts.",
|
"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:",
|
"filter_by_difference": "Filter by difference:",
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class Output {
|
|||||||
const template = await this._compileTemplate()
|
const template = await this._compileTemplate()
|
||||||
|
|
||||||
Object.keys(i18n).forEach(locale => {
|
Object.keys(i18n).forEach(locale => {
|
||||||
const filename = i18n[locale].link
|
const filename = i18n[locale].link || 'index'
|
||||||
this._writeToFile(`./public/${filename}.html`, template({
|
this._writeToFile(`./public/${filename}.html`, template({
|
||||||
...this,
|
...this,
|
||||||
t: i18n[locale],
|
t: i18n[locale],
|
||||||
|
|||||||
Reference in New Issue
Block a user