diff --git a/config.toml b/config.toml index 39e0d4c..4ecc664 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,169 @@ baseURL = "https://bvebarcelona.netlify.com" -languageCode = "ca-es" title = "BVE Barcelona" -theme = "ananke" +theme = "crab" +DefaultContentLanguage = "ca" +removePathAccents = true + +[params] + name = "BVE Barcelona" + copyright = "BVE Barcelona" + logoimage = "images/logo.png" + attribution = "true" + custom_css = "css/site.css" + +[params.custom] + faviconPNG = "favicon.png" + + +[permalinks] + noticies = "/:section/:year/:month/:day/:title/" + + + + +[languages] +[languages.ca] +baseURL = "https://bvebarcelona.netlify.com" +languageName = "Català" +weight = 1 +description = "El lloc web oficial del Metro de Barcelona per a openBVE" + + +[languages.es] +baseURL = "https://es.bvebarcelona.netlify.com" +languageName = "Español" +weight = 2 +description = "El sitio web oficial del Metro de Barcelona para openBVE" + + +[languages.en] +baseURL = "https://en.bvebarcelona.netlify.com" +languageName = "English" +weight = 3 +description = "The official website of the Barcelona Metro for openBVE" + + + + +[[languages.ca.menu.main]] + name = "Inici" + weight = 1 + url = "/" +[[languages.ca.menu.main]] + name = "Notícies" + weight = 2 + url = "/noticies/" +[[languages.ca.menu.main]] + name = "Manuals" + weight = 3 + url = "/manuals/" +[[languages.ca.menu.main]] + name = "Descàrregues" + weight = 4 + url = "#" + identifier = "Descàrregues" +[[languages.ca.menu.main]] + name = "Rutes" + weight = 1 + url = "/descarregues/rutes/" + parent = "Descàrregues" +[[languages.ca.menu.main]] + name = "Trens" + weight = 2 + url = "/descarregues/trens/" + parent = "Descàrregues" +[[languages.ca.menu.main]] + name = "Enllaços" + weight = 5 + url = "/enllacos/" +[[languages.ca.menu.main]] + name = "Contacta" + weight = 6 + url = "/contacta/" +[[languages.ca.menu.main]] + name = "RSS" + weight = 7 + url = "/noticies/index.xml" + +[[languages.es.menu.main]] + name = "Inicio" + weight = 1 + url = "/" +[[languages.es.menu.main]] + name = "Noticias" + weight = 2 + url = "/noticias/" +[[languages.es.menu.main]] + name = "Manuales" + weight = 3 + url = "/manuales/" +[[languages.es.menu.main]] + name = "Descargas" + weight = 4 + url = "#" + identifier = "Descargas" +[[languages.es.menu.main]] + name = "Rutas" + weight = 1 + url = "/descargas/rutas/" + parent = "Descargas" +[[languages.es.menu.main]] + name = "Trenes" + weight = 2 + url = "/descargas/trenes/" + parent = "Descargas" +[[languages.es.menu.main]] + name = "Enlaces" + weight = 5 + url = "/enlaces/" +[[languages.es.menu.main]] + name = "Contacto" + weight = 6 + url = "/contacto/" +[[languages.es.menu.main]] + name = "RSS" + weight = 7 + url = "/noticias/index.xml" + +[[languages.en.menu.main]] + name = "Home" + weight = 1 + url = "/" +[[languages.en.menu.main]] + name = "News" + weight = 2 + url = "/news/" +[[languages.en.menu.main]] + name = "Manuals" + weight = 3 + url = "/manuals/" +[[languages.en.menu.main]] + name = "Downloads" + weight = 4 + url = "#" + identifier = "Downloads" +[[languages.en.menu.main]] + name = "Routes" + weight = 1 + url = "/downloads/routes/" + parent = "Downloads" +[[languages.en.menu.main]] + name = "Trains" + weight = 2 + url = "/downloads/trains/" + parent = "Downloads" +[[languages.en.menu.main]] + name = "Links" + weight = 5 + url = "/links/" +[[languages.en.menu.main]] + name = "Contact" + weight = 6 + url = "/contact/" +[[languages.en.menu.main]] + name = "RSS" + weight = 7 + url = "/news/index.xml" + + + diff --git a/content/_index.ca.md b/content/_index.ca.md new file mode 100644 index 0000000..c0a7b8c --- /dev/null +++ b/content/_index.ca.md @@ -0,0 +1,5 @@ ++++ +title = "Benvinguts!" +image = '/images/main/portada.png' ++++ +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 new file mode 100644 index 0000000..3551bec --- /dev/null +++ b/content/_index.en.md @@ -0,0 +1,6 @@ ++++ +title = "Welcome!" +image = '/images/main/portada.png' +slug = "home" ++++ +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 new file mode 100644 index 0000000..e6bf76e --- /dev/null +++ b/content/_index.es.md @@ -0,0 +1,6 @@ ++++ +title = "¡Bienvenido!" +image = '/images/main/portada.png' +slug = "inicio" ++++ +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/contacta.ca.md b/content/contacta.ca.md new file mode 100644 index 0000000..d1db8ff --- /dev/null +++ b/content/contacta.ca.md @@ -0,0 +1,5 @@ +--- +title: "Contacta" +draft: false +--- +Pàgina no disponible temporalment. Disculpeu les molèsties. diff --git a/content/contacta.en.md b/content/contacta.en.md new file mode 100644 index 0000000..1758d2b --- /dev/null +++ b/content/contacta.en.md @@ -0,0 +1,6 @@ +--- +url: "contact" +title: "Contact" +draft: false +--- +This page is temporarily unavailable. Sorry for the inconvenience. diff --git a/content/contacta.es.md b/content/contacta.es.md new file mode 100644 index 0000000..9273f70 --- /dev/null +++ b/content/contacta.es.md @@ -0,0 +1,6 @@ +--- +url: "contacto" +title: "Contacto" +draft: false +--- +Página no disponible temporalmente. Disculpa las molestias. diff --git a/content/descarregues.ca.md b/content/descarregues.ca.md new file mode 100644 index 0000000..b1915e7 --- /dev/null +++ b/content/descarregues.ca.md @@ -0,0 +1,5 @@ +--- +title: "Descàrregues" +type: "single" +--- +Pàgina no disponible temporalment. Disculpeu les molèsties. diff --git a/content/descarregues.en.md b/content/descarregues.en.md new file mode 100644 index 0000000..59b4374 --- /dev/null +++ b/content/descarregues.en.md @@ -0,0 +1,6 @@ +--- +url: "downloads" +title: "Downloads" +type: "single" +--- +This page is temporarily unavailable. Sorry for the inconvenience. diff --git a/content/descarregues.es.md b/content/descarregues.es.md new file mode 100644 index 0000000..459d123 --- /dev/null +++ b/content/descarregues.es.md @@ -0,0 +1,6 @@ +--- +url: "descargas" +title: "Descargas" +type: "single" +--- +Página no disponible temporalmente. Disculpa las molestias. diff --git a/content/descarregues/rutes.ca.md b/content/descarregues/rutes.ca.md new file mode 100644 index 0000000..12a44ef --- /dev/null +++ b/content/descarregues/rutes.ca.md @@ -0,0 +1,12 @@ +--- +title: "Rutes" +draft: false +menu: + main: + parent: "Descàrregues" +--- + +||| +| ------------ | ------------- | +| ![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) | diff --git a/content/descarregues/rutes.en.md b/content/descarregues/rutes.en.md new file mode 100644 index 0000000..ca68187 --- /dev/null +++ b/content/descarregues/rutes.en.md @@ -0,0 +1,10 @@ +--- +url: "downloads/Routes" +title: "Routes" +draft: false +--- + +||| +| ------------ | ------------- | +| ![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) | diff --git a/content/descarregues/rutes.es.md b/content/descarregues/rutes.es.md new file mode 100644 index 0000000..9b8193e --- /dev/null +++ b/content/descarregues/rutes.es.md @@ -0,0 +1,10 @@ +--- +url: "descargas/rutas" +title: "Rutas" +draft: false +--- + +||| +| ------------ | ------------- | +| ![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) | diff --git a/content/descarregues/rutes/linia-2.ca.md b/content/descarregues/rutes/linia-2.ca.md new file mode 100644 index 0000000..5be5756 --- /dev/null +++ b/content/descarregues/rutes/linia-2.ca.md @@ -0,0 +1,22 @@ +--- +title: "Línia 2 del Ferrocarril Metropolità de Barcelona" +draft: false +--- +### Creador: + +* Diego Silvosa + +### Característiques: + +* Recorregut de Paral·lel a Bac de Roda (7 km) +* Compatible amb ATP i ATO +* Trens recomanats: Sèrie 2000 del FCMB i Sèrie 9000 del FCMB + +  + +**Darrera versió (27/11/2016): Descarrega (72 MB)** + +  + + + diff --git a/content/descarregues/rutes/linia-3.ca.md b/content/descarregues/rutes/linia-3.ca.md new file mode 100644 index 0000000..675f414 --- /dev/null +++ b/content/descarregues/rutes/linia-3.ca.md @@ -0,0 +1,22 @@ +--- +title: "Línia 3 del Ferrocarril Metropolità de Barcelona" +draft: false +--- +### Creador: + +* Marc Riera + +### Característiques: + +* Recorregut de Lesseps a Liceu (3,5 km) +* Compatible amb ATP i ATO +* Trens recomanats: Sèrie 2000 del FCMB i Sèrie 3000 del FCMB + +  + +**Darrera versió (30/10/2016): Descarrega (10,5 MB)** + +  + + + diff --git a/content/descarregues/trens.ca.md b/content/descarregues/trens.ca.md new file mode 100644 index 0000000..a0124a4 --- /dev/null +++ b/content/descarregues/trens.ca.md @@ -0,0 +1,13 @@ +--- +title: "Trens" +draft: false +menu: + main: + parent: "Descàrregues" +--- +||| +| ------------ | ------------- | +| ![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
| diff --git a/content/descarregues/trens.en.md b/content/descarregues/trens.en.md new file mode 100644 index 0000000..b71a5ea --- /dev/null +++ b/content/descarregues/trens.en.md @@ -0,0 +1,12 @@ +--- +url: "downloads/trains" +title: "Trains" +draft: false +--- + +||| +| ------------ | ------------- | +| ![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
| diff --git a/content/descarregues/trens.es.md b/content/descarregues/trens.es.md new file mode 100644 index 0000000..bb82558 --- /dev/null +++ b/content/descarregues/trens.es.md @@ -0,0 +1,12 @@ +--- +url: "descargas/trenes" +title: "Trenes" +draft: false +--- + +||| +| ------------ | ------------- | +| ![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
| diff --git a/content/descarregues/trens/serie-2000.ca.md b/content/descarregues/trens/serie-2000.ca.md new file mode 100644 index 0000000..69d0929 --- /dev/null +++ b/content/descarregues/trens/serie-2000.ca.md @@ -0,0 +1,31 @@ +--- +title: "Sèrie 2000 del Ferrocarril Metropolità de Barcelona" +draft: false +--- +### Creador: + +* Marc Riera + +### Característiques tècniques: + +* Any de construcció: 1992 +* Constructor: CAF, MEINFESA, GEC-ALSTHOM +* Nombre de cotxes: 5 (tren continu) +* Presa de corrent: catenària o tercer carril a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Tren 2001-2002-R2301-2003-2004 +* Cabina completament en 3D amb animacions +* Vista exterior i interior +* Plugin personalitzat (simulació dels sistemes ATP i ATO) +* Megafonia de la L3 inclosa + +  + +**Darrera versió (4/10/2016): Descarrega (22,4 MB)** + +  + + diff --git a/content/descarregues/trens/serie-2000.en.md b/content/descarregues/trens/serie-2000.en.md new file mode 100644 index 0000000..bfcaab8 --- /dev/null +++ b/content/descarregues/trens/serie-2000.en.md @@ -0,0 +1,32 @@ +--- +url: "downloads/trains/2000-series" +title: "Barcelona Metro 2000 Series" +draft: false +--- +### Creador: + +* Marc Riera + +### Característiques tècniques: + +* Any de construcció: 1992 +* Constructor: CAF, MEINFESA, GEC-ALSTHOM +* Nombre de cotxes: 5 (tren continu) +* Presa de corrent: catenària o tercer carril a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Tren 2001-2002-R2301-2003-2004 +* Cabina completament en 3D amb animacions +* Vista exterior i interior +* Plugin personalitzat (simulació dels sistemes ATP i ATO) +* Megafonia de la L3 inclosa + +  + +**Darrera versió (4/10/2016): Descarrega (22,4 MB)** + +  + + diff --git a/content/descarregues/trens/serie-2000.es.md b/content/descarregues/trens/serie-2000.es.md new file mode 100644 index 0000000..724ccd7 --- /dev/null +++ b/content/descarregues/trens/serie-2000.es.md @@ -0,0 +1,32 @@ +--- +url: "descargas/trenes/serie-2000" +title: "Serie 2000 del Ferrocarril Metropolitano de Barcelona" +draft: false +--- +### Creador: + +* Marc Riera + +### Característiques tècniques: + +* Any de construcció: 1992 +* Constructor: CAF, MEINFESA, GEC-ALSTHOM +* Nombre de cotxes: 5 (tren continu) +* Presa de corrent: catenària o tercer carril a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Tren 2001-2002-R2301-2003-2004 +* Cabina completament en 3D amb animacions +* Vista exterior i interior +* Plugin personalitzat (simulació dels sistemes ATP i ATO) +* Megafonia de la L3 inclosa + +  + +**Darrera versió (4/10/2016): Descarrega (22,4 MB)** + +  + + diff --git a/content/descarregues/trens/serie-3000.ca.md b/content/descarregues/trens/serie-3000.ca.md new file mode 100644 index 0000000..5ec780f --- /dev/null +++ b/content/descarregues/trens/serie-3000.ca.md @@ -0,0 +1,31 @@ +--- +title: "Sèrie 3000 del Ferrocarril Metropolità de Barcelona" +draft: false +--- +### Creador: + +* Marc Riera + +### Característiques tècniques: + +* Any de construcció: 1986 +* Constructor: CAF, MTM, MACOSA +* Nombre de cotxes: 5 (dues composicions de 2 i 3 cotxes) +* Presa de corrent: catenària o tercer carril a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Tren 3001-3002-3003-3301-3004 +* Cabina completament en 3D amb animacions +* Vista exterior i interior +* Plugin personalitzat (simulació dels sistemes ATP i ATO) +* Megafonia de la L3 inclosa + +  + +**Darrera versió (4/10/2016): Descarrega (22,4 MB)** + +  + + diff --git a/content/descarregues/trens/serie-3000.en.md b/content/descarregues/trens/serie-3000.en.md new file mode 100644 index 0000000..fefe98c --- /dev/null +++ b/content/descarregues/trens/serie-3000.en.md @@ -0,0 +1,25 @@ +--- +url: "downloads/trains/3000-series" +title: "Barcelona Metro 3000 Series" +draft: false +--- +### Creador: + +* Marc Riera + +### Característiques tècniques: + +* Any de construcció: 1986 +* Constructor: CAF, MTM, MACOSA +* Nombre de cotxes: 5 (dues composicions de 2 i 3 cotxes) +* Presa de corrent: catenària o tercer carril a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Tren 3001-3002-3003-3301-3004 +* Cabina completament en 3D amb animacions +* Vista exterior i interior +* Plugin personalitzat (simulació dels sistemes ATP i ATO) +* Megafonia de la L3 inclosa + diff --git a/content/descarregues/trens/serie-3000.es.md b/content/descarregues/trens/serie-3000.es.md new file mode 100644 index 0000000..c338dc5 --- /dev/null +++ b/content/descarregues/trens/serie-3000.es.md @@ -0,0 +1,25 @@ +--- +url: "descargas/trenes/serie-3000" +title: "Serie 3000 del Ferrocarril Metropolitano de Barcelona" +draft: false +--- +### Creador: + +* Marc Riera + +### Característiques tècniques: + +* Any de construcció: 1986 +* Constructor: CAF, MTM, MACOSA +* Nombre de cotxes: 5 (dues composicions de 2 i 3 cotxes) +* Presa de corrent: catenària o tercer carril a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Tren 3001-3002-3003-3301-3004 +* Cabina completament en 3D amb animacions +* Vista exterior i interior +* Plugin personalitzat (simulació dels sistemes ATP i ATO) +* Megafonia de la L3 inclosa + diff --git a/content/descarregues/trens/serie-9000.ca.md b/content/descarregues/trens/serie-9000.ca.md new file mode 100644 index 0000000..b319a8a --- /dev/null +++ b/content/descarregues/trens/serie-9000.ca.md @@ -0,0 +1,29 @@ +--- +title: "Sèrie 9000 del Ferrocarril Metropolità de Barcelona" +draft: false +--- +### Creador: + +* Diego Silvosa + +### Característiques tècniques: + +* Any de construcció: 2006 +* Constructor: ALSTOM +* Nombre de cotxes: 5 (tren continu) +* Presa de corrent: catenària a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Cabina 2D estàtica +* Sense vista exterior +* Sons realistes + +  + +**Darrera versió (8/2/2016): Descarrega (5,0 MB)** + +  + + diff --git a/content/descarregues/trens/serie-9000.en.md b/content/descarregues/trens/serie-9000.en.md new file mode 100644 index 0000000..e4b5512 --- /dev/null +++ b/content/descarregues/trens/serie-9000.en.md @@ -0,0 +1,30 @@ +--- +url: "downloads/trains/9000-series" +title: "Barcelona Metro 9000 Series" +draft: false +--- +### Creador: + +* Diego Silvosa + +### Característiques tècniques: + +* Any de construcció: 2006 +* Constructor: ALSTOM +* Nombre de cotxes: 5 (tren continu) +* Presa de corrent: catenària a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Cabina 2D estàtica +* Sense vista exterior +* Sons realistes + +  + +**Darrera versió (8/2/2016): Descarrega (5,0 MB)** + +  + + diff --git a/content/descarregues/trens/serie-9000.es.md b/content/descarregues/trens/serie-9000.es.md new file mode 100644 index 0000000..81e26f1 --- /dev/null +++ b/content/descarregues/trens/serie-9000.es.md @@ -0,0 +1,30 @@ +--- +url: "descargas/trenes/serie-9000" +title: "Serie 9000 del Ferrocarril Metropolitano de Barcelona" +draft: false +--- +### Creador: + +* Diego Silvosa + +### Característiques tècniques: + +* Any de construcció: 2006 +* Constructor: ALSTOM +* Nombre de cotxes: 5 (tren continu) +* Presa de corrent: catenària a 1200 V +* Sistemes de seguretat: Tren Stop, ATP/ATO + +### Característiques a openBVE: + +* Cabina 2D estàtica +* Sense vista exterior +* Sons realistes + +  + +**Darrera versió (8/2/2016): Descarrega (5,0 MB)** + +  + + diff --git a/content/enllaços.ca.md b/content/enllaços.ca.md new file mode 100644 index 0000000..7f65161 --- /dev/null +++ b/content/enllaços.ca.md @@ -0,0 +1,16 @@ +--- +title: "Enllaços" +--- +Altres pàgines relacionades amb el Metro de Barcelona i l'openBVE: + +  + +TMB - 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). + +Fòrum del Transport Català - Fòrum sobre la mobilitat a Catalunya (transport públic i privat). + +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. + +BVE Worldwide - Fòrum sobre els simuladors BVE i openBVE on es poden trobar molts projectes en construcció. En anglès. diff --git a/content/enllaços.en.md b/content/enllaços.en.md new file mode 100644 index 0000000..e446d26 --- /dev/null +++ b/content/enllaços.en.md @@ -0,0 +1,17 @@ +--- +url: "links" +title: "Links" +--- +Other websites related to the Barcelona Metro and OpenBVE: + +  + +TMB - 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). + +Fòrum del Transport Català - Forum about transports in Catalonia (both public and private). In Catalan and Spanish. + +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. + +BVE Worldwide - Forum about BVE and openBVE where a lot of projects can be found. diff --git a/content/enllaços.es.md b/content/enllaços.es.md new file mode 100644 index 0000000..8363b46 --- /dev/null +++ b/content/enllaços.es.md @@ -0,0 +1,17 @@ +--- +url: "enlaces" +title: "Enlaces" +--- +Otras páginas relacionadas con el Metro de Barcelona y OpenBVE: + +  + +TMB - 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). + +Fòrum del Transport Català - Foro sobre la mobilidad en Cataluña (transporte público y privado). + +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. + +BVE Worldwide - Foro sobre los simuladores BVE y openBVE donde se pueden encontrar muchos proyectos en construcción. En inglés. diff --git a/content/manuals/index.ca.md b/content/manuals/index.ca.md new file mode 100644 index 0000000..81166e6 --- /dev/null +++ b/content/manuals/index.ca.md @@ -0,0 +1,5 @@ +--- +title: "Manuals" +draft: false +--- +Pàgina no disponible temporalment. Disculpeu les molèsties. diff --git a/content/manuals/index.en.md b/content/manuals/index.en.md new file mode 100644 index 0000000..2aa069c --- /dev/null +++ b/content/manuals/index.en.md @@ -0,0 +1,6 @@ +--- +url: "manuals" +title: "Manuals" +draft: false +--- +This page is temporarily unavailable. Sorry for the inconvenience. diff --git a/content/manuals/index.es.md b/content/manuals/index.es.md new file mode 100644 index 0000000..122b22d --- /dev/null +++ b/content/manuals/index.es.md @@ -0,0 +1,6 @@ +--- +url: "manuales" +title: "Manuales" +draft: false +--- +Página no disponible temporalmente. Disculpa las molestias. diff --git a/content/noticies/bve-barcelona-ja-es-aqui.md b/content/noticies/20160128-bve-barcelona-ja-es-aqui.ca.md similarity index 99% rename from content/noticies/bve-barcelona-ja-es-aqui.md rename to content/noticies/20160128-bve-barcelona-ja-es-aqui.ca.md index e987084..8d4c998 100644 --- a/content/noticies/bve-barcelona-ja-es-aqui.md +++ b/content/noticies/20160128-bve-barcelona-ja-es-aqui.ca.md @@ -3,7 +3,6 @@ title: "BVE Barcelona ja és aquí!" date: 2016-01-28T12:00:00+01:00 draft: false --- - Avui 28 de gener de 2016 ha obert oficialment el lloc BVE Barcelona. Properament hi podreu trobar descàrregues i notícies dels continguts que hi ha del Metro de Barcelona per a OpenBVE. De moment són pocs, però segur que aniran creixent en quantitat i qualitat! Estigueu atents a les properes novetats. Podeu configurar una subscripció RSS si voleu estar informats en tot moment de l’activitat de la web. diff --git a/content/noticies/20160128-bve-barcelona-ja-es-aqui.en.md b/content/noticies/20160128-bve-barcelona-ja-es-aqui.en.md new file mode 100644 index 0000000..eac4118 --- /dev/null +++ b/content/noticies/20160128-bve-barcelona-ja-es-aqui.en.md @@ -0,0 +1,11 @@ +--- +url: "news/2016/01/28/bve-barcelona-is-here" +title: "BVE Barcelona is here!" +date: 2016-01-28T12:00:00+01:00 +draft: false +--- +Since today, January 29th 2016, the BVE Barcelona website is officially open. Downloads and news related to the Barcelona Metro contents for OpenBVE will be available soon. Those contents are currently only a handful, but they will certainly become bigger and better in the future! + +Stay tuned for news. You can subscribe via RSS to receive all the updates posted on this website. + +See you soon! diff --git a/content/noticies/20160128-bve-barcelona-ja-es-aqui.es.md b/content/noticies/20160128-bve-barcelona-ja-es-aqui.es.md new file mode 100644 index 0000000..17d4d70 --- /dev/null +++ b/content/noticies/20160128-bve-barcelona-ja-es-aqui.es.md @@ -0,0 +1,11 @@ +--- +url: "noticias/2016/01/28/bve-barcelona-ya-esta-aqui" +title: "¡BVE Barcelona ya está aquí!" +date: 2016-01-28T12:00:00+01:00 +draft: false +--- +Hoy 29 de enero de 2016 ha quedado abierto oficialmente el sitio web BVE Barcelona. Próximamente encontraréis descargas y noticias de los contenidos que hay del Metro de Barcelona para OpenBVE. De momento son pocos, ¡pero seguro que crecerán en cantidad y calidad! + +Estad atentos a las próximas novedades. Podéis configurar una suscripción RSS si queréis estar informados en todo momento de la actividad del sitio web. + +¡Hasta la próxima! diff --git a/content/noticies/20160205-la-linia-3-a-tmb-noticies.md b/content/noticies/20160205-la-linia-3-a-tmb-noticies.md new file mode 100644 index 0000000..423e8f9 --- /dev/null +++ b/content/noticies/20160205-la-linia-3-a-tmb-noticies.md @@ -0,0 +1,10 @@ +--- +title: "La Línia 3, a TMB Notícies" +date: 2016-02-05T12:00:00+01:00 +draft: false +--- +Des del portal TMB Notícies s’ha fet ressò del projecte de la Línia 3 del metro per a openBVE, i han escrit un article sobre el tema. Es parla de tot el procés de creació, l’estat actual i els plans de futur. + +Podeu trobar l’article al següent enllaç i a les xarxes socials: Viatgem per la línia 3 de metro en un simulador ferroviari molt realista + +Fins la propera! diff --git a/content/noticies/20160208-ja-esta-disponible-la-linia-2.md b/content/noticies/20160208-ja-esta-disponible-la-linia-2.md new file mode 100644 index 0000000..47e004b --- /dev/null +++ b/content/noticies/20160208-ja-esta-disponible-la-linia-2.md @@ -0,0 +1,10 @@ +--- +title: "Ja està disponible la Línia 2!" +date: 2016-02-08T12:00:00+01:00 +draft: false +--- +Des d’avui ja es pot descarregar la versió de la línia 2 que va fer en Diego Silvosa (Rodalíes) i que va publicar l’any passat al Fòrum del Transport Català. La ruta de moment inclou el tram original de la línia 2, entre Paral·lel i Sagrada Família (uns 4,4 km aproximadament). A més, també va fer un tren de la sèrie 9000 per fer el recorregut. + +Trobareu la ruta i el tren a la secció de descàrregues, com a continguts separats o com un paquet conjunt. + +Fins la propera! diff --git a/content/noticies/20160313-sapropa-una-actualitzacio.md b/content/noticies/20160313-sapropa-una-actualitzacio.md new file mode 100644 index 0000000..8e92654 --- /dev/null +++ b/content/noticies/20160313-sapropa-una-actualitzacio.md @@ -0,0 +1,24 @@ +--- +title: "S'apropa una actualització" +date: 2016-03-13T12:00:00+01:00 +draft: false +--- +Queda molt poc perquè estigui disponible una actualització de la línia 3! Les novetats seran bastant importants: + +* Nou tren disponible: Sèrie 2000 del FCMB. +* Possibilitat de fer el trajecte en tots dos sentits. +* Versió especial de la línia amb presa de corrent per tercer carril. +* Nova estació: Diagonal. +* Millores en l'aparença dels túnels, amb ombres per donar més realisme. + +Us deixem un petit tast del que hi trobareu: + + + + + + + + + + diff --git a/content/noticies/20160330-disponible-la-nova-versio-de-la-l3.md b/content/noticies/20160330-disponible-la-nova-versio-de-la-l3.md new file mode 100644 index 0000000..d77b85e --- /dev/null +++ b/content/noticies/20160330-disponible-la-nova-versio-de-la-l3.md @@ -0,0 +1,8 @@ +--- +title: "Disponible la nova versió de la L3" +date: 2016-03-30T12:00:00+01:00 +draft: false +--- +Ja està disponible a la secció de descàrregues la nova versió de la L3. Aquesta versió amplia el recorregut fins a l’estació de Diagonal, i permet realitzar el trajecte ascendent. A més, s’han millorat els túnels per fer-los més realistes, i s’ha renovat tota la senyalització per ajustar-la a la realitat. Finalment, ara hi ha l’opció de circular per una L3 amb presa de corrent per tercer carril, tal com es feia uns anys enrere. + +Bon viatge i fins la propera! diff --git a/content/noticies/20160629-nova-seccio-de-manuals.md b/content/noticies/20160629-nova-seccio-de-manuals.md new file mode 100644 index 0000000..80d704f --- /dev/null +++ b/content/noticies/20160629-nova-seccio-de-manuals.md @@ -0,0 +1,8 @@ +--- +title: "Nova secció de manuals" +date: 2016-06-29T12:00:00+01:00 +draft: false +--- +A partir d’avui queda oberta la secció de manuals, on podreu trobar documentació útil sobre openBVE. D’entrada hi ha un primer manual sobre com instal·lar paquets a la nova versió d’openBVE, que serà necessària per a la nova versió de la Línia 3 que estarà disponible aquesta setmana. + +Fins la propera! diff --git a/content/noticies/20160701-novetats-sobre-la-linia-3.md b/content/noticies/20160701-novetats-sobre-la-linia-3.md new file mode 100644 index 0000000..b8214bd --- /dev/null +++ b/content/noticies/20160701-novetats-sobre-la-linia-3.md @@ -0,0 +1,8 @@ +--- +title: "Novetats sobre la Línia 3" +date: 2016-07-01T12:00:00+01:00 +draft: false +--- +Des d’avui ja es pot descarregar una nova versió de la Línia 3, que entre altres millores inclou l’extensió fins a Passeig de Gràcia. També s’han actualitzat els trens de les sèries 2000 i 3000: a partir d’ara estaran disponibles en format OBP. Si teniu dubtes sobre com instal·lar aquests paquets, podeu consultar la secció de manuals per a més informació. + +Fins la propera! diff --git a/content/noticies/20161004-actualitzacions-de-trens-i-millores-a-la-web.md b/content/noticies/20161004-actualitzacions-de-trens-i-millores-a-la-web.md new file mode 100644 index 0000000..4d21ae8 --- /dev/null +++ b/content/noticies/20161004-actualitzacions-de-trens-i-millores-a-la-web.md @@ -0,0 +1,12 @@ +--- +title: "Actualitzacions de trens i millores a la web" +date: 2016-10-04T12:00:00+01:00 +draft: false +--- +Després de l’estiu, és hora de tornar a la feina, i BVE Barcelona no és una excepció. D’una banda, s’han actualitzat els trens de les sèries 2000 i 3000 amb moltes millores. La més important és la cabina de la sèrie 2000, que presenta canvis importants al panell ATC. A més a més, ara els trens inclouen un manual trilingüe amb il·lustracions que també està disponible a la secció de manuals. + +D’altra banda, les traduccions de la pàgina web estan pràcticament acabades, i s’ha aprofitat el moviment de continguts per redissenyar les pàgines de descàrrega dels trens i les rutes, que ara tenen uns menús més atractius. + +Properament estarà disponible la L3 fins a Catalunya, una estació que ja està pràcticament acabada. + +Fins la propera! diff --git a/content/noticies/20161030-la-l3-ja-arriba-fins-a-liceu.md b/content/noticies/20161030-la-l3-ja-arriba-fins-a-liceu.md new file mode 100644 index 0000000..e7e9072 --- /dev/null +++ b/content/noticies/20161030-la-l3-ja-arriba-fins-a-liceu.md @@ -0,0 +1,18 @@ +--- +title: "La L3 ja arriba fins a Liceu" +date: 2016-10-30T12:00:00+01:00 +draft: false +--- +Ja està disponible la nova versió de la L3, que amplia el recorregut fins a les estacions de Catalunya i Liceu. Han estat molts mesos de feina per aconseguir els millors resultats a la part més complicada de la línia. + +Entre les estacions de Passeig de Gràcia i Catalunya existeix una bifurcació cap a la L4 que antigament s’utilitzava per donar servei a les estacions d’Urquinaona, Jaume I i Correos. Tot i que ja no s’utilitza durant el servei comercial, la infraestructura segueix intacta. Per tant, era necessari recrear una part del túnel molt peculiar, i la feina s’ha allargat més del previst. + +No obstant això, ara ja podeu descarregar l’actualització i gaudir del resultat. Us recomanem encendre els fars al túnel per poder veure bé tots els detalls amagats. + +Fins la propera! + + + + + + diff --git a/content/noticies/20161117-mes-l2-i-nou-sistema-de-comentaris.md b/content/noticies/20161117-mes-l2-i-nou-sistema-de-comentaris.md new file mode 100644 index 0000000..f928a51 --- /dev/null +++ b/content/noticies/20161117-mes-l2-i-nou-sistema-de-comentaris.md @@ -0,0 +1,10 @@ +--- +title: "Més L2 i nou sistema de comentaris" +date: 2016-11-17T12:00:00+01:00 +draft: false +--- +Des del passat dia 15 de novembre està disponible una nova versió en proves de la L2 fins a l’estació de Clot. Tot i que inclou millores des de la versió anterior, és una versió prèvia a la final i pot no funcionar correctament. A partir dels vostres comentaris procurarem millorar el que calgui. + +A més, durant un mes hem estat provant un nou sistema de comentaris. A partir d’ara els comentaris no quedaran publicats a la pàgina web, sinó que s’enviaran per correu i així podreu rebre una resposta individual. El sistema anterior és incompatible els llocs web trilingües i per això ens hem vist obligats a canviar-lo. Els comentaris realitzats abans de novembre desapareixeran. + +Fins la propera! diff --git a/content/noticies/20170207-novetats-i-millores.md b/content/noticies/20170207-novetats-i-millores.md new file mode 100644 index 0000000..6ff9468 --- /dev/null +++ b/content/noticies/20170207-novetats-i-millores.md @@ -0,0 +1,27 @@ +--- +title: "Novetats i millores" +date: 2017-02-07T12:00:00+01:00 +draft: false +--- + + +Durant els darrers mesos, encara que hagi estat una feina invisible, hem realitzat canvis a OpenBVE i a la L3 per millorar encara més el projecte en el futur. Aquí en fem un recull: +Traducció actualitzada + +S’han revisat les traduccions del programa OpenBVE. El canvi més important el notaran els usuaris del programa en castellà, que podran gaudir d’un gestor de paquets completament traduït. +Millores del disseny del joc + +Hem detectat que hi havia errors greus de disseny en alguns textos de la interfície d’usuari del programa, que en alguns casos quedaven superposats. El nou disseny és més clar i agradable. +Bloqueig de portes + +Des de la propera versió d’OpenBVE, els creadors de trens tindran disponible una nova funció per a les extensions: la possibilitat de bloquejar les portes quan estan obertes o tancades. Això representarà una millora en el cas dels trens de la sèrie 2000 i la sèrie 3000, que seran més realistes. En el cas de la sèrie 3000 reformada, disponible en un futur no gaire llunyà, el funcionament del tren guanyarà complexitat: el tren no podrà tancar portes si abans no s’activa l’avís de tancament. +Tren-Stop + +Una de les novetats més importants de les properes versions dels trens és el Tren-Stop, un dispositiu de seguretat de circulació. Aquest dispositiu rep informació de la senyalització de la línia mitjançant balises, i aplica el fre d’emergència si s’intenta ultrapassar una senyal que no marca via lliure (verd). Una vegada el tren s’ha aturat del tot, s’ha de reactivar el dispositiu i circular fins a la següent estació amb marxa a la vista. +Estació en construcció + +També estan molt avançats els treballs de l’estació de Drassanes, disponible a la propera versió de la L3. L’estructura bàsica de l’estació està acabada, i queda retocar petits detalls i fer els accessos. + +Fins la propera! + + diff --git a/content/noticies/_index.ca.md b/content/noticies/_index.ca.md new file mode 100644 index 0000000..fe4859e --- /dev/null +++ b/content/noticies/_index.ca.md @@ -0,0 +1,4 @@ +--- +title: "Notícies" +draft: false +--- diff --git a/content/noticies/_index.en.md b/content/noticies/_index.en.md new file mode 100644 index 0000000..05fe5e5 --- /dev/null +++ b/content/noticies/_index.en.md @@ -0,0 +1,5 @@ +--- +url: "news" +title: "News" +draft: false +--- diff --git a/content/noticies/_index.es.md b/content/noticies/_index.es.md new file mode 100644 index 0000000..db879a1 --- /dev/null +++ b/content/noticies/_index.es.md @@ -0,0 +1,5 @@ +--- +url: "noticias" +title: "Noticias" +draft: false +--- diff --git a/static/css/site.css b/static/css/site.css new file mode 100644 index 0000000..e044ab4 --- /dev/null +++ b/static/css/site.css @@ -0,0 +1,4 @@ +.tabletextpadding { + padding: 0px 20px 0px 20px; +} + diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..ed23b9b Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000..b2a5bf4 Binary files /dev/null and b/static/favicon.png differ diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..0a6ab13 --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/static/images/logo.png b/static/images/logo.png new file mode 100644 index 0000000..ee38132 Binary files /dev/null and b/static/images/logo.png differ diff --git a/static/images/main/portada.png b/static/images/main/portada.png new file mode 100644 index 0000000..e0a23b3 Binary files /dev/null and b/static/images/main/portada.png differ diff --git a/static/images/noticies/20160313/1.png b/static/images/noticies/20160313/1.png new file mode 100755 index 0000000..66e0729 Binary files /dev/null and b/static/images/noticies/20160313/1.png differ diff --git a/static/images/noticies/20160313/2.png b/static/images/noticies/20160313/2.png new file mode 100755 index 0000000..5acdce6 Binary files /dev/null and b/static/images/noticies/20160313/2.png differ diff --git a/static/images/noticies/20160313/3.png b/static/images/noticies/20160313/3.png new file mode 100755 index 0000000..a2d8fab Binary files /dev/null and b/static/images/noticies/20160313/3.png differ diff --git a/static/images/noticies/20160313/4.png b/static/images/noticies/20160313/4.png new file mode 100755 index 0000000..382f9a7 Binary files /dev/null and b/static/images/noticies/20160313/4.png differ diff --git a/static/images/noticies/20160313/5.png b/static/images/noticies/20160313/5.png new file mode 100755 index 0000000..2576e91 Binary files /dev/null and b/static/images/noticies/20160313/5.png differ diff --git a/static/images/noticies/20161030/1.png b/static/images/noticies/20161030/1.png new file mode 100755 index 0000000..65955eb Binary files /dev/null and b/static/images/noticies/20161030/1.png differ diff --git a/static/images/noticies/20161030/2.png b/static/images/noticies/20161030/2.png new file mode 100755 index 0000000..a603553 Binary files /dev/null and b/static/images/noticies/20161030/2.png differ diff --git a/static/images/noticies/20161030/3.png b/static/images/noticies/20161030/3.png new file mode 100755 index 0000000..2077c3d Binary files /dev/null and b/static/images/noticies/20161030/3.png differ diff --git a/static/images/noticies/20170207/1.png b/static/images/noticies/20170207/1.png new file mode 100755 index 0000000..624560e Binary files /dev/null and b/static/images/noticies/20170207/1.png differ diff --git a/static/images/rutes/l2/1.png b/static/images/rutes/l2/1.png new file mode 100755 index 0000000..d3f2ede Binary files /dev/null and b/static/images/rutes/l2/1.png differ diff --git a/static/images/rutes/l2/2.png b/static/images/rutes/l2/2.png new file mode 100755 index 0000000..2dcf8be Binary files /dev/null and b/static/images/rutes/l2/2.png differ diff --git a/static/images/rutes/l2/3.png b/static/images/rutes/l2/3.png new file mode 100755 index 0000000..006d91a Binary files /dev/null and b/static/images/rutes/l2/3.png differ diff --git a/static/images/rutes/l2/4.png b/static/images/rutes/l2/4.png new file mode 100755 index 0000000..d3f9c90 Binary files /dev/null and b/static/images/rutes/l2/4.png differ diff --git a/static/images/rutes/l3/1.png b/static/images/rutes/l3/1.png new file mode 100755 index 0000000..2403ffe Binary files /dev/null and b/static/images/rutes/l3/1.png differ diff --git a/static/images/rutes/l3/2.png b/static/images/rutes/l3/2.png new file mode 100755 index 0000000..99d5e46 Binary files /dev/null and b/static/images/rutes/l3/2.png differ diff --git a/static/images/rutes/l3/3.png b/static/images/rutes/l3/3.png new file mode 100755 index 0000000..43edab3 Binary files /dev/null and b/static/images/rutes/l3/3.png differ diff --git a/static/images/rutes/l3/4.png b/static/images/rutes/l3/4.png new file mode 100755 index 0000000..f40112e Binary files /dev/null and b/static/images/rutes/l3/4.png differ diff --git a/static/images/rutes/menu/L2.png b/static/images/rutes/menu/L2.png new file mode 100755 index 0000000..420aa11 Binary files /dev/null and b/static/images/rutes/menu/L2.png differ diff --git a/static/images/rutes/menu/L2_termo.png b/static/images/rutes/menu/L2_termo.png new file mode 100755 index 0000000..91aea2e Binary files /dev/null and b/static/images/rutes/menu/L2_termo.png differ diff --git a/static/images/rutes/menu/L3.png b/static/images/rutes/menu/L3.png new file mode 100755 index 0000000..d075ff7 Binary files /dev/null and b/static/images/rutes/menu/L3.png differ diff --git a/static/images/rutes/menu/L3_termo.png b/static/images/rutes/menu/L3_termo.png new file mode 100755 index 0000000..a8984e5 Binary files /dev/null and b/static/images/rutes/menu/L3_termo.png differ diff --git a/static/images/trens/2000/1.png b/static/images/trens/2000/1.png new file mode 100755 index 0000000..7f1ff6f Binary files /dev/null and b/static/images/trens/2000/1.png differ diff --git a/static/images/trens/2000/2.png b/static/images/trens/2000/2.png new file mode 100755 index 0000000..18bd794 Binary files /dev/null and b/static/images/trens/2000/2.png differ diff --git a/static/images/trens/2000/2b.png b/static/images/trens/2000/2b.png new file mode 100755 index 0000000..90e478e Binary files /dev/null and b/static/images/trens/2000/2b.png differ diff --git a/static/images/trens/3000/1.png b/static/images/trens/3000/1.png new file mode 100755 index 0000000..0333d32 Binary files /dev/null and b/static/images/trens/3000/1.png differ diff --git a/static/images/trens/3000/2.png b/static/images/trens/3000/2.png new file mode 100755 index 0000000..ca8efb6 Binary files /dev/null and b/static/images/trens/3000/2.png differ diff --git a/static/images/trens/4000/1.png b/static/images/trens/4000/1.png new file mode 100755 index 0000000..71c240d Binary files /dev/null and b/static/images/trens/4000/1.png differ diff --git a/static/images/trens/9000/2.png b/static/images/trens/9000/2.png new file mode 100755 index 0000000..9f48443 Binary files /dev/null and b/static/images/trens/9000/2.png differ diff --git a/static/images/trens/menu/2000.png b/static/images/trens/menu/2000.png new file mode 100755 index 0000000..53b477b Binary files /dev/null and b/static/images/trens/menu/2000.png differ diff --git a/static/images/trens/menu/3000.png b/static/images/trens/menu/3000.png new file mode 100755 index 0000000..56bf49b Binary files /dev/null and b/static/images/trens/menu/3000.png differ diff --git a/static/images/trens/menu/4000.png b/static/images/trens/menu/4000.png new file mode 100755 index 0000000..7306a46 Binary files /dev/null and b/static/images/trens/menu/4000.png differ diff --git a/static/images/trens/menu/9000.png b/static/images/trens/menu/9000.png new file mode 100755 index 0000000..6b2ea7a Binary files /dev/null and b/static/images/trens/menu/9000.png differ diff --git a/themes/ananke b/themes/ananke deleted file mode 160000 index d5b87cb..0000000 --- a/themes/ananke +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d5b87cb15e820e3ee8335363b26f4fcbf0e8d783 diff --git a/themes/crab/LICENSE.md b/themes/crab/LICENSE.md new file mode 100644 index 0000000..9c6ffd3 --- /dev/null +++ b/themes/crab/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 Thomas Heller + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/crab/README.md b/themes/crab/README.md new file mode 100644 index 0000000..d178a1f --- /dev/null +++ b/themes/crab/README.md @@ -0,0 +1,126 @@ +# Crab + +Crab is a clean website theme for the [Hugo](https://gohugo.io) static +site generator. + +![Crab theme screenshot](https://raw.githubusercontent.com/thomasheller/crab/master/images/screenshot.png) + +## Features + +- responsive +- nested menus +- two-column +- tag support +- blog articles + +## Preview + +If you'd like to get a live demo of the Crab theme locally, you could +clone the repository, cd to the `exampleSite` directory and run +`HUGO_THEMESDIR=../.. hugo serve -t crab` from there (assuming +[Hugo](http://gohugo.io) is already installed). + +## Installation + +Read the [Hugo Quickstart +Guide](https://gohugo.io/overview/quickstart/) for an introduction to +Hugo itself. Once you created a new Hugo site, you can use the Crab +theme. + +In your Hugo site's folder: + +```sh +$ git clone https://github.com/thomasheller/crab themes/crab +``` + +Alternatively, if your site is in a git repository, you can use git +submodules: + +```sh +$ git submodule add https://github.com/thomasheller/crab themes/crab +``` + +To update the theme to the latest version, simply pull in the changes: + +```sh +$ git -C themes/crab pull +``` + +## Usage + +The file `exampleSite/config.toml` provides an example for how the +Crab theme can be configured, especially in regard to the menu items. + +Once you put a `config.toml` in your site's root directory, you can +get a preview of your Hugo site as usual: + +```sh +$ hugo serve -t crab +``` + +## Menus + +See the `exampleSite/config.toml` file for how the menus can be +configured: + +- Use the `weight` attribute to specify the order of menu items. + Menu items with smaller numbers appear before those with bigger + numbers. +- For every menu, specify an `identifier` if you intend the menu to + have sub-items. In each sub-item, make sure the `parent` attribute + matches the value of the `identifier` used for the parent menu. +- Choose a unique `name` for each item in the same menu. + +## Two-column layout + +Look at the `exampleSite/content/home.md` file for a sidebar example. +If you put a shortcode like this at the beginning of your content +file, the summary will appear in the right column: + +```md +{{% summary %}} +This appears in the sidebar. *Markdown* is supported! +{{% /summary %}} +``` + +## Tags + +Tags are supported as [taxonomies described in the Hugo +manual](https://gohugo.io/taxonomies/usage/). Make sure your config +file contains a proper `taxonomies` declaration, like in the +`exampleSite/config.toml`. You can then put tags in the front matter +as usual: + +``` ++++ +title = "A Page With Tags" +tags = [ "Hugo", "theme", "Crab" ] +... +``` + +Tags will appear both on regular (fixed, static) pages as well as for +blog posts, although they are probably more commonly used with blog +posts. + +## Blog + +Blog posts are intended to be created in the special directory +`/blog/`. The main difference about blog articles is that the layout +includes the timestamp when they were published (fixed pages don't +show a timestamp by default) and that they appear in the list of blog +articles. + +The `exampleSites/config.toml` shows the kind of `permalinks` +declaration required to generate blog posts in the correct place. + +## Logo + +To change the logo of the crab to your own customised image, +add `logoimage` to `config.toml`, where `logoimage` is the +path inside your site's `static` directory. + +## Contact + +If you think anything could be improved about the Crab theme, feel +free to [send a PR](https://github.com/thomasheller/crab) to the Crab +repository. diff --git a/themes/crab/archetypes/default.md b/themes/crab/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/crab/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/crab/exampleSite/config.toml b/themes/crab/exampleSite/config.toml new file mode 100644 index 0000000..d438020 --- /dev/null +++ b/themes/crab/exampleSite/config.toml @@ -0,0 +1,103 @@ +languageCode = "en-us" +title = "Crab" +theme = "crab" +baseurl = "https://example.com" + +[params] +description = "A clean Hugo theme for websites" +# logoimage = "images/logo.jpg" +# copyright = "foo" + +# mathjax = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" +## Uncomment if you want mathjax enabled. The above cdn source is taken from https://gohugo.io/content-management/formats/#mathjax-with-hugo + + + +[permalinks] +blog = "/blog/:year/:month/:title/" + +[taxonomies] +tags = "tags" + +[[menu.main]] +weight = 1 +name = "Home" +url = "/" + +[[menu.main]] +weight = 2 +name = "Features" +url = "/features/" +identifier = "features" + [[menu.main]] + parent = "features" + weight = 1 + name = "Responsive design" + url = "/features/responsive-design/" + [[menu.main]] + parent = "features" + weight = 2 + name = "Nested menus" + url = "/features/nested-menus/" + identifier = "nested-menus" + [[menu.main]] + parent = "nested-menus" + weight = 1 + name = "Third level page #1" + url = "/features/nested-menus/third-level-1/" + [[menu.main]] + parent = "nested-menus" + weight = 2 + name = "Third level page #2" + url = "/features/nested-menus/third-level-2/" + [[menu.main]] + parent = "nested-menus" + weight = 3 + name = "Third level page #3" + url = "/features/nested-menus/third-level-3/" + [[menu.main]] + parent = "features" + weight = 3 + name = "Two-column layout" + url = "/features/two-column-layout/" + [[menu.main]] + parent = "features" + weight = 4 + name = "Tags" + url = "/features/tags/" + +[[menu.main]] +weight = 3 +name = "Another item" +url = "/another/" + +[[menu.main]] +weight = 4 +name = "More items" +url = "/more/" +identifier = "more" + [[menu.main]] + parent = "more" + weight = 1 + name = "Some more menu" + url = "/more/some-more-menu/" + [[menu.main]] + parent = "more" + weight = 2 + name = "items to show" + url = "/more/items-to-show/" + [[menu.main]] + parent = "more" + weight = 3 + name = "the nested menus feature" + url = "/more/the-nested-menus-feature/" + +[[menu.main]] +weight = 5 +name = "Blog" +url = "/blog/" + +[[menu.main]] +weight = 6 +name = "Contact" +url = "/contact/" diff --git a/themes/crab/exampleSite/content/another.md b/themes/crab/exampleSite/content/another.md new file mode 100644 index 0000000..500eb2e --- /dev/null +++ b/themes/crab/exampleSite/content/another.md @@ -0,0 +1,10 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "Another page" +draft = false + ++++ + +Just another demo page. + +![Crab logo](/img/crab-logo.png) diff --git a/themes/crab/exampleSite/content/blog/more-blog.md b/themes/crab/exampleSite/content/blog/more-blog.md new file mode 100644 index 0000000..2bc0552 --- /dev/null +++ b/themes/crab/exampleSite/content/blog/more-blog.md @@ -0,0 +1,11 @@ ++++ +date = "2017-02-27T21:30:00+01:00" +draft = false +title = "More blogging" +tags = ["this", "post", "also", "has", "some", "tags"] + ++++ + +This is yet another blog post to demonstrate the blog feature. It's +from a different month than other posts, to show you how the archive +feature works. diff --git a/themes/crab/exampleSite/content/blog/welcome-blog.md b/themes/crab/exampleSite/content/blog/welcome-blog.md new file mode 100644 index 0000000..08ed31e --- /dev/null +++ b/themes/crab/exampleSite/content/blog/welcome-blog.md @@ -0,0 +1,19 @@ ++++ +date = "2017-03-27T21:30:00+01:00" +draft = false +title = "Welcome to my blog" + ++++ + +This page is intended to give you a feeling of what a blog post looks +like. Crab supports both fixed (static) pages as well as blog posts. + +In order to make blog pages work correctly, you need proper permalinks +settings in your site's `config.toml`. + +Hugo will then treat all files in the `blog` directory (for example) +like blog posts. + +Have a look at the `config.toml` provided with this example site, as +well as [the page about Permalinks from the Hugo +docs](https://gohugo.io/extras/permalinks/). diff --git a/themes/crab/exampleSite/content/contact.md b/themes/crab/exampleSite/content/contact.md new file mode 100644 index 0000000..7eece6a --- /dev/null +++ b/themes/crab/exampleSite/content/contact.md @@ -0,0 +1,25 @@ ++++ +date = "2017-03-18T10:59:56+01:00" +title = "Contact" +draft = false + ++++ + +{{% summary %}} +This is a an example contact page. +{{% /summary %}} + +Contact the website author: + +*Mister Crab +42 Ocean Street +Oceania, OC 98765* + +Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper +suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem +vel eum iriure dolor in hendrerit in vulputate velit esse molestie +consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et +accumsan et iusto odio dignissim qui blandit praesent luptatum zzril +delenit augue duis dolore te feugait nulla facilisi. + +Thanks for your feeback! diff --git a/themes/crab/exampleSite/content/features.md b/themes/crab/exampleSite/content/features.md new file mode 100644 index 0000000..bcf8891 --- /dev/null +++ b/themes/crab/exampleSite/content/features.md @@ -0,0 +1,14 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "Features" +draft = false + ++++ + +Some of Crab's features are: + +- [Responsive design](responsive-design/) +- [Nested menus](nested-menus/) +- [Two-column layout](two-column-layout/) + +Click on the links above to learn more. diff --git a/themes/crab/exampleSite/content/features/nested-menus.md b/themes/crab/exampleSite/content/features/nested-menus.md new file mode 100644 index 0000000..62fb222 --- /dev/null +++ b/themes/crab/exampleSite/content/features/nested-menus.md @@ -0,0 +1,11 @@ ++++ +title = "Nested menus" +date = "2017-03-18T11:14:35+01:00" +draft = false + ++++ + +Crab supports nested menus up to three levels deep. + +This is especially helpful for websites that focus on content with +a fixed, pre-defined strucure. diff --git a/themes/crab/exampleSite/content/features/nested-menus/third-level-1.md b/themes/crab/exampleSite/content/features/nested-menus/third-level-1.md new file mode 100644 index 0000000..257c509 --- /dev/null +++ b/themes/crab/exampleSite/content/features/nested-menus/third-level-1.md @@ -0,0 +1,8 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "Third-level page #1" +draft = false + ++++ + +A third level page is rendered like this in the menu structure. diff --git a/themes/crab/exampleSite/content/features/nested-menus/third-level-2.md b/themes/crab/exampleSite/content/features/nested-menus/third-level-2.md new file mode 100644 index 0000000..34f158f --- /dev/null +++ b/themes/crab/exampleSite/content/features/nested-menus/third-level-2.md @@ -0,0 +1,8 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "Third-level page #2" +draft = false + ++++ + +A third level page is rendered like this in the menu structure. diff --git a/themes/crab/exampleSite/content/features/nested-menus/third-level-3.md b/themes/crab/exampleSite/content/features/nested-menus/third-level-3.md new file mode 100644 index 0000000..6692791 --- /dev/null +++ b/themes/crab/exampleSite/content/features/nested-menus/third-level-3.md @@ -0,0 +1,8 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "Third-level page #3" +draft = false + ++++ + +A third level page is rendered like this in the menu structure. diff --git a/themes/crab/exampleSite/content/features/responsive-design.md b/themes/crab/exampleSite/content/features/responsive-design.md new file mode 100644 index 0000000..6a2a2a6 --- /dev/null +++ b/themes/crab/exampleSite/content/features/responsive-design.md @@ -0,0 +1,12 @@ ++++ +date = "2017-03-18T11:14:30+01:00" +title = "Responsive design" +draft = false + ++++ + +Crab's design is responsive, it adapts to smaller screens of mobile +devices. + +Check out this example site on your smartphone or tablet (or on your +desktop computer if you're currently on mobile). diff --git a/themes/crab/exampleSite/content/features/tags.md b/themes/crab/exampleSite/content/features/tags.md new file mode 100644 index 0000000..b8b72d8 --- /dev/null +++ b/themes/crab/exampleSite/content/features/tags.md @@ -0,0 +1,14 @@ ++++ +date = "2017-03-19T13:21:00+01:00" +title = "Tags" +draft = false +tags = ["this", "page", "has", "some", "tags"] + ++++ + +Crab also supports tags. This page has some tags, as you can see +below, although tags are probably more common with blog posts. + +If you click on a tag, you'll be redirected to a page that shows all +pages and posts with that tag. (For some tags, there is only this one +page.) diff --git a/themes/crab/exampleSite/content/features/two-column-layout.md b/themes/crab/exampleSite/content/features/two-column-layout.md new file mode 100644 index 0000000..57b914d --- /dev/null +++ b/themes/crab/exampleSite/content/features/two-column-layout.md @@ -0,0 +1,61 @@ ++++ +date = "2017-03-18T11:14:41+01:00" +title = "Two-column layout" +draft = false + ++++ + +{{% summary %}} +This is what sidebar content looks like. + +Actually, this page has more info on: + +- alpha +- beta +- gamma +{{% /summary %}} + +Crab allows you to put content in a second column on the right-hand +side of the page. + +You could use this space to provide the reader with a quick summary of +what the current page is all about. + +On mobile devices, the summary is rendered directly above the actual +page content. + +## Alpha + +Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam +nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, +sed diam voluptua. At vero eos et accusam et justo duo dolores et ea +rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem +ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur +sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et +dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam +et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea +takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit +amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor +invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. +At vero eos et accusam et justo duo dolores et ea rebum. Stet clita +kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit +amet. + +## Beta + +Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse +molestie consequat, vel illum dolore eu feugiat nulla facilisis at +vero eros et accumsan et iusto odio dignissim qui blandit praesent +luptatum zzril delenit augue duis dolore te feugait nulla facilisi. +Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam +nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat +volutpat. + +## Gamma + +Nam liber tempor cum soluta nobis eleifend option congue nihil +imperdiet doming id quod mazim placerat facer possim assum. Lorem +ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy +nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. +Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper +suscipit lobortis nisl ut aliquip ex ea commodo consequat. diff --git a/themes/crab/exampleSite/content/home.md b/themes/crab/exampleSite/content/home.md new file mode 100644 index 0000000..7f639c1 --- /dev/null +++ b/themes/crab/exampleSite/content/home.md @@ -0,0 +1,38 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "Home" +draft = false + ++++ + +{{% summary %}} +Summary: +Crab is a clean Hugo theme for websites. Its features include +responsiveness, nested menu support, two-column layout, tag and blog +article support. +{{% /summary %}} + +Welcome to Crab! Crab is a clean Hugo theme for websites. + +Some of its features: + +- Responsive design -- view it on mobile +- Nested menus -- try the menu above +- Two-column layout +- Tags +- Blog articles + +A very popular quote: + +> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do +> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad +> minim veniam, quis nostrud exercitation ullamco laboris nisi ut +> aliquip ex ea commodo consequat. Duis aute irure dolor in +> reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla +> pariatur. Excepteur sint occaecat cupidatat non proident, sunt in +> culpa qui officia deserunt mollit anim id est laborum. + +This is an example site demonstrating the Crab theme for Hugo. If you +think anything could be improved about the Crab theme, feel free to +[send a PR](https://github.com/thomasheller/crab) to the Crab +repository. diff --git a/themes/crab/exampleSite/content/more.md b/themes/crab/exampleSite/content/more.md new file mode 100644 index 0000000..f6dc8fa --- /dev/null +++ b/themes/crab/exampleSite/content/more.md @@ -0,0 +1,12 @@ ++++ +date = "2017-03-19T13:21:00+01:00" +title = "More" +draft = false + ++++ + +Here are a few more demo pages: + +- [Some more menu](some-more-menu/) +- [items to show](items-to-show/) +- [the nested menus feature](the-nested-menus-feature/) diff --git a/themes/crab/exampleSite/content/more/items-to-show.md b/themes/crab/exampleSite/content/more/items-to-show.md new file mode 100644 index 0000000..af7b2ab --- /dev/null +++ b/themes/crab/exampleSite/content/more/items-to-show.md @@ -0,0 +1,13 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "... items to show ..." +draft = false + ++++ + +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean +commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus +et magnis dis parturient montes, nascetur ridiculus mus. Donec quam +felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla +consequat massa quis enim. Donec pede justo, fringilla vel, aliquet +nec, vulputate eget, arcu. diff --git a/themes/crab/exampleSite/content/more/some-more-menu.md b/themes/crab/exampleSite/content/more/some-more-menu.md new file mode 100644 index 0000000..f5fbd69 --- /dev/null +++ b/themes/crab/exampleSite/content/more/some-more-menu.md @@ -0,0 +1,12 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "Some more menu ..." +draft = false + ++++ + +In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam +dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. +Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. +Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. +Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. diff --git a/themes/crab/exampleSite/content/more/the-nested-menus-feature.md b/themes/crab/exampleSite/content/more/the-nested-menus-feature.md new file mode 100644 index 0000000..91de2b2 --- /dev/null +++ b/themes/crab/exampleSite/content/more/the-nested-menus-feature.md @@ -0,0 +1,18 @@ ++++ +date = "2017-02-05T07:51:49+01:00" +title = "... the nested menus feature" +draft = false + ++++ + +Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. +Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur +ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas +tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit +amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, +luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante +tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. +Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. +Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis +magna. Sed consequat, leo eget bibendum sodales, augue velit cursus +nunc. diff --git a/themes/crab/exampleSite/static/.gitkeep b/themes/crab/exampleSite/static/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/themes/crab/i18n/ca.toml b/themes/crab/i18n/ca.toml new file mode 100644 index 0000000..58bf0f5 --- /dev/null +++ b/themes/crab/i18n/ca.toml @@ -0,0 +1,71 @@ +[home] +other = "Inici" + +[templateBy] +other = "Plantilla creada per" + +[portedBy] +other = "Adaptada a Hugo per" + +[contactGoTo] +other = "Anar a la pàgina de contacte" + +[contactAddrTitle] +other = "Adreça" + +[contactTitle] +other = "Contacte" + +[contactForm] +other = "Formulari de contacte" + +[contactName] +other = "El teu nom" + +[contactMail] +other = "El teu email" + +[contactMessage] +other = "El teu missatge" + +[contactSend] +other = "Enviar missatge" + +[navHome] +other = "anar a l'inici" + +[navToggle] +other = "Canviar Navigació" + +[categoriesTitle] +other = "Categories" + +[searchTitle] +other = "Cercar" + +[tagsTitle] +other = "Paraules clau" + +[continueReading] +other = "Continuar llegint" + +[readMore] +other = "Llegeix més" + +[authorBy] +other = "Per" + +[recentPosts] +other = "Entrades recents" + +[aboutUs] +other = "Sobre nosaltres" + +[newer] +other = "Més recent" + +[older] +other = "Més antic" + +[publishedOn] +other = "el" diff --git a/themes/crab/i18n/en.toml b/themes/crab/i18n/en.toml new file mode 100644 index 0000000..951f8bb --- /dev/null +++ b/themes/crab/i18n/en.toml @@ -0,0 +1,71 @@ +[home] +other = "Home" + +[templateBy] +other = "Template by" + +[portedBy] +other = "Ported to Hugo by" + +[contactGoTo] +other = "Go to contact page" + +[contactAddrTitle] +other = "Address" + +[contactTitle] +other = "Contact" + +[contactForm] +other = "Contact form" + +[contactName] +other = "Your Name" + +[contactMail] +other = "Your Email" + +[contactMessage] +other = "Your Message" + +[contactSend] +other = "Send Message" + +[navHome] +other = "go to homepage" + +[navToggle] +other = "Toggle Navigation" + +[categoriesTitle] +other = "Categories" + +[searchTitle] +other = "Search" + +[tagsTitle] +other = "Tags" + +[continueReading] +other = "Continue reading" + +[readMore] +other = "Read more" + +[authorBy] +other = "By" + +[recentPosts] +other = "Recent posts" + +[aboutUs] +other = "About us" + +[newer] +other = "Newer" + +[older] +other = "Older" + +[publishedOn] +other = "on" diff --git a/themes/crab/images/screenshot.png b/themes/crab/images/screenshot.png new file mode 100644 index 0000000..cfb4b15 Binary files /dev/null and b/themes/crab/images/screenshot.png differ diff --git a/themes/crab/images/tn.png b/themes/crab/images/tn.png new file mode 100644 index 0000000..07b5414 Binary files /dev/null and b/themes/crab/images/tn.png differ diff --git a/themes/crab/layouts/404.html b/themes/crab/layouts/404.html new file mode 100644 index 0000000..cee2193 --- /dev/null +++ b/themes/crab/layouts/404.html @@ -0,0 +1,3 @@ + + Page not found. +{{ partial "footer.html" . }} diff --git a/themes/crab/layouts/_default/list.html b/themes/crab/layouts/_default/list.html new file mode 100644 index 0000000..6b6b0a3 --- /dev/null +++ b/themes/crab/layouts/_default/list.html @@ -0,0 +1,25 @@ +{{ partial "header.html" . }} + + {{ range sort .Paginator.Pages }} +
+

{{ .Title }}

+
+ {{ .Summary | plainify | safeHTML }} + ... + +
+
+ {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} + {{ end }} + {{ partial "pagination.html" . }} + +{{ partial "footer.html" . }} diff --git a/themes/crab/layouts/_default/single.html b/themes/crab/layouts/_default/single.html new file mode 100644 index 0000000..2bb9b3d --- /dev/null +++ b/themes/crab/layouts/_default/single.html @@ -0,0 +1,9 @@ +{{ partial "header.html" . }} +{{ if not .Date.IsZero }} +

{{ .Date.Format "02-01-2006" }}

+{{ end }} +{{ .Content }} +{{ if .Params.tags }} + {{ partial "tags" .Params.tags }} +{{ end }} +{{ partial "footer.html" . }} diff --git a/themes/crab/layouts/index.html b/themes/crab/layouts/index.html new file mode 100644 index 0000000..16f6ffc --- /dev/null +++ b/themes/crab/layouts/index.html @@ -0,0 +1,3 @@ +{{ partial "header.html" . }} +{{ .Content }} +{{ partial "footer.html" . }} diff --git a/themes/crab/layouts/partials/footer.html b/themes/crab/layouts/partials/footer.html new file mode 100644 index 0000000..dde96c5 --- /dev/null +++ b/themes/crab/layouts/partials/footer.html @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/themes/crab/layouts/partials/header.html b/themes/crab/layouts/partials/header.html new file mode 100644 index 0000000..c4fd4cd --- /dev/null +++ b/themes/crab/layouts/partials/header.html @@ -0,0 +1,63 @@ + + + + {{ .Title }} - {{ .Site.Title }} + + + + {{ .Hugo.Generator }} + + + + {{ if isset .Site.Params "mathjax"}} + + {{end}} + + + + +
+ +
+ + + + +
{{ .Site.Params.Description }}
+ + +
+ +
+ {{ if .IsTranslated }} + + {{ end }} +
+ + {{ partial "menu.html" . }} + + {{ if isset .Params "image"}} + + {{end}} +
+
+ {{ .Title }} +
+
+ +
+
diff --git a/themes/crab/layouts/partials/menu.html b/themes/crab/layouts/partials/menu.html new file mode 100644 index 0000000..805e76e --- /dev/null +++ b/themes/crab/layouts/partials/menu.html @@ -0,0 +1,28 @@ + diff --git a/themes/crab/layouts/partials/pagination.html b/themes/crab/layouts/partials/pagination.html new file mode 100644 index 0000000..9caef8d --- /dev/null +++ b/themes/crab/layouts/partials/pagination.html @@ -0,0 +1,16 @@ +{{ $pag := .Paginator }} +{{ if gt $pag.TotalPages 1 }} + +{{ end }} diff --git a/themes/crab/layouts/partials/tags.html b/themes/crab/layouts/partials/tags.html new file mode 100644 index 0000000..908c55e --- /dev/null +++ b/themes/crab/layouts/partials/tags.html @@ -0,0 +1,5 @@ +

+ Tags: {{ range . }} + {{ . }} + {{ end }} +

diff --git a/themes/crab/layouts/shortcodes/summary.html b/themes/crab/layouts/shortcodes/summary.html new file mode 100644 index 0000000..9de6169 --- /dev/null +++ b/themes/crab/layouts/shortcodes/summary.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/themes/crab/static/css/crab.css b/themes/crab/static/css/crab.css new file mode 100644 index 0000000..c9b0bc8 --- /dev/null +++ b/themes/crab/static/css/crab.css @@ -0,0 +1,377 @@ +@import url('https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i|Open+Sans:400,400i,600,600i,700,700i'); + +html, +body { + background: #222222; + color: #BBBBBB; + font-family: 'Open Sans', sans-serif; +} + +#container { + background: #292929; + margin: auto; + border-style: solid; + border-radius: 10px; + border-color: #252525; +} + +#header-left { + padding-top: 15px; + float: left; + width: 60%; +} + +#header-right { + padding-top: 15px; + float: right; + width: 40%; +} + +#site-logo { + float: left; + height: 100px; + width: 100px; + padding: 0 20px 0 20px; +} + +#site-title, +a:link, +a:active, +a:visited { + color: #BBBBBB; +} + +a:hover { + color: #208DCC; +} + +#site-title { + padding: 10px 20px 0 0; + font-weight: 600; + font-size: 36px; +} + +a:link, +a:active, +a:visited, +a:hover { + text-decoration: none; +} + +#footer { + background: #3E3E3E; + color: #BBBBBB; + padding: 10px 20px 10px 20px; + clear: both; + font-size: 12px; +} + +nav { + clear: both; + text-align: right; +} + +nav ul { + list-style-type: none; + padding: 0; +} + +nav ul.first > li { + display: block; + margin: .5em 0; + text-align: left; +} + +nav ul.second, +nav ul.third { + display: none; +} + +nav a:link, +nav a:active, +nav a:visited, +nav a:hover { + text-decoration: none; +} + +nav a:link, +nav a:active, +nav a:visited { + color: #BBBBBB; +} + +nav a:hover { + color: #208DCC; +} + +nav a.selected { + color: #208DCC; +} + +#content, +#page-title { + padding: 10px 20px 10px 20px; +} + +#content { + margin-bottom: 20px; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'Open Sans', serif; + font-weight: 400; +} + +#article p, #article ol li, #article ul li { + text-align: justify; +} + +#article blockquote { + font-family: 'Lora', serif; + font-style: italic; + font-size: 1.05em; + line-height: 1.5em; +} + +#article dl dt { + font-weight: bold; +} + +#article dl dt em { + font-weight: normal; +} + +#article .timestamp, +#article .tags, +#article .tags a:link, +#article .tags a:active, +#article .tags a:visited, +#article .tags a:hover { + color: #777; +} + +hr { + border-bottom: 0; + border-left: 0; + border-right: 0; + margin: 2.5em 0; +} + +span.upper { + text-transform: uppercase; +} + +img.right { + float: right; + margin: 0 0 1em 1em; +} + +img.left { + float: left; + margin: 0 1em 1em 0; +} + +img { + margin: auto; + max-width:100%; + max-height:100%; + display: block; +} + +#featured-image img { + max-width:100%; + max-height:100%; + display: block; +} + + + +ul.pagination { + padding: 0; + list-style-type: none; + text-align: center; +} + +.pagination li { + display: inline; + margin: 10px; +} + +.pagination .active a:link, +.pagination .active a:active, +.pagination .active a:visited, +.pagination .active a:hover, +.pagination .disabled a:link, +.pagination .disabled a:active, +.pagination .disabled a:visited, +.pagination .disabled a:hover, +.pagination .previous-disabled, +.pagination .next-disabled { + color: #555; + text-decoration: none; +} + +table, +th, +td { + border: 1px solid grey; + border-collapse: collapse; + margin-left:auto; + margin-right:auto; + text-align:center; +} + +th { + display:none; +} + +table img { + vertical-align:middle; + padding: 2px 2px 2px 2px; +} + +#page-title-container { + background: #3E3E3E; + border-top: 1px solid #444444; + border-bottom: 1px solid #444444; + display: block; + font-weight: 200; + font-size: 26px; +} + +#paginator-page { + margin-bottom: 30px; + text-align: justify; +} + +#paginator-page-footer { + margin-top: 10px; + display: block; + height: 45px; + /*border-bottom: 1px solid #444444;*/ +} + +#paginator-page-footer .timestamp { + display: inline; + line-height: 35px; +} + +#paginator-page-button { + float: right; + padding: 5px 10px; + background: #208DCC; + margin: 1px 1px 1px 1px; +} + +#paginator-page-button:hover { + background: #006DAC; + border: 1px solid #004D8C; + margin: 0px 0px 0px 0px; +} + +#paginator-page-button a:link, +#paginator-page-button a:active, +#paginator-page-button a:visited { + color: #FFF; +} + +#paginator-page-button a:hover { + color: #DDD; +} + +.language-selector { + display: inline; + list-style-type: none; + float: right; + margin-right: 30px; +} + +.language-selector li { + display: inline; + margin: .5em; +} + +.language-selector .selected, +.first .selected { + color: #208DCC; +} + +@media screen and (max-width: 699px) { +#site-logo { + display: block; +} + +} + +@media (min-width: 700px) { + #container { + max-width: 1200px; + } + + nav ul li a { + display: block; + font-size: 90%; + } + + .language-selector a { + font-size: 90%; + } + + nav ul.first > li { + display: inline-block; + position: relative; + padding-right: 1.25em; + } + + nav ul.second, + nav ul.third { + position: absolute; + background: #000000; + width: 160px; + box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.25); + } + + nav ul.second { + z-index: 2; + } + + nav ul.third { + z-index: 3; + } + + nav ul.second li { + position: relative; + } + + nav ul.third { + left: 212px; + top: -1px; + } + + nav ul.first li:hover ul.second, + nav ul.second li:hover ul.third { + display: block; + } + + nav ul.second li a, + nav ul.third li a { + padding: 0.75em 1em; + } + + #article { + position: relative; + } + + #summary { + display: block; + position: absolute; + top: 0px; + left: 608px; + width: 342px; + } +} diff --git a/themes/crab/theme.toml b/themes/crab/theme.toml new file mode 100644 index 0000000..9cc7d6e --- /dev/null +++ b/themes/crab/theme.toml @@ -0,0 +1,12 @@ +name = "Crab" +license = "MIT" +licenselink = "https://github.com/thomasheller/crab/blob/master/LICENSE.md" +description = "A clean Hugo theme for websites" +homepage = "https://github.com/thomasheller/crab" +tags = ["clean"] +features = ["responsive", "404", "blog", "tags"] +min_version = 0.18 + +[author] +name = "Thomas Heller" +homepage = "https://github.com/thomasheller"