Reorganize in subfolders

main
Marc Riera Irigoyen 2020-06-30 01:09:31 +02:00
parent ccf737b6c3
commit daf06c6746
28 changed files with 83 additions and 78 deletions

View File

@ -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"

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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) | <a href="/baixades/rutes/linia-2">![L2_termo](/images/rutes/menu/L2_termo.png)</a> |
| ![L3](/images/rutes/menu/L3.png) | <a href="/baixades/rutes/linia-3">![L3_termo](/images/rutes/menu/L3_termo.png)</a> |
| -------------------------------- | -------------------------------------------------------------------------- |
| ![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) |

View File

@ -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) | <a href="/downloads/routes/line-2">![L2_termo](/images/rutes/menu/L2_termo.png)</a> |
| ![L3](/images/rutes/menu/L3.png) | <a href="/downloads/routes/line-3">![L3_termo](/images/rutes/menu/L3_termo.png)</a> |
| -------------------------------- | -------------------------------------------------------------------------- |
| ![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)|

View File

@ -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) | <a href="/descargas/rutas/linea-2">![L2_termo](/images/rutes/menu/L2_termo.png)</a> |
| ![L3](/images/rutes/menu/L3.png) | <a href="/descargas/rutas/linea-3">![L3_termo](/images/rutes/menu/L3_termo.png)</a> |
| -------------------------------- | -------------------------------------------------------------------------- |
| ![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)|

View File

