From d75599d8d8a067d13708d2519f616f4778081dad Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Wed, 21 Feb 2024 17:58:07 +0100 Subject: [PATCH] Hugo port --- .editorconfig | 12 ++++ .gitignore | 52 +-------------- README.md | 6 +- archetypes/default.md | 6 ++ archetypes/projects.md | 7 ++ style.css => assets/css/main.css | 1 + contacto.html | 69 -------------------- content/en/_index.md | 14 ++++ content/en/contact.md | 18 +++++ content/en/posts/_index.md | 4 ++ content/en/posts/hello-world.md | 8 +++ content/en/projects/_index.md | 12 ++++ content/en/projects/linux-party.md | 7 ++ content/es/_index.md | 15 +++++ content/es/contact.md | 20 ++++++ content/es/posts/_index.md | 4 ++ content/es/posts/hello-world.md | 8 +++ content/es/projects/_index.md | 12 ++++ content/es/projects/linux-party.md | 7 ++ hugo.toml | 76 ++++++++++++++++++++++ i18n/en.toml | 2 + i18n/es.toml | 1 + index.html | 58 ----------------- layouts/_default/baseof.html | 20 ++++++ layouts/_default/index.html | 3 + layouts/_default/list.html | 17 +++++ layouts/_default/single.html | 3 + layouts/partials/footer.html | 11 ++++ layouts/partials/head.html | 17 +++++ layouts/partials/header.html | 4 ++ layouts/partials/nav.html | 8 +++ layouts/partials/time.html | 3 + layouts/posts/list.html | 13 ++++ layouts/posts/single.html | 5 ++ proyectos.html | 70 -------------------- proyectos/linux-party.html | 44 ------------- {assets => static/assets}/linux-party.png | Bin {assets => static/assets}/logo.jpg | Bin favicon.ico => static/favicon.ico | Bin robots.txt => static/robots.txt | 0 40 files changed, 343 insertions(+), 294 deletions(-) create mode 100644 .editorconfig create mode 100644 archetypes/default.md create mode 100644 archetypes/projects.md rename style.css => assets/css/main.css (85%) delete mode 100644 contacto.html create mode 100644 content/en/_index.md create mode 100644 content/en/contact.md create mode 100644 content/en/posts/_index.md create mode 100644 content/en/posts/hello-world.md create mode 100644 content/en/projects/_index.md create mode 100644 content/en/projects/linux-party.md create mode 100644 content/es/_index.md create mode 100644 content/es/contact.md create mode 100644 content/es/posts/_index.md create mode 100644 content/es/posts/hello-world.md create mode 100644 content/es/projects/_index.md create mode 100644 content/es/projects/linux-party.md create mode 100644 hugo.toml create mode 100644 i18n/en.toml create mode 100644 i18n/es.toml delete mode 100644 index.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/index.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/nav.html create mode 100644 layouts/partials/time.html create mode 100644 layouts/posts/list.html create mode 100644 layouts/posts/single.html delete mode 100644 proyectos.html delete mode 100644 proyectos/linux-party.html rename {assets => static/assets}/linux-party.png (100%) rename {assets => static/assets}/logo.jpg (100%) rename favicon.ico => static/favicon.ico (100%) rename robots.txt => static/robots.txt (100%) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d47c21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore index b24d71e..1f1befd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,50 +1,2 @@ -# These are some examples of commonly ignored file patterns. -# You should customize this list as applicable to your project. -# Learn more about .gitignore: -# https://www.atlassian.com/git/tutorials/saving-changes/gitignore - -# Node artifact files -node_modules/ -dist/ - -# Compiled Java class files -*.class - -# Compiled Python bytecode -*.py[cod] - -# Log files -*.log - -# Package files -*.jar - -# Maven -target/ -dist/ - -# JetBrains IDE -.idea/ - -# Unit test reports -TEST*.xml - -# Generated by MacOS -.DS_Store - -# Generated by Windows -Thumbs.db - -# Applications -*.app -*.exe -*.war - -# Large media files -*.mp4 -*.tiff -*.avi -*.flv -*.mov -*.wmv - +/public +/.hugo_build.lock diff --git a/README.md b/README.md index 29d2da5..e75aa29 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ The philosophy with this website for now is to KISS(keep it stupid simple) using - [x] Add our logo on the website, favicon. - [ ] Add content describing our association and other pages as needed. -- [ ] Work on SEO (OpenGraph, Twitter meta tags...) +- [x] Work on SEO (OpenGraph, Twitter meta tags...) - [ ] Multilingual support(English + Spanish) -- [ ] Support for RSS (index.xml) -- [ ] Use a minimal CMS +- [x] Support for RSS (index.xml) +- [x] Use a minimal CMS - [x] Basic robots.txt diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..a4347e0 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +description = '' +date = {{ .Date }} +draft = true ++++ diff --git a/archetypes/projects.md b/archetypes/projects.md new file mode 100644 index 0000000..0531b93 --- /dev/null +++ b/archetypes/projects.md @@ -0,0 +1,7 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +description = '' +image = '' +date = {{ .Date }} +draft = true ++++ diff --git a/style.css b/assets/css/main.css similarity index 85% rename from style.css rename to assets/css/main.css index e4e93c8..071cd45 100644 --- a/style.css +++ b/assets/css/main.css @@ -1,6 +1,7 @@ /* Override colors from CSS library */ :root { --accent: green; + --accent-hover: darkgreen; } /* Custom style for the logo */ diff --git a/contacto.html b/contacto.html deleted file mode 100644 index c5197ed..0000000 --- a/contacto.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - Contacto - Open Bokeron - - - - - - - -
- OpenBokeron logo -

