From daf06c674663d13056eeaff5e64fb91d98e0e2b2 Mon Sep 17 00:00:00 2001 From: Marc Riera Irigoyen Date: Tue, 30 Jun 2020 01:09:31 +0200 Subject: [PATCH] Reorganize in subfolders --- config.toml | 18 ++++++++++-------- content/_index.ca.md | 2 +- content/_index.en.md | 2 +- content/_index.es.md | 2 +- content/baixades/rutes.ca.md | 8 ++++---- content/baixades/rutes.en.md | 10 +++++----- content/baixades/rutes.es.md | 8 ++++---- content/baixades/trens.ca.md | 12 ++++++------ content/baixades/trens.en.md | 12 ++++++------ content/baixades/trens.es.md | 12 ++++++------ content/contacte.ca.md | 2 +- content/contacte.en.md | 2 +- content/contacte.es.md | 2 +- content/documentacio/_index.ca.md | 2 +- content/documentacio/_index.en.md | 2 +- content/documentacio/_index.es.md | 2 +- content/documentacio/mechanik-trasa.en.md | 2 +- ...penbve-conduccio-serie-2000-3000-4000.en.md | 2 +- ...penbve-conduccio-serie-2000-3000-4000.es.md | 2 +- content/enllaços.ca.md | 14 +++++++------- content/enllaços.en.md | 14 +++++++------- content/enllaços.es.md | 14 +++++++------- content/noticies/_index.ca.md | 2 +- content/noticies/_index.en.md | 2 +- content/noticies/_index.es.md | 2 +- layouts/_default/_markup/render-link.html | 1 + layouts/shortcodes/download_obp.html | 6 +++--- layouts/shortcodes/tabletextpadding.html | 2 ++ 28 files changed, 83 insertions(+), 78 deletions(-) create mode 100644 layouts/_default/_markup/render-link.html create mode 100644 layouts/shortcodes/tabletextpadding.html diff --git a/config.toml b/config.toml index b7159da..a56f7a6 100644 --- a/config.toml +++ b/config.toml @@ -2,8 +2,11 @@ baseURL = "https://bvebarcelona.cat/" title = "BVE Barcelona" theme = "kozmo-dark" DefaultContentLanguage = "ca" +DefaultContentLanguageInSubdir = true removePathAccents = true +disableKinds = ["taxonomy", "taxonomyTerm"] + [params] name = "BVE Barcelona" copyright = "BVE Barcelona" @@ -12,8 +15,10 @@ removePathAccents = true custom_css = "css/site.css" recentupdates = "noticies" -[blackfriday] - fractions = false +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true [permalinks] noticies = "/:section/:year/:month/:day/:title/" @@ -21,21 +26,18 @@ removePathAccents = true [languages] [languages.ca] -baseURL = "https://bvebarcelona.cat/" languageName = "Català" weight = 1 description = "El lloc web oficial del Metro de Barcelona per a l'OpenBVE" [languages.es] -baseURL = "https://es.bvebarcelona.cat/" languageName = "Castellano" weight = 2 description = "El sitio web oficial del Metro de Barcelona para OpenBVE" [languages.en] -baseURL = "https://en.bvebarcelona.cat/" languageName = "English" weight = 3 description = "The official website of the Barcelona Metro for OpenBVE" @@ -46,12 +48,12 @@ description = "The official website of the Barcelona Metro for OpenBVE" [[languages.ca.menu.main]] name = "RSS" weight = 7 - url = "/noticies/index.xml" + url = "/ca/noticies/index.xml" [[languages.es.menu.main]] name = "RSS" weight = 7 - url = "/noticias/index.xml" + url = "/es/noticias/index.xml" [[languages.en.menu.main]] name = "RSS" weight = 7 - url = "/news/index.xml" + url = "/en/news/index.xml" diff --git a/content/_index.ca.md b/content/_index.ca.md index e8ba00c..142bf79 100644 --- a/content/_index.ca.md +++ b/content/_index.ca.md @@ -5,6 +5,6 @@ menu: main: name: "Inici" weight: 1 - url: "/" + url: "/ca" --- Aquí trobareu tota la informació sobre les rutes i els trens del Metro de Barcelona per al simulador ferroviari OpenBVE. diff --git a/content/_index.en.md b/content/_index.en.md index 9ef58d3..2f24dd7 100644 --- a/content/_index.en.md +++ b/content/_index.en.md @@ -5,6 +5,6 @@ menu: main: name: "Home" weight: 1 - url: "/" + url: "/en" --- Here you will find all the information about the Barcelona Metro routes and trains available for the OpenBVE train simulator. diff --git a/content/_index.es.md b/content/_index.es.md index 53bb5c1..32c65d1 100644 --- a/content/_index.es.md +++ b/content/_index.es.md @@ -5,6 +5,6 @@ menu: main: name: "Inicio" weight: 1 - url: "/" + url: "/es" --- Aquí encontrarás toda la información sobre las rutas y los trenes del Metro de Barcelona para el simulador ferroviario OpenBVE. diff --git a/content/baixades/rutes.ca.md b/content/baixades/rutes.ca.md index 800f968..f0db373 100644 --- a/content/baixades/rutes.ca.md +++ b/content/baixades/rutes.ca.md @@ -4,11 +4,11 @@ menu: main: name: "Rutes" weight: 1 - url: "/baixades/rutes/" + url: "/ca/baixades/rutes/" parent: "Baixades" --- ||| -| ------------ | ------------- | -| ![L2](/images/rutes/menu/L2.png) | ![L2_termo](/images/rutes/menu/L2_termo.png) | -| ![L3](/images/rutes/menu/L3.png) | ![L3_termo](/images/rutes/menu/L3_termo.png) | +| -------------------------------- | -------------------------------------------------------------------------- | +| ![L2](/images/rutes/menu/L2.png) | [![L2_termo](/images/rutes/menu/L2_termo.png)](/ca/baixades/rutes/linia-2) | +| ![L3](/images/rutes/menu/L3.png) | [![L3_termo](/images/rutes/menu/L3_termo.png)](/ca/baixades/rutes/linia-3) | diff --git a/content/baixades/rutes.en.md b/content/baixades/rutes.en.md index 1de3e28..003c684 100644 --- a/content/baixades/rutes.en.md +++ b/content/baixades/rutes.en.md @@ -1,15 +1,15 @@ --- -url: "downloads/Routes" +url: "downloads/routes" title: "Routes" menu: main: name: "Routes" weight: 1 - url: "/downloads/routes/" + url: "/en/downloads/routes/" parent: "Downloads" --- ||| -| ------------ | ------------- | -| ![L2](/images/rutes/menu/L2.png) | ![L2_termo](/images/rutes/menu/L2_termo.png) | -| ![L3](/images/rutes/menu/L3.png) | ![L3_termo](/images/rutes/menu/L3_termo.png) | +| -------------------------------- | -------------------------------------------------------------------------- | +| ![L2](/images/rutes/menu/L2.png) | [![L2_termo](/images/rutes/menu/L2_termo.png)](/en/downloads/routes/line-2)| +| ![L3](/images/rutes/menu/L3.png) | [![L3_termo](/images/rutes/menu/L3_termo.png)](/en/downloads/routes/line-3)| diff --git a/content/baixades/rutes.es.md b/content/baixades/rutes.es.md index 7380399..5d3a725 100644 --- a/content/baixades/rutes.es.md +++ b/content/baixades/rutes.es.md @@ -5,11 +5,11 @@ menu: main: name: "Rutas" weight: 1 - url: "/descargas/rutas/" + url: "/es/descargas/rutas/" parent: "Descargas" --- ||| -| ------------ | ------------- | -| ![L2](/images/rutes/menu/L2.png) | ![L2_termo](/images/rutes/menu/L2_termo.png) | -| ![L3](/images/rutes/menu/L3.png) | ![L3_termo](/images/rutes/menu/L3_termo.png) | +| -------------------------------- | -------------------------------------------------------------------------- | +| ![L2](/images/rutes/menu/L2.png) | [![L2_termo](/images/rutes/menu/L2_termo.png)](/es/descargas/rutas/linea-2)| +| ![L3](/images/rutes/menu/L3.png) | [![L3_termo](/images/rutes/menu/L3_termo.png)](/es/descargas/rutas/linea-3)| diff --git a/content/baixades/trens.ca.md b/content/baixades/trens.ca.md index d17ad1e..590874c 100644 --- a/content/baixades/trens.ca.md +++ b/content/baixades/trens.ca.md @@ -4,12 +4,12 @@ menu: main: name: "Trens" weight: 1 - url: "/baixades/trens/" + url: "/ca/baixades/trens/" parent: "Baixades" --- ||| -| ------------ | ------------- | -| ![2000](/images/trens/menu/2000.png) |
Sèrie 2000 del Ferrocarril Metropolità de Barcelona
| -| ![3000](/images/trens/menu/3000.png) |
Sèrie 3000 del Ferrocarril Metropolità de Barcelona
| -| ![4000](/images/trens/menu/4000.png) |
Sèrie 4000 del Ferrocarril Metropolità de Barcelona

