diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml
deleted file mode 100644
index fa11ac5..0000000
--- a/.forgejo/workflows/build.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-name: publish
-
-on:
- push:
- branches:
- - main
-
-jobs:
- publish:
- runs-on: ubuntu-24.04
- env:
- SSH_USER: ${{ secrets.PUBLISHER_USER }}
- SSH_PRIVATE_KEY: ${{ secrets.PUBLISHER_PRIVATE_KEY }}
- SSH_HOST: ${{ secrets.PUBLISHER_HOST }}
- SSH_PORT: ${{ secrets.PUBLISHER_PORT }}
- steps:
- - uses: actions/checkout@v4
- with:
- submodules: recursive
- fetch-depth: 0 # all history for all branches and tags\
-
- - name: Install Hugo
- run: |
- apt update && apt install -y hugo
-
- - name: Build
- run: |
- hugo --minify
-
- - name: Deploy
- run: |
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add -
- apt update && apt install -y rsync
- ssh-keyscan -p $SSH_PORT $SSH_HOST > ~/.ssh/known_hosts
- rsync -atv --progress --delete -e "ssh -p $SSH_PORT" ./public/ $SSH_USER@$SSH_HOST:/app
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index a48cf0d..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-public
diff --git a/config.toml b/config.toml
index a5bd117..9b0941b 100644
--- a/config.toml
+++ b/config.toml
@@ -1,19 +1,29 @@
baseURL = "https://mrtraduccions.cat/"
-title = "Marc Riera Irigoyen"
+title = "MRTraduccions"
theme = "marcriera"
DefaultContentLanguage = "ca"
removePathAccents = true
-enableRobotsTXT = true
-disableKinds = ["taxonomy", "taxonomyTerm"]
+
+[blackfriday]
+ fractions = false
[params]
name = "Marc Riera Irigoyen"
copyright = "Marc Riera Irigoyen"
logoimage = "images/logo.png"
- description = "Translator and localizer"
- description2 = "EN,RO > CA,ES"
-[markup]
- [markup.goldmark]
- [markup.goldmark.renderer]
- unsafe = true
+[languages]
+[languages.ca]
+languageName = "Català"
+weight = 1
+description = "Traducció i localització"
+
+[languages.es]
+languageName = "Castellano"
+weight = 2
+description = "Traducción y localización"
+
+[languages.en]
+languageName = "English"
+weight = 3
+description = "Translation and localisation"
diff --git a/content/_index.ca.md b/content/_index.ca.md
new file mode 100644
index 0000000..c92ef34
--- /dev/null
+++ b/content/_index.ca.md
@@ -0,0 +1,9 @@
+---
+menu:
+ main:
+ name: "Inici"
+ weight: 1
+ url: "/"
+---
+
+Hola, em dic Marc i sóc traductor professional.
diff --git a/content/_index.en.md b/content/_index.en.md
new file mode 100644
index 0000000..e1bc6ae
--- /dev/null
+++ b/content/_index.en.md
@@ -0,0 +1,7 @@
+---
+menu:
+ main:
+ name: "Home"
+ weight: 1
+ url: "/"
+---
diff --git a/content/_index.es.md b/content/_index.es.md
new file mode 100644
index 0000000..ac8a6aa
--- /dev/null
+++ b/content/_index.es.md
@@ -0,0 +1,7 @@
+---
+menu:
+ main:
+ name: "Inicio"
+ weight: 1
+ url: "/"
+---
diff --git a/content/_index.md b/content/_index.md
deleted file mode 100644
index defbeea..0000000
--- a/content/_index.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
----
-
-**Contact:**
-
- [contacte@mrtraduccions.cat](mailto:contacte@mrtraduccions.cat)
-
- (+34) 652 492 008
-
-
-
- [@marc@marcriera.cat](https://micro.marcriera.cat/@marc)
-
- [Marc Riera Irigoyen](https://www.linkedin.com/in/marc-riera-irigoyen/)
diff --git a/content/localitzacio/_index.md b/content/localitzacio/_index.md
new file mode 100644
index 0000000..c65c8cd
--- /dev/null
+++ b/content/localitzacio/_index.md
@@ -0,0 +1,9 @@
+---
+title: "Localització"
+menu:
+ main:
+ name: "Localització"
+ weight: 3
+ url: "/localitzacio/"
+---
+
diff --git a/content/localitzacio/programari/_index.md b/content/localitzacio/programari/_index.md
new file mode 100644
index 0000000..8ec3366
--- /dev/null
+++ b/content/localitzacio/programari/_index.md
@@ -0,0 +1,10 @@
+---
+title: "Localització de programari"
+menu:
+ main:
+ name: "Programari"
+ weight: 2
+ url: "/localitzacio/programari/"
+ parent: "Localització"
+---
+
diff --git a/content/localitzacio/videojocs/_index.md b/content/localitzacio/videojocs/_index.md
new file mode 100644
index 0000000..10107d9
--- /dev/null
+++ b/content/localitzacio/videojocs/_index.md
@@ -0,0 +1,10 @@
+---
+title: "Localització de videojocs"
+menu:
+ main:
+ name: "Videojocs"
+ weight: 3
+ url: "/localitzacio/videojocs/"
+ parent: "Localització"
+---
+
diff --git a/content/localitzacio/web/_index.md b/content/localitzacio/web/_index.md
new file mode 100644
index 0000000..9629268
--- /dev/null
+++ b/content/localitzacio/web/_index.md
@@ -0,0 +1,10 @@
+---
+title: "Localització de pàgines web"
+menu:
+ main:
+ name: "Pàgines web"
+ weight: 1
+ url: "/localitzacio/web/"
+ parent: "Localització"
+---
+
diff --git a/content/marcriera/_index.ca.md b/content/marcriera/_index.ca.md
new file mode 100644
index 0000000..25a51bc
--- /dev/null
+++ b/content/marcriera/_index.ca.md
@@ -0,0 +1,28 @@
+---
+title: "Marc Riera"
+menu:
+ main:
+ name: "Marc Riera"
+ weight: 6
+ url: "/marcriera/"
+---
+
+
+
+Puc fer alguna cosa per tu? Contacta amb mi i parlem-ne, sense compromisos.
+
+
+
+
contacte@mrtraduccions.cat
+
+
(+34) 652 492 008
+
+
+
+
+
+
@marcrierai
+
+
Marc Riera Irigoyen
+
+
diff --git a/content/traduccio/_index.ca.md b/content/traduccio/_index.ca.md
new file mode 100644
index 0000000..3b41492
--- /dev/null
+++ b/content/traduccio/_index.ca.md
@@ -0,0 +1,10 @@
+---
+title: "Traducció"
+menu:
+ main:
+ name: "Traducció"
+ weight: 2
+ url: "/traduccio/"
+---
+
+Aquesta és la pàgina sobre traducció
diff --git a/content/traduccio/editorial/_index.md b/content/traduccio/editorial/_index.md
new file mode 100644
index 0000000..da5ac96
--- /dev/null
+++ b/content/traduccio/editorial/_index.md
@@ -0,0 +1,10 @@
+---
+title: "Traducció de textos editorials"
+menu:
+ main:
+ name: "Textos editorials"
+ weight: 2
+ url: "/traduccio/editorial/"
+ parent: "Traducció"
+---
+
diff --git a/content/traduccio/general/_index.md b/content/traduccio/general/_index.md
new file mode 100644
index 0000000..4cc7dc6
--- /dev/null
+++ b/content/traduccio/general/_index.md
@@ -0,0 +1,10 @@
+---
+title: "Traducció de textos generals"
+menu:
+ main:
+ name: "Textos generals"
+ weight: 1
+ url: "/traduccio/general/"
+ parent: "Traducció"
+---
+
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
deleted file mode 100644
index 9a222e0..0000000
--- a/layouts/_default/_markup/render-image.html
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
deleted file mode 100644
index f04b2e3..0000000
--- a/layouts/_default/_markup/render-link.html
+++ /dev/null
@@ -1 +0,0 @@
-{{ .Text | safeHTML }}
diff --git a/layouts/robots.txt b/layouts/robots.txt
deleted file mode 100644
index 512ab5e..0000000
--- a/layouts/robots.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-User-agent: *
-Disallow: /files
diff --git a/static/files/CV_ca.pdf b/static/files/CV_ca.pdf
deleted file mode 100644
index 2f31a1f..0000000
Binary files a/static/files/CV_ca.pdf and /dev/null differ
diff --git a/static/files/CV_en.pdf b/static/files/CV_en.pdf
deleted file mode 100644
index 0ec6cf7..0000000
Binary files a/static/files/CV_en.pdf and /dev/null differ
diff --git a/static/files/CV_es.pdf b/static/files/CV_es.pdf
deleted file mode 100644
index 3215eaf..0000000
Binary files a/static/files/CV_es.pdf and /dev/null differ
diff --git a/static/images/icon-mastodon.svg b/static/images/icon-mastodon.svg
deleted file mode 100644
index 39a116b..0000000
--- a/static/images/icon-mastodon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/static/images/icon-twitter.png b/static/images/icon-twitter.png
new file mode 100644
index 0000000..d52f1d4
Binary files /dev/null and b/static/images/icon-twitter.png differ
diff --git a/themes/marcriera/i18n/ca.toml b/themes/marcriera/i18n/ca.toml
new file mode 100644
index 0000000..98b28f2
--- /dev/null
+++ b/themes/marcriera/i18n/ca.toml
@@ -0,0 +1,14 @@
+[menu]
+other = "Menú"
+
+[readMore]
+other = "Llegeix més"
+
+[newer]
+other = "Més recent"
+
+[older]
+other = "Més antic"
+
+[latestUpdates]
+other = "Últimes actualitzacions"
diff --git a/themes/marcriera/i18n/en.toml b/themes/marcriera/i18n/en.toml
new file mode 100644
index 0000000..5fbde5a
--- /dev/null
+++ b/themes/marcriera/i18n/en.toml
@@ -0,0 +1,14 @@
+[menu]
+other = "Menu"
+
+[readMore]
+other = "Read more"
+
+[newer]
+other = "Newer"
+
+[older]
+other = "Older"
+
+[latestUpdates]
+other = "Latest updates"
diff --git a/themes/marcriera/i18n/es.toml b/themes/marcriera/i18n/es.toml
new file mode 100644
index 0000000..0a07be7
--- /dev/null
+++ b/themes/marcriera/i18n/es.toml
@@ -0,0 +1,14 @@
+[menu]
+other = "Menú"
+
+[readMore]
+other = "Leer más"
+
+[newer]
+other = "Más reciente"
+
+[older]
+other = "Más antiguo"
+
+[latestUpdates]
+other = "Últimas actualizaciones"
diff --git a/themes/marcriera/layouts/_default/list.html b/themes/marcriera/layouts/_default/list.html
new file mode 100644
index 0000000..fda8482
--- /dev/null
+++ b/themes/marcriera/layouts/_default/list.html
@@ -0,0 +1,29 @@
+{{ partial "header.html" . }}
+
+
+
+ {{ range sort .Paginator.Pages }}
+
+
+
+ {{ .Summary | plainify | safeHTML }}
+ ...
+
+
+
+ {{ if .Params.tags }}
+ {{ partial "tags" .Params.tags }}
+ {{ end }}
+ {{ end }}
+ {{ partial "pagination.html" . }}
+
+
+
+{{ partial "footer.html" . }}
diff --git a/themes/marcriera/layouts/_default/rss.xml b/themes/marcriera/layouts/_default/rss.xml
new file mode 100644
index 0000000..beaf943
--- /dev/null
+++ b/themes/marcriera/layouts/_default/rss.xml
@@ -0,0 +1,26 @@
+
+
+ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}
+ {{ .Permalink }}
+ Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}
+ Hugo -- gohugo.io{{ with .Site.LanguageCode }}
+ {{.}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
+ {{.}}{{end}}{{ if not .Date.IsZero }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
+ {{ with .OutputFormats.Get "RSS" }}
+ {{ printf "" .Permalink .MediaType | safeHTML }}
+ {{ end }}
+ {{ range .Pages }}
+ -
+ {{ .Title }}
+ {{ .Permalink }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
+ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}
+ {{ .Permalink }}
+ {{ .Content | html }}
+
+ {{ end }}
+
+
diff --git a/themes/marcriera/layouts/_default/section.html b/themes/marcriera/layouts/_default/section.html
new file mode 100644
index 0000000..0b88d4f
--- /dev/null
+++ b/themes/marcriera/layouts/_default/section.html
@@ -0,0 +1,35 @@
+{{ partial "header.html" . }}
+
+{{ if ne (len .Content) 0 }}
+
+ {{ .Content }}
+
+{{ else }}
+
+
+ {{ range sort .Paginator.Pages }}
+
+
+
+ {{ .Summary | plainify | safeHTML }}
+ ...
+
+
+
+ {{ if .Params.tags }}
+ {{ partial "tags" .Params.tags }}
+ {{ end }}
+ {{ end }}
+ {{ partial "pagination.html" . }}
+
+
+{{ end }}
+
+{{ partial "footer.html" . }}
diff --git a/themes/marcriera/layouts/_default/single.html b/themes/marcriera/layouts/_default/single.html
new file mode 100644
index 0000000..49fd212
--- /dev/null
+++ b/themes/marcriera/layouts/_default/single.html
@@ -0,0 +1,11 @@
+{{ 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/marcriera/layouts/index.html b/themes/marcriera/layouts/index.html
index c31edcc..c830700 100644
--- a/themes/marcriera/layouts/index.html
+++ b/themes/marcriera/layouts/index.html
@@ -1,44 +1,5 @@
-
-
-
-
- {{ .Site.Title }} - {{ .Site.Params.Description }}
-
-
- {{ hugo.Generator }}
-
-
-
-
-
-
-
-
-
-
-
- {{ .Content }}
-
-
-
-
-
-
-
-
-
+{{ partial "header.html" . }}
+
+ {{ .Content }}
+
+{{ partial "footer.html" . }}
diff --git a/themes/marcriera/layouts/partials/footer.html b/themes/marcriera/layouts/partials/footer.html
new file mode 100644
index 0000000..bff5067
--- /dev/null
+++ b/themes/marcriera/layouts/partials/footer.html
@@ -0,0 +1,6 @@
+
+
+