@ -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) | <div class="tabletextpadding"><a href="/baixades/trens/serie-2000">Sèrie 2000 del Ferrocarril Metropolità de Barcelona</a></div> |
| ![3000](/images/trens/menu/3000.png) | <div class="tabletextpadding"><a href="/baixades/trens/serie-3000">Sèrie 3000 del Ferrocarril Metropolità de Barcelona</a></div> |
| ![4000](/images/trens/menu/4000.png) | <div class="tabletextpadding">Sèrie 4000 del Ferrocarril Metropolità de Barcelona<br><br><em>En preparació</em></div> |
| ![9000](/images/trens/menu/9000.png) | <div class="tabletextpadding"><a href="/baixades/trens/serie-9000">Sèrie 9000 del Ferrocarril Metropolità de Barcelona</a></div> |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| ![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<br/><br/>*En preparació*{{% /tabletextpadding %}} |
| ![9000](/images/trens/menu/9000.png) | {{% tabletextpadding %}}[Sèrie 9000 del Ferrocarril Metropolità de Barcelona](/ca/baixades/trens/serie-9000){{% /tabletextpadding %}} |

View File

@ -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) | <div class="tabletextpadding"><a href="/downloads/trains/2000-series">Barcelona Metro 2000 Series</div> |
| ![3000](/images/trens/menu/3000.png) | <div class="tabletextpadding"><a href="/downloads/trains/3000-series">Barcelona Metro 3000 Series</div> |
| ![4000](/images/trens/menu/4000.png) | <div class="tabletextpadding">Barcelona Metro 4000 Series<br><br><em>Coming soon</em></div> |
| ![9000](/images/trens/menu/9000.png) | <div class="tabletextpadding"><a href="/downloads/trains/9000-series">Barcelona Metro 9000 Series</div> |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| ![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<br/><br/>*Coming soon*{{% /tabletextpadding %}} |
| ![9000](/images/trens/menu/9000.png) | {{% tabletextpadding %}}[Barcelona Metro 9000 Series](/en/downloads/trains/9000-series){{% /tabletextpadding %}} |

View File

@ -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) | <div class="tabletextpadding"><a href="/descargas/trenes/serie-2000">Serie 2000 del Ferrocarril Metropolitano de Barcelona</div> |
| ![3000](/images/trens/menu/3000.png) | <div class="tabletextpadding"><a href="/descargas/trenes/serie-3000">Serie 3000 del Ferrocarril Metropolitano de Barcelona</div> |
| ![4000](/images/trens/menu/4000.png) | <div class="tabletextpadding">Serie 4000 del Ferrocarril Metropolitano de Barcelona<br><br><em>En preparación</em></div> |
| ![9000](/images/trens/menu/9000.png) | <div class="tabletextpadding"><a href="/descargas/trenes/serie-9000">Serie 9000 del Ferrocarril Metropolitano de Barcelona</div> |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| ![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<br/><br/>*En preparación*{{% /tabletextpadding %}} |
| ![9000](/images/trens/menu/9000.png) | {{% tabletextpadding %}}[Serie 9000 del Ferrocarril Metropolitano de Barcelona](/es/descargas/trenes/serie-9000){{% /tabletextpadding %}} |

View File

@ -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 lOpenBVE, podeu escriure un missatge aquí i ho intentarem resoldre el més aviat possible.

View File

@ -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.

View File

@ -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.

View File

@ -5,7 +5,7 @@ menu:
main:
name: "Documentació"
weight: 3
url: "/documentacio/"
url: "/ca/documentacio/"
---
En aquesta secció trobareu informació detallada sobre alguns temes:

View File

@ -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:

View File

@ -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:

View File

@ -1,5 +1,5 @@
---
url: "/documentation/mechanik-trasa"
url: "documentation/mechanik-trasa"
title: "Format especification Route files (Trasa.dat)"
draft: true
---

View File

@ -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'
---

View File

@ -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'
---

View File

@ -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:
&nbsp;
<a href="http://www.openbve-project.net" target="_blank">OpenBVE Project</a> - Lloc web oficial de l'OpenBVE. ***En anglès.***
[OpenBVE Project](https://openbve-project.net) - Lloc web oficial de l'OpenBVE. ***En anglès.***
<a href="http://bveworldwide.unlimitedboard.com/" target="_blank">BVE Worldwide</a> - 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.***
<a href="http://www.railserve.com/" target="_blank">RailServe</a> - 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.***
&nbsp;
<a href="http://www.tmb.cat" target="_blank">TMB</a> - Web de Transports Metropolitans de Barcelona.
[TMB](https://www.tmb.cat) - Web de Transports Metropolitans de Barcelona.
<a href="http://www.fgc.cat" target="_blank">FGC</a> - 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).
<a href="http://www.transport.cat" target="_blank">Fòrum del Transport Català</a> - 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).

View File

@ -5,22 +5,22 @@ menu:
main:
name: "Links"
weight: 5
url: "/links/"
url: "/en/links/"
---
Other websites related to the Barcelona Metro and OpenBVE:
&nbsp;
<a href="http://www.openbve-project.net" target="_blank">OpenBVE Project</a> - Official OpenBVE website.
[OpenBVE Project](https://openbve-project.net) - Official OpenBVE website.
<a href="http://bveworldwide.unlimitedboard.com/" target="_blank">BVE Worldwide</a> - 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.
<a href="http://www.railserve.com/" target="_blank">RailServe</a> - 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.
&nbsp;
<a href="http://www.tmb.cat" target="_blank">TMB</a> - Official website for Transports Metropolitans de Barcelona.
[TMB](https://www.tmb.cat) - Official website for Transports Metropolitans de Barcelona.
<a href="http://www.fgc.cat" target="_blank">FGC</a> - 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).
<a href="http://www.transport.cat" target="_blank">Fòrum del Transport Català</a> - Forum about transports in Catalonia (both public and private). <em><strong>In Catalan and Spanish.</strong></em>
[Fòrum del Transport Català](https://www.transport.cat) - Forum about transports in Catalonia (both public and private). <em><strong>In Catalan and Spanish.</strong></em>

View File

@ -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:
&nbsp;
<a href="http://www.openbve-project.net" target="_blank">OpenBVE Project</a> - Sitio web oficial de OpenBVE. ***En inglés.***
[OpenBVE Project](https://openbve-project.net) - Sitio web oficial de OpenBVE. ***En inglés.***
<a href="http://bveworldwide.unlimitedboard.com/" target="_blank">BVE Worldwide</a> - 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.***
<a href="http://www.railserve.com/" target="_blank">RailServe</a> - 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.***
&nbsp;
<a href="http://www.tmb.cat" target="_blank">TMB</a> - Web de Transports Metropolitans de Barcelona.
[TMB](https://www.tmb.cat) - Web de Transports Metropolitans de Barcelona.
<a href="http://www.fgc.cat" target="_blank">FGC</a> - 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).
<a href="http://www.transport.cat" target="_blank">Fòrum del Transport Català</a> - 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).

View File

@ -4,5 +4,5 @@ menu:
main:
name: "Notícies"
weight: 2
url: "/noticies/"
url: "/ca/noticies/"
---

View File

@ -5,5 +5,5 @@ menu:
main:
name: "News"
weight: 2
url: "/news/"
url: "/en/news/"
---

View File

@ -5,5 +5,5 @@ menu:
main:
name: "Noticias"
weight: 2
url: "/noticias/"
url: "/es/noticias/"
---

View File

@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>

View File

@ -26,11 +26,11 @@
{{ range first 1 .assets}}
{{ $filesize := (div .size 1048576) }}
{{ if eq $currentlang "ca" }}
<p><b>Darrera versió ({{ dateFormat "2006/01/02" $latestupdate }}): <a href="{{ .browser_download_url }}">Descarrega {{ print $latestversion }} ({{ lang.NumFmt 2 $filesize "- ," }} MB)</a></b></p>
<p><b>Darrera versió ({{ dateFormat "2006/01/02" $latestupdate }}, {{ print $latestversion }}): <a href="{{ .browser_download_url }}">Baixa ({{ lang.NumFmt 2 $filesize "- ," }} MB)</a></b></p>
{{ else if eq $currentlang "es" }}
<p><b>Última versión ({{ dateFormat "2006/01/02" $latestupdate }}): <a href="{{ .browser_download_url }}">Descargar {{ print $latestversion }} ({{ lang.NumFmt 2 $filesize "- ," }} MB)</a></b></p>
<p><b>Última versión ({{ dateFormat "2006/01/02" $latestupdate }}, {{ print $latestversion }}): <a href="{{ .browser_download_url }}">Descargar ({{ lang.NumFmt 2 $filesize "- ," }} MB)</a></b></p>
{{ else }}
<p><b>Latest version ({{ dateFormat "2006/01/02" $latestupdate }}): <a href="{{ .browser_download_url }}">Download {{ print $latestversion }} ({{ lang.NumFmt 2 $filesize "- ." }} MB)</a></b></p>
<p><b>Latest version ({{ dateFormat "2006/01/02" $latestupdate }}, {{ print $latestversion }}): <a href="{{ .browser_download_url }}">Download ({{ lang.NumFmt 2 $filesize "- ." }} MB)</a></b></p>
{{ end }}
{{ end }}

View File

@ -0,0 +1,2 @@
<div class="tabletextpadding">{{ .Inner }}</div>
{{- print "" -}}