En preparació
| -| ![9000](/images/trens/menu/9000.png) |
Sèrie 9000 del Ferrocarril Metropolità de Barcelona
| +| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | +| ![2000](/images/trens/menu/2000.png) | {{% tabletextpadding %}}[Sèrie 2000 del Ferrocarril Metropolità de Barcelona](/ca/baixades/trens/serie-2000){{% /tabletextpadding %}} | +| ![3000](/images/trens/menu/3000.png) | {{% tabletextpadding %}}[Sèrie 3000 del Ferrocarril Metropolità de Barcelona](/ca/baixades/trens/serie-3000){{% /tabletextpadding %}} | +| ![4000](/images/trens/menu/4000.png) | {{% tabletextpadding %}}Sèrie 4000 del Ferrocarril Metropolità de Barcelona

*En preparació*{{% /tabletextpadding %}} | +| ![9000](/images/trens/menu/9000.png) | {{% tabletextpadding %}}[Sèrie 9000 del Ferrocarril Metropolità de Barcelona](/ca/baixades/trens/serie-9000){{% /tabletextpadding %}} | diff --git a/content/baixades/trens.en.md b/content/baixades/trens.en.md index f8beaeb..49331a2 100644 --- a/content/baixades/trens.en.md +++ b/content/baixades/trens.en.md @@ -5,13 +5,13 @@ menu: main: name: "Trains" weight: 1 - url: "/downloads/trains/" + url: "/en/downloads/trains/" parent: "Downloads" --- ||| -| ------------ | ------------- | -| ![2000](/images/trens/menu/2000.png) |
Barcelona Metro 2000 Series
| -| ![3000](/images/trens/menu/3000.png) |
Barcelona Metro 3000 Series
| -| ![4000](/images/trens/menu/4000.png) |
Barcelona Metro 4000 Series

