From d0a58daf5f6c29b22abcbeb7a5072f8739662ac2 Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Mon, 25 Mar 2024 23:05:37 +0100 Subject: [PATCH] Port a Gitea --- README.md | 2 +- archetypes/projects.md | 11 ++++++----- assets/css/main.css | 10 +++++----- content/en/posts/_index.md | 2 ++ content/en/projects/_index.md | 2 -- content/en/projects/linux-party.md | 1 + content/es/posts/_index.md | 2 ++ content/es/projects/_index.md | 2 -- content/es/projects/linux-party.md | 14 ++++++++++++++ hugo.toml | 2 +- layouts/_default/list.html | 8 ++------ layouts/partials/footer.html | 2 +- layouts/partials/header.html | 4 ++-- layouts/posts/list.html | 13 ------------- layouts/posts/single.html | 5 ----- layouts/projects/list.html | 21 +++++++++++++++++++++ layouts/projects/single.html | 11 +++++++++++ 17 files changed, 69 insertions(+), 43 deletions(-) delete mode 100644 layouts/posts/list.html delete mode 100644 layouts/posts/single.html create mode 100644 layouts/projects/list.html create mode 100644 layouts/projects/single.html diff --git a/README.md b/README.md index e75aa29..27815cf 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ 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. - [x] Work on SEO (OpenGraph, Twitter meta tags...) -- [ ] Multilingual support(English + Spanish) +- [x] Multilingual support(English + Spanish) - [x] Support for RSS (index.xml) - [x] Use a minimal CMS - [x] Basic robots.txt diff --git a/archetypes/projects.md b/archetypes/projects.md index 0531b93..9c1c9a7 100644 --- a/archetypes/projects.md +++ b/archetypes/projects.md @@ -1,7 +1,8 @@ +++ -title = '{{ replace .File.ContentBaseName "-" " " | title }}' -description = '' -image = '' -date = {{ .Date }} -draft = true +title: '{{ replace .File.ContentBaseName "-" " " | title }}' +description: '' +image: '' +date: {{ .Date }} +draft: true +finished: false +++ diff --git a/assets/css/main.css b/assets/css/main.css index 071cd45..c73d279 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,12 +1,12 @@ /* Override colors from CSS library */ :root { - --accent: green; - --accent-hover: darkgreen; + --accent: green; + --accent-hover: darkgreen; } /* Custom style for the logo */ img.icon { - max-width: 128px; - max-height: 128px; - margin-top: 10px; + max-width: 128px; + max-height: 128px; + margin-top: 10px; } diff --git a/content/en/posts/_index.md b/content/en/posts/_index.md index 43082cd..bf757d1 100644 --- a/content/en/posts/_index.md +++ b/content/en/posts/_index.md @@ -2,3 +2,5 @@ title: "Posts" description: "Nuestro blog" --- + +## Posts diff --git a/content/en/projects/_index.md b/content/en/projects/_index.md index 709da3c..89673a4 100644 --- a/content/en/projects/_index.md +++ b/content/en/projects/_index.md @@ -8,5 +8,3 @@ We try to carry out various activities, projects and events to promote the use o 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 index e5b3907..6a2835c 100644 --- a/content/en/projects/linux-party.md +++ b/content/en/projects/linux-party.md @@ -4,4 +4,5 @@ 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) +finished: true --- diff --git a/content/es/posts/_index.md b/content/es/posts/_index.md index 22788ab..1f073ac 100644 --- a/content/es/posts/_index.md +++ b/content/es/posts/_index.md @@ -2,3 +2,5 @@ title: Publicaciones description: Nuestro blog --- + +## Publicaciones diff --git a/content/es/projects/_index.md b/content/es/projects/_index.md index 3eb92cf..646172d 100644 --- a/content/es/projects/_index.md +++ b/content/es/projects/_index.md @@ -8,5 +8,3 @@ En Open Bokeron, intentamos llevar a cabo varias actividades, proyectos y evento 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 index 11019c8..0b438db 100644 --- a/content/es/projects/linux-party.md +++ b/content/es/projects/linux-party.md @@ -4,4 +4,18 @@ description: Una introducción al mundo de software libre con la instalación de image: assets/linux-party.png date: 2024-02-21T00:30:35+01:00 place: Aula 4.1.1 (Sala Coworking) +finished: true --- + +### Presentación Introductoria a Linux +* Conoce las bases del sistema operativo Linux y sus diferencias con otros sistemas. +* Descubre las ventajas de utilizar Linux en tu día a día. + +### Instalación de Distribuciones GNU/Linux +* Los miembros de Open Bokeron estarán disponibles para ayudarte a elegir la distribución de GNU/Linux más adecuada para tus necesidades +* Asistencia personalizada en la instalación del sistema operativo en tu equipo. + +### Exploración de Herramientas y Aplicaciones +* Descubre una amplia gama de software libre disponible en Linux. +* Aprende a utilizar herramientas para la programación, ofimática y más. +* Introducción al uso del terminal de linux. diff --git a/hugo.toml b/hugo.toml index 1460cd8..6a4b296 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,4 +1,4 @@ -baseURL = 'https://openbokeron.bitbucket.io/' +baseURL = 'https://openbokeron.uma.es' title = 'OpenBokeron' timeZone = 'Europe/Madrid' diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 69c63eb..4c29ad8 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,15 +2,11 @@ {{ .Content }}
{{ range .Pages }} -
- Linux Party Image -

{{ .Title }}

{{ .Description }}

-

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

-

Lugar: {{ .Params.place }}

- Más info +

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

+ Info
{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0146471..dd3dc67 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@

© 2024 Open Bokeron.

Made with in - Bitbucket + Gitea

diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 86e0aaa..545eb59 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,4 @@ -{{ .Title }} logo -

{{ .Title }}

+{{ .Site.Title }} logo +

{{ .Site.Title }}

{{ T "motto" }}

{{ partial "nav.html" . }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html deleted file mode 100644 index b418bfd..0000000 --- a/layouts/posts/list.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ 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 deleted file mode 100644 index 93210ff..0000000 --- a/layouts/posts/single.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ define "main" }} -

📅 TODO, DATE

- -{{ .Content }} -{{ end }} diff --git a/layouts/projects/list.html b/layouts/projects/list.html new file mode 100644 index 0000000..99fa1a9 --- /dev/null +++ b/layouts/projects/list.html @@ -0,0 +1,21 @@ +{{ define "main" }} +{{ .Content }} +
+ {{ range .Pages.ByDate.Reverse }} +
+
+
+ Event image +
+
+

{{ .Title }}

+

{{ .Description }}

+

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

+

📍: {{ .Params.place }}

+ Info +
+
+
+ {{ end }} +
+{{ end }} diff --git a/layouts/projects/single.html b/layouts/projects/single.html new file mode 100644 index 0000000..3624751 --- /dev/null +++ b/layouts/projects/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} +

+ {{ .Description }} +
+
+ 📅: {{ partial "time.html" . }} +
+ 📍: {{ .Params.place }} +

+{{ .Content }} +{{ end }}