Open Bokeron

-

"¡Abre tu mente, abre tu código!"

- -
- -
-

¡Habla con nosotros!

-

- Si te encuentras en la Escuela Técnica Superior de Ingeniería Informática y Teleco de la Universidad de Málaga - (UMA), ¡no dudes en buscarnos! Los miembros de Open Bokeron - son fáciles de encontrar por los pasillos, aulas y laboratorios. -

-

- ¿No has tenido suerte encontrándonos en persona? ¡No te preocupes! Siempre puedes ponerte en contacto con - nosotros a través de nuestro correo electrónico - openbokeron@geeklab.es. - ¡Estaremos encantados de responder a tus preguntas, recibir tus sugerencias o simplemente charlar sobre software libre! -

-
- -

Nuestras redes sociales

-

- ¡No te pierdas las últimas noticias, eventos y proyectos de Open Bokeron en Twitter! Síguenos en nuestra cuenta - oficial: - @OpenBokeron - Aquí compartimos actualizaciones en tiempo real, curiosidades y todo lo relacionado con el mundo del software libre. -

- - - - - - - - diff --git a/content/en/_index.md b/content/en/_index.md new file mode 100644 index 0000000..a847a71 --- /dev/null +++ b/content/en/_index.md @@ -0,0 +1,14 @@ +--- +title: Welcome +--- + +## About us +Have you ever been curious about Linux and don't know where to begin with? + +Do you want to know more about open source? + +Do you want to contribute to the cause? + +Welcome to OpenBokeron! 👋 + +We're a group of students from the ETSII (UMA) that promotes free software. diff --git a/content/en/contact.md b/content/en/contact.md new file mode 100644 index 0000000..668851c --- /dev/null +++ b/content/en/contact.md @@ -0,0 +1,18 @@ +--- +title: Contact +--- + +## Talk with us! +If you are at the ETSII of the University of Malaga (UMA), don't hesitate to look for us! OpenBokeron members +are easy to find in the hallways, classrooms and laboratories. + +No luck meeting us in person? Don't worry! You can always contact us through email +[openbokeron@geeklab.es](mailto:openbokeron@geeklab.es) + +We'd be happy to answer your questions, get suggestions, or just chat about free software! + +### Our social media +Don't miss the latest news, events and projects from Open Bokeron on Twitter! +Follow us on our account [@OpenBokeron](https://twitter.com/OpenBokeron) + +Here we share real-time updates, curiosities and everything related to the world of free software. diff --git a/content/en/posts/_index.md b/content/en/posts/_index.md new file mode 100644 index 0000000..43082cd --- /dev/null +++ b/content/en/posts/_index.md @@ -0,0 +1,4 @@ +--- +title: "Posts" +description: "Nuestro blog" +--- diff --git a/content/en/posts/hello-world.md b/content/en/posts/hello-world.md new file mode 100644 index 0000000..5b2aadb --- /dev/null +++ b/content/en/posts/hello-world.md @@ -0,0 +1,8 @@ +--- +title: Welcome +description: Our first post +date: 2024-02-21T12:14:19+01:00 +--- + +We will be adding new blog entries with information from both +the organization and news about open source. diff --git a/content/en/projects/_index.md b/content/en/projects/_index.md new file mode 100644 index 0000000..709da3c --- /dev/null +++ b/content/en/projects/_index.md @@ -0,0 +1,12 @@ +--- +title: Projects +description: Projects and events +--- + +## Projects and events +We try to carry out various activities, projects and events to promote the use of +free software at the University of Malaga. + +This page lists all of our projects, both current and past ones. + +### Events diff --git a/content/en/projects/linux-party.md b/content/en/projects/linux-party.md new file mode 100644 index 0000000..e5b3907 --- /dev/null +++ b/content/en/projects/linux-party.md @@ -0,0 +1,7 @@ +--- +title: Linux Party +description: An introduction to the world of free software with a Linux install +image: assets/linux-party.png +date: 2024-02-21T00:30:35+01:00 +place: Room 4.1.1 (Coworking room) +--- diff --git a/content/es/_index.md b/content/es/_index.md new file mode 100644 index 0000000..a0ed8db --- /dev/null +++ b/content/es/_index.md @@ -0,0 +1,15 @@ +--- +title: Bienvenido +--- + +## Sobre nosotros +¿Has tenido curiosidad sobre Linux y no sabes por dónde empezar? + +¿Quieres conocer más sobre el software libre? + +¿Quieres aportar a la causa? + +¡Bienvenido a Open Bokeron! 👋 + +Somos un grupo de estudiantes de la ETSI Informática de la UMA que nos dedicamos a +promocionar el software libre. diff --git a/content/es/contact.md b/content/es/contact.md new file mode 100644 index 0000000..8c2e2cf --- /dev/null +++ b/content/es/contact.md @@ -0,0 +1,20 @@ +--- +title: Contacto +--- + +## ¡Habla con nosotros! +Si te encuentras en la Escuela Técnica Superior de Ingeniería Informática y Teleco de la Universidad de Málaga +(UMA), ¡no dudes en buscarnos! Los miembros de Open Bokeron +son fáciles de encontrar por los pasillos, aulas y laboratorios. + + +¿No has tenido suerte encontrándonos en persona? ¡No te preocupes! Siempre puedes ponerte en contacto con +nosotros a través de nuestro correo electrónico [openbokeron@geeklab.es](mailto:openbokeron@geeklab.es) + +¡Estaremos encantados de responder a tus preguntas, recibir tus sugerencias o simplemente charlar sobre software libre! + +### Nuestras redes sociales +¡No te pierdas las últimas noticias, eventos y proyectos de Open Bokeron en Twitter! Síguenos en nuestra cuenta +oficial [@OpenBokeron](https://twitter.com/OpenBokeron) + +Aquí compartimos actualizaciones en tiempo real, curiosidades y todo lo relacionado con el mundo del software libre. diff --git a/content/es/posts/_index.md b/content/es/posts/_index.md new file mode 100644 index 0000000..22788ab --- /dev/null +++ b/content/es/posts/_index.md @@ -0,0 +1,4 @@ +--- +title: Publicaciones +description: Nuestro blog +--- diff --git a/content/es/posts/hello-world.md b/content/es/posts/hello-world.md new file mode 100644 index 0000000..361df02 --- /dev/null +++ b/content/es/posts/hello-world.md @@ -0,0 +1,8 @@ +--- +title: Hola mundo +description: Nuestra primera publicación +date: 2024-02-21T12:14:19+01:00 +--- + +En este blog iremos aportando información tanto de la organización +como de noticias de relevancia. diff --git a/content/es/projects/_index.md b/content/es/projects/_index.md new file mode 100644 index 0000000..3eb92cf --- /dev/null +++ b/content/es/projects/_index.md @@ -0,0 +1,12 @@ +--- +title: Proyectos +description: Proyectos y Eventos +--- + +## Proyectos y eventos +En Open Bokeron, intentamos llevar a cabo varias actividades, proyectos y eventos para promover el uso de +software libre en la Universidad de Málaga. + +Esta página enumera todos nuestros proyectos, tanto actuales como antiguos. + +### Próximos eventos diff --git a/content/es/projects/linux-party.md b/content/es/projects/linux-party.md new file mode 100644 index 0000000..11019c8 --- /dev/null +++ b/content/es/projects/linux-party.md @@ -0,0 +1,7 @@ +--- +title: Linux Party +description: Una introducción al mundo de software libre con la instalación de Linux. +image: assets/linux-party.png +date: 2024-02-21T00:30:35+01:00 +place: Aula 4.1.1 (Sala Coworking) +--- diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..1460cd8 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,76 @@ +baseURL = 'https://openbokeron.bitbucket.io/' +title = 'OpenBokeron' + +timeZone = 'Europe/Madrid' + +defaultContentLanguage = 'es' +defaultContentLanguageInSubdir = true + + +[languages] + [languages.en] + disabled = false + contentDir = 'content/en' + languageCode = 'en-us' + languageName = 'English' + [languages.en.menu] + [[languages.en.menu.main]] + identifier = "home" + name = "Home" + url = "/en" + weight = 10 + + [[languages.en.menu.main]] + identifier = "posts" + name = "Posts" + url = "/en/posts" + weight = 20 + + [[languages.en.menu.main]] + identifier = "projects" + name = "Projects" + url = "/en/projects" + weight = 30 + + [[languages.en.menu.main]] + identifier = "contact" + name = "Contact" + url = "/en/contact" + weight = 40 + [languages.en.params] + description = 'Open source association based in Málaga, Spain' + [languages.es] + disabled = false + contentDir = 'content/es' + languageCode = 'es-es' + languageName = 'Español' + [languages.es.menu] + [[languages.es.menu.main]] + identifier = "home" + name = "Inicio" + url = "/es" + weight = 10 + + [[languages.es.menu.main]] + identifier = "posts" + name = "Publicaciones" + url = "/es/posts" + weight = 20 + + [[languages.es.menu.main]] + identifier = "projects" + name = "Proyectos" + url = "/es/projects" + weight = 30 + + [[languages.es.menu.main]] + identifier = "contact" + name = "Contacto" + url = "/es/contact" + weight = 40 + [languages.es.params] + description = 'Asociación de Software Libre basada en Málaga, España' + +[params] + [params.social] + twitter = 'OpenBokeron' diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..c01e683 --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,2 @@ +# Header +motto = "Free your source, free your mind" diff --git a/i18n/es.toml b/i18n/es.toml new file mode 100644 index 0000000..734a31a --- /dev/null +++ b/i18n/es.toml @@ -0,0 +1 @@ +motto = "Libera tu código, libera tu mente" diff --git a/index.html b/index.html deleted file mode 100644 index 65fd5b6..0000000 --- a/index.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - Open Bokeron - - - - - - - -
- OpenBokeron logo -