Coming soon
| -| ![9000](/images/trens/menu/9000.png) |
Barcelona Metro 9000 Series
| +| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------- | +| ![2000](/images/trens/menu/2000.png) | {{% tabletextpadding %}}[Barcelona Metro 2000 Series](/en/downloads/trains/2000-series){{% /tabletextpadding %}} | +| ![3000](/images/trens/menu/3000.png) | {{% tabletextpadding %}}[Barcelona Metro 3000 Series](/en/downloads/trains/3000-series){{% /tabletextpadding %}} | +| ![4000](/images/trens/menu/4000.png) | {{% tabletextpadding %}}Barcelona Metro 4000 Series

*Coming soon*{{% /tabletextpadding %}} | +| ![9000](/images/trens/menu/9000.png) | {{% tabletextpadding %}}[Barcelona Metro 9000 Series](/en/downloads/trains/9000-series){{% /tabletextpadding %}} | diff --git a/content/baixades/trens.es.md b/content/baixades/trens.es.md index 4884284..a8549f1 100644 --- a/content/baixades/trens.es.md +++ b/content/baixades/trens.es.md @@ -5,13 +5,13 @@ menu: main: name: "Trenes" weight: 1 - url: "/descargas/trenes/" + url: "/es/descargas/trenes/" parent: "Descargas" --- ||| -| ------------ | ------------- | -| ![2000](/images/trens/menu/2000.png) |
Serie 2000 del Ferrocarril Metropolitano de Barcelona
| -| ![3000](/images/trens/menu/3000.png) |
Serie 3000 del Ferrocarril Metropolitano de Barcelona
| -| ![4000](/images/trens/menu/4000.png) |
Serie 4000 del Ferrocarril Metropolitano de Barcelona

En preparación
| -| ![9000](/images/trens/menu/9000.png) |
Serie 9000 del Ferrocarril Metropolitano de Barcelona
| +| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | +| ![2000](/images/trens/menu/2000.png) | {{% tabletextpadding %}}[Serie 2000 del Ferrocarril Metropolitano de Barcelona](/es/descargas/trenes/serie-2000){{% /tabletextpadding %}} | +| ![3000](/images/trens/menu/3000.png) | {{% tabletextpadding %}}[Serie 3000 del Ferrocarril Metropolitano de Barcelona](/es/descargas/trenes/serie-3000){{% /tabletextpadding %}} | +| ![4000](/images/trens/menu/4000.png) | {{% tabletextpadding %}}Serie 4000 del Ferrocarril Metropolitano de Barcelona

*En preparación*{{% /tabletextpadding %}} | +| ![9000](/images/trens/menu/9000.png) | {{% tabletextpadding %}}[Serie 9000 del Ferrocarril Metropolitano de Barcelona](/es/descargas/trenes/serie-9000){{% /tabletextpadding %}} | diff --git a/content/contacte.ca.md b/content/contacte.ca.md index 628b440..182f5a0 100644 --- a/content/contacte.ca.md +++ b/content/contacte.ca.md @@ -4,7 +4,7 @@ menu: main: name: "Contacte" weight: 6 - url: "/contacte/" + url: "/ca/contacte" --- Si necessiteu ajuda, teniu suggeriments o trobeu errors mentre feu servir amb els nostres continguts a l’OpenBVE, podeu escriure un missatge aquí i ho intentarem resoldre el més aviat possible. diff --git a/content/contacte.en.md b/content/contacte.en.md index 2c51887..c494f72 100644 --- a/content/contacte.en.md +++ b/content/contacte.en.md @@ -5,7 +5,7 @@ menu: main: name: "Contact" weight: 6 - url: "/contact/" + url: "/en/contact" --- If you need help, have a suggestion or have found errors while using our OpenBVE contents, leave a message here and we will try to find a solution as soon as possible. diff --git a/content/contacte.es.md b/content/contacte.es.md index a7231c4..638961d 100644 --- a/content/contacte.es.md +++ b/content/contacte.es.md @@ -5,7 +5,7 @@ menu: main: name: "Contacto" weight: 6 - url: "/contacto/" + url: "/es/contacto" --- Si necesitas ayuda, tienes sugerencias o has encontrado algún error al usar nuestros contenidos para OpenBVE, puedes escribir un mensaje aquí e intentaremos resolverlo lo antes posible. diff --git a/content/documentacio/_index.ca.md b/content/documentacio/_index.ca.md index 9f2d0c6..6dfe4f2 100644 --- a/content/documentacio/_index.ca.md +++ b/content/documentacio/_index.ca.md @@ -5,7 +5,7 @@ menu: main: name: "Documentació" weight: 3 - url: "/documentacio/" + url: "/ca/documentacio/" --- En aquesta secció trobareu informació detallada sobre alguns temes: diff --git a/content/documentacio/_index.en.md b/content/documentacio/_index.en.md index 2090e17..ff6dc20 100644 --- a/content/documentacio/_index.en.md +++ b/content/documentacio/_index.en.md @@ -6,7 +6,7 @@ menu: main: name: "Documentation" weight: 3 - url: "/documentation/" + url: "/en/documentation/" --- In this section you will find detailed information about many topics: diff --git a/content/documentacio/_index.es.md b/content/documentacio/_index.es.md index df34937..bc193c4 100644 --- a/content/documentacio/_index.es.md +++ b/content/documentacio/_index.es.md @@ -6,7 +6,7 @@ menu: main: name: "Documentación" weight: 3 - url: "/documentacion/" + url: "/es/documentacion/" --- En esta sección encontrarás información detallada sobre algunos temas: diff --git a/content/documentacio/mechanik-trasa.en.md b/content/documentacio/mechanik-trasa.en.md index 74e90ef..1f4288b 100644 --- a/content/documentacio/mechanik-trasa.en.md +++ b/content/documentacio/mechanik-trasa.en.md @@ -1,5 +1,5 @@ --- -url: "/documentation/mechanik-trasa" +url: "documentation/mechanik-trasa" title: "Format especification – Route files (Trasa.dat)" draft: true --- diff --git a/content/documentacio/openbve-conduccio-serie-2000-3000-4000.en.md b/content/documentacio/openbve-conduccio-serie-2000-3000-4000.en.md index 4b200f7..5fef15d 100644 --- a/content/documentacio/openbve-conduccio-serie-2000-3000-4000.en.md +++ b/content/documentacio/openbve-conduccio-serie-2000-3000-4000.en.md @@ -1,5 +1,5 @@ --- -url: "/documentation/openbve-driving-2000-3000-4000-series" +url: "documentation/openbve-driving-2000-3000-4000-series" title: "Driving manual – Barcelona Metro 2000/3000/4000 Series" image: '/images/manuals/3000/portada.png' --- diff --git a/content/documentacio/openbve-conduccio-serie-2000-3000-4000.es.md b/content/documentacio/openbve-conduccio-serie-2000-3000-4000.es.md index 8cd46d4..d951517 100644 --- a/content/documentacio/openbve-conduccio-serie-2000-3000-4000.es.md +++ b/content/documentacio/openbve-conduccio-serie-2000-3000-4000.es.md @@ -1,5 +1,5 @@ --- -url: "/documentation/openbve-conduccion-serie-2000-3000-4000" +url: "documentacion/openbve-conduccion-serie-2000-3000-4000" title: "Manual de conducción – Serie 2000/3000/4000 del Ferrocarril Metropolitano de Barcelona" image: '/images/manuals/3000/portada.png' --- diff --git a/content/enllaços.ca.md b/content/enllaços.ca.md index 2a6ad2d..751d8cf 100644 --- a/content/enllaços.ca.md +++ b/content/enllaços.ca.md @@ -4,23 +4,23 @@ menu: main: name: "Enllaços" weight: 5 - url: "/enllacos/" + url: "/ca/enllacos/" --- Altres pàgines relacionades amb el Metro de Barcelona i l'OpenBVE:   -
OpenBVE Project - Lloc web oficial de l'OpenBVE. ***En anglès.*** +[OpenBVE Project](https://openbve-project.net) - Lloc web oficial de l'OpenBVE. ***En anglès.*** -BVE Worldwide - Fòrum sobre els simuladors BVE i OpenBVE on es poden trobar molts projectes en construcció. ***En anglès.*** +[BVE Worldwide](https://bveworldwide.forumotion.com/) - Fòrum sobre els simuladors BVE i OpenBVE on es poden trobar molts projectes en construcció. ***En anglès.*** -RailServe - Web amb infinitat d'enllaços a pàgines web sobre viatges en ferrocarril, modelisme, simuladors i recursos diversos. Hi ha moltes rutes per a BVE i OpenBVE. ***En anglès.*** +[RailServe](https://www.railserve.com/) - Web amb infinitat d'enllaços a pàgines web sobre viatges en ferrocarril, modelisme, simuladors i recursos diversos. Hi ha moltes rutes per a BVE i OpenBVE. ***En anglès.***   -TMB - Web de Transports Metropolitans de Barcelona. +[TMB](https://www.tmb.cat) - Web de Transports Metropolitans de Barcelona. -FGC - Web de Ferrocarrils de la Generalitat de Catalunya (opera les línies L6, L7 i L8 del metro). +[FGC](https://www.fgc.cat) - Web de Ferrocarrils de la Generalitat de Catalunya (opera les línies L6, L7 i L8 del metro). -Fòrum del Transport Català - Fòrum sobre la mobilitat a Catalunya (transport públic i privat). +[Fòrum del Transport Català](https://www.transport.cat) - Fòrum sobre la mobilitat a Catalunya (transport públic i privat). diff --git a/content/enllaços.en.md b/content/enllaços.en.md index 2a7f72c..11c4832 100644 --- a/content/enllaços.en.md +++ b/content/enllaços.en.md @@ -5,22 +5,22 @@ menu: main: name: "Links" weight: 5 - url: "/links/" + url: "/en/links/" --- Other websites related to the Barcelona Metro and OpenBVE:   -OpenBVE Project - Official OpenBVE website. +[OpenBVE Project](https://openbve-project.net) - Official OpenBVE website. -BVE Worldwide - Forum about BVE and OpenBVE where a lot of projects can be found. +[BVE Worldwide](https://bveworldwide.forumotion.com/) - Forum about BVE and OpenBVE where a lot of projects can be found. -RailServe - Website full of links to pages about railway trips, model railways, train simulators and more. There are a lot of BVE and OpenBVE routes available in it. +[RailServe](https://www.railserve.com/) - Website full of links to pages about railway trips, model railways, train simulators and more. There are a lot of BVE and OpenBVE routes available in it.   -TMB - Official website for Transports Metropolitans de Barcelona. +[TMB](https://www.tmb.cat) - Official website for Transports Metropolitans de Barcelona. -FGC - Official website for Ferrocarrils de la Generalitat de Catalunya (operator of metro lines L6, L7 and L8). +[FGC](https://www.fgc.cat) - Official website for Ferrocarrils de la Generalitat de Catalunya (operator of metro lines L6, L7 and L8). -Fòrum del Transport Català - Forum about transports in Catalonia (both public and private). In Catalan and Spanish. +[Fòrum del Transport Català](https://www.transport.cat) - Forum about transports in Catalonia (both public and private). In Catalan and Spanish. diff --git a/content/enllaços.es.md b/content/enllaços.es.md index c27ff6d..f2f2256 100644 --- a/content/enllaços.es.md +++ b/content/enllaços.es.md @@ -5,22 +5,22 @@ menu: main: name: "Enlaces" weight: 5 - url: "/enlaces/" + url: "/es/enlaces/" --- Otras páginas relacionadas con el Metro de Barcelona y OpenBVE:   -OpenBVE Project - Sitio web oficial de OpenBVE. ***En inglés.*** +[OpenBVE Project](https://openbve-project.net) - Sitio web oficial de OpenBVE. ***En inglés.*** -BVE Worldwide - Foro sobre los simuladores BVE y OpenBVE donde se pueden encontrar muchos proyectos en construcción. ***En inglés.*** +[BVE Worldwide](https://bveworldwide.forumotion.com/) - Foro sobre los simuladores BVE y OpenBVE donde se pueden encontrar muchos proyectos en construcción. ***En inglés.*** -RailServe - Web con infinidad de enlaces a páginas web sobre viajes en ferrocarril, modelismo, simuladores y recursos varios. Se pueden encontrar muchas rutas para BVE y OpenBVE. ***En inglés.*** +[RailServe](https://www.railserve.com/) - Web con infinidad de enlaces a páginas web sobre viajes en ferrocarril, modelismo, simuladores y recursos varios. Se pueden encontrar muchas rutas para BVE y OpenBVE. ***En inglés.***   -TMB - Web de Transports Metropolitans de Barcelona. +[TMB](https://www.tmb.cat) - Web de Transports Metropolitans de Barcelona. -FGC - Web de Ferrocarrils de la Generalitat de Catalunya (opera las líneas L6, L7 y L8 del metro). +[FGC](https://www.fgc.cat) - Web de Ferrocarrils de la Generalitat de Catalunya (opera las líneas L6, L7 y L8 del metro). -Fòrum del Transport Català - Foro sobre la mobilidad en Cataluña (transporte público y privado). +[Fòrum del Transport Català](https://www.transport.cat) - Foro sobre la mobilidad en Cataluña (transporte público y privado). diff --git a/content/noticies/_index.ca.md b/content/noticies/_index.ca.md index cd063ed..7c6fb6d 100644 --- a/content/noticies/_index.ca.md +++ b/content/noticies/_index.ca.md @@ -4,5 +4,5 @@ menu: main: name: "Notícies" weight: 2 - url: "/noticies/" + url: "/ca/noticies/" --- diff --git a/content/noticies/_index.en.md b/content/noticies/_index.en.md index a3a9725..945dbce 100644 --- a/content/noticies/_index.en.md +++ b/content/noticies/_index.en.md @@ -5,5 +5,5 @@ menu: main: name: "News" weight: 2 - url: "/news/" + url: "/en/news/" --- diff --git a/content/noticies/_index.es.md b/content/noticies/_index.es.md index fa6b8b3..4a508cf 100644 --- a/content/noticies/_index.es.md +++ b/content/noticies/_index.es.md @@ -5,5 +5,5 @@ menu: main: name: "Noticias" weight: 2 - url: "/noticias/" + url: "/es/noticias/" --- diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..f04b2e3 --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1 @@ +{{ .Text | safeHTML }} diff --git a/layouts/shortcodes/download_obp.html b/layouts/shortcodes/download_obp.html index 7a96716..fe8e261 100644 --- a/layouts/shortcodes/download_obp.html +++ b/layouts/shortcodes/download_obp.html @@ -26,11 +26,11 @@ {{ range first 1 .assets}} {{ $filesize := (div .size 1048576) }} {{ if eq $currentlang "ca" }} -

Darrera versió ({{ dateFormat "2006/01/02" $latestupdate }}): Descarrega {{ print $latestversion }} ({{ lang.NumFmt 2 $filesize "- ," }} MB)

+

Darrera versió ({{ dateFormat "2006/01/02" $latestupdate }}, {{ print $latestversion }}): Baixa ({{ lang.NumFmt 2 $filesize "- ," }} MB)

{{ else if eq $currentlang "es" }} -

Última versión ({{ dateFormat "2006/01/02" $latestupdate }}): Descargar {{ print $latestversion }} ({{ lang.NumFmt 2 $filesize "- ," }} MB)

+

Última versión ({{ dateFormat "2006/01/02" $latestupdate }}, {{ print $latestversion }}): Descargar ({{ lang.NumFmt 2 $filesize "- ," }} MB)

{{ else }} -

Latest version ({{ dateFormat "2006/01/02" $latestupdate }}): Download {{ print $latestversion }} ({{ lang.NumFmt 2 $filesize "- ." }} MB)

+

Latest version ({{ dateFormat "2006/01/02" $latestupdate }}, {{ print $latestversion }}): Download ({{ lang.NumFmt 2 $filesize "- ." }} MB)

{{ end }} {{ end }} diff --git a/layouts/shortcodes/tabletextpadding.html b/layouts/shortcodes/tabletextpadding.html new file mode 100644 index 0000000..6c8bf3b --- /dev/null +++ b/layouts/shortcodes/tabletextpadding.html @@ -0,0 +1,2 @@ +
{{ .Inner }}
+{{- print "" -}}