diff --git a/public/images/gang/kopadot.png b/public/images/gang/kopa.png similarity index 100% rename from public/images/gang/kopadot.png rename to public/images/gang/kopa.png diff --git a/public/images/gang/shirogami.png b/public/images/gang/shirogami.png new file mode 100644 index 0000000..dcd26ef Binary files /dev/null and b/public/images/gang/shirogami.png differ diff --git a/src/utils/createCommonPath.js b/src/utils/createCommonPath.js index c6deef6..efafd5a 100644 --- a/src/utils/createCommonPath.js +++ b/src/utils/createCommonPath.js @@ -1,7 +1,8 @@ const { dirname } = require('path'); const appDir = dirname(require.main.filename); const fs = require('fs') -const langs = ["es", "en"] +const langs = ["en", "es"] +const default_lang = "es" function createCommonPath(router, path, renderParams = { }, cb = () => {}){ @@ -29,14 +30,15 @@ function createCommonPath(router, path, renderParams = { ...fileGeneralParams } } - renderOptions.lang = "es" + renderOptions.lang = default_lang renderOptions.langPath = "" createPath('/' + path, cb, renderOptions, router) for(let l in langs){ + if(langs[l] == default_lang) continue const otherLangRender = {...renderOptions} otherLangRender.lang = langs[l] - otherLangRender.langPath = langs[l] + '/' - createPath('/' + otherLangRender.langPath + path, cb, otherLangRender, router) + otherLangRender.langPath = '/' + langs[l] + createPath(otherLangRender.langPath + '/' + path, cb, otherLangRender, router) } } diff --git a/views/home.hbs b/views/home.hbs index 3d14ae1..0eda6a4 100644 --- a/views/home.hbs +++ b/views/home.hbs @@ -2,7 +2,7 @@


- Puede que esta red deje de andar por https cada 30 minutos. En su lugar, usa http + Puede que esta red deje de andar por https cada 30 minutos. En su lugar, usa http @@ -117,7 +117,7 @@
  • Suscriptores
  • Likes
  • Material
  • -
  • Responsive
  • +
  • Responsivo
  • Libre
  • Logro
  • Orgullo
  • @@ -173,7 +173,7 @@ @@ -181,7 +181,7 @@
    - Kiki + Kiki
    - +

    ------------------------------ @@ -202,15 +202,15 @@ - + @@ -265,7 +266,7 @@