Open Bokeron

-

"¡Abre tu mente, abre tu código!"

- -
- - -
-

Sobre nosotros

-

¿Has tenido curiosidad sobre Linux y no sabes por dónde empezar?

-

¿Quieres conocer más sobre el software libre?

-

¿Quieres aportar a la causa?

-

- ¡Bienvenido a Open Bokeron! - Somos un grupo de estudiantes de la ETSI Informática de la UMA que nos dedicamos a - promocionar el software libre. -

-
- - - - - - - diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..9bf1e11 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,20 @@ + + + + + {{ partial "head.html" . -}} + + + +
+ {{ partial "header.html" . -}} +
+
+ {{- block "main" . }}{{- end -}} +
+ + + + diff --git a/layouts/_default/index.html b/layouts/_default/index.html new file mode 100644 index 0000000..e0e8308 --- /dev/null +++ b/layouts/_default/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..69c63eb --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +{{ .Content }} +
+ {{ range .Pages }} +
+ Linux Party Image +
+
+

{{ .Title }}

+

{{ .Description }}

+

Fecha: {{ partial "time.html" . }}

+

Lugar: {{ .Params.place }}

+ Más info +
+
+{{ end }} +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..e0e8308 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} + {{ .Content }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..0146471 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,11 @@ +

© 2024 Open Bokeron.

+

+ Made with in + Bitbucket +

+ +

+ {{ range $.Site.Home.AllTranslations }} + {{ .Language.LanguageName }} + {{ end }} +

diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..f7d7f6e --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,17 @@ + + +{{ .Title }} | {{ .Site.Title }} +{{ template "_internal/opengraph.html" . }} +{{ template "_internal/twitter_cards.html" . }} + + + +{{- with resources.Get "css/main.css" }} + {{- if eq hugo.Environment "development" }} + + {{- else }} + {{- with . | minify | fingerprint }} + + {{- end }} + {{- end }} +{{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..86e0aaa --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,4 @@ +{{ .Title }} logo +

{{ .Title }}

+

{{ T "motto" }}

+{{ partial "nav.html" . }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..1647665 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,8 @@ + diff --git a/layouts/partials/time.html b/layouts/partials/time.html new file mode 100644 index 0000000..13e51fd --- /dev/null +++ b/layouts/partials/time.html @@ -0,0 +1,3 @@ + diff --git a/layouts/posts/list.html b/layouts/posts/list.html new file mode 100644 index 0000000..b418bfd --- /dev/null +++ b/layouts/posts/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} + {{ .Content }} +
+ {{- range where site.RegularPages "Type" "posts" }} +
+

{{ .Title }}

+

{{ .Description }}

+

Fecha: {{ partial "time.html" . }}

+ Ver más +
+ {{- end }} +
+{{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..93210ff --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,5 @@ +{{ define "main" }} +

📅 TODO, DATE

+ +{{ .Content }} +{{ end }} diff --git a/proyectos.html b/proyectos.html deleted file mode 100644 index 683f034..0000000 --- a/proyectos.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - Proyectos - Open Bokeron - - - - - - - -
- OpenBokeron logo -

Open Bokeron

-

"¡Abre tu mente, abre tu código!"

- -
- -
-

Proyectos y eventos

-

- En Open Bokeron, intentamos llevar a cabo varias actividades, proyectos y eventos para promover el uso de - software libre en la Universidad de Málaga. -

-

- Esta página enumera todos nuestros proyectos, tanto actuales como antiguos. -

- -

Próximos eventos

-
-
- Linux Party Image -
-
-

Linux Party

-

Una introducción al mundo de software libre con la instalación de Linux.

-

Fecha: Por determinar

-

Lugar: Por determinar

- Más info -
-
-
- - - - - - - diff --git a/proyectos/linux-party.html b/proyectos/linux-party.html deleted file mode 100644 index 3ded7fa..0000000 --- a/proyectos/linux-party.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - Linux Party - Open Bokeron - - - - - - - -
- OpenBokeron logo -

Open Bokeron

-

"¡Abre tu mente, abre tu código!"

- -
- - - - - - diff --git a/assets/linux-party.png b/static/assets/linux-party.png similarity index 100% rename from assets/linux-party.png rename to static/assets/linux-party.png diff --git a/assets/logo.jpg b/static/assets/logo.jpg similarity index 100% rename from assets/logo.jpg rename to static/assets/logo.jpg diff --git a/favicon.ico b/static/favicon.ico similarity index 100% rename from favicon.ico rename to static/favicon.ico diff --git a/robots.txt b/static/robots.txt similarity index 100% rename from robots.txt rename to static/robots.txt