From 2e91c9b147eb2053969535439194b801c1aaa5ea Mon Sep 17 00:00:00 2001 From: gor_down Date: Wed, 21 May 2025 09:03:44 -0300 Subject: [PATCH] domado por la gaycona domad ocarajo --- public/images/gang/{kopadot.png => kopa.png} | Bin public/images/gang/shirogami.png | Bin 0 -> 923 bytes src/utils/createCommonPath.js | 10 ++++--- views/home.hbs | 29 ++++++++++--------- 4 files changed, 21 insertions(+), 18 deletions(-) rename public/images/gang/{kopadot.png => kopa.png} (100%) create mode 100644 public/images/gang/shirogami.png 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 0000000000000000000000000000000000000000..dcd26ef6347e2501d316e85270ed29d0564ad330 GIT binary patch literal 923 zcmV;M17!S(P)Px&RY^oaRCt{2TRo4{KoFgcz*5qHkP^hf38x?h*F}h$3XrZm8vX&l;Y7)gpr@uh z38*L$I;Ddm%~|40#1eugmP}!a+=TVUj(2CqcFy*z)@$#~ytg0T9VZGZ#ynUgeQyX+ z9KysODZLH=V1G}kD&rA#HV+nw&2uOKlE!irhgN=2I0=XtLgGkh8?uO-Wg8m+GD46H z=sj&4v<@oqJX;8gAWjWjdb$W);(0a!+=Q@tP?C5Ra1o;L0eywOXwcs@dDwdMB9liH ziI97v3FHymM98dc5_v?P2pbhmB#+1vA$8GY@(5Feb)gO95xNMyx`U}3truY9INBEA zG*E3MkBH(B)R*sx)fv92=-DPAnusV4yEUNo`vBGm;3PG!|9+dg{(1Eg$qqFJ6oIu5 z$V+7Att(h>lGp2s+M0FTQG1Eg7=tPjK@T#EynZhjOfzk4^TQE=JOa>h-y4FzoB_ap zqW*HWuJe~O>vXqiU$>Fv1O0Q}WUMv7?6E9h;K5+JE*C+6*2X?%{b26|T~xOvZlZ|1 z4k`!M8h|)`?rpvAAD3hI-iw%KSOZyrzBhzhH&*3S_`?o_f;+cYz5ewF-A3z=!>qT! zu7DFuHv-zS|Ib3-8+Ic=M1ZHSu1J`v#iv+8Brl*R#~;Wx^V&+0kKzzmJHeapU#IFW z-ye$vR)oJF&r;Xl9vqQ(f(ih@H7|JW-OJQJt)kbYXL8^K`e zJOV@#B255GfM76nIhK3(ro=EC@VSR>lv-=fR@%*h&?^Bo445k2o10Y~0gD!1iSd(JSklU>5mZu!ZP*LzoAPq?Dat z83C7J6F~SaF!4v$f#Uo(%To4jA(j%e4a{8VZ0}Kg6+tW|R@U&W!e=d~!K|LP?R{ym zek66inIN@I47XGP=D~vZd3={Xa8!*b4xuOc7c>{>Jzm%FUuT5cI0}$+C1-&=)YbDk xx||@uYA(1=gI$_7l-Rrf3!I}9pzZ+b#y{__)W^QExt9O{002ovPDHLkV1k66sfGXm literal 0 HcmV?d00001 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 @@