Personal website documenting my journey through the Master's Degree in Secondary Education Teaching at Universitat Pompeu Fabra.
- 🌐 Multilingual: Available in Spanish, Catalan, and English
- 🖼️ Optimized Images: Lazy loading for improved performance
- 🔍 Lightbox Gallery: Interactive image viewing with fade effects
- 📱 Responsive Design: Mobile-friendly layout
- 🚀 Auto-deployment: GitHub Actions workflow for automatic publishing
- 🔄 Translation Scripts: Automated content translation tools
This site is available in three languages:
- 🇪🇸 Spanish (Español) - Default language (root)
- 🇨🇦 Catalan (Català) -
/ca/ - 🇬🇧 English -
/en/
wiki_MasterUPF/
├── es/ # Spanish content (renders to /docs/)
├── ca/ # Catalan content (renders to /docs/ca/)
├── en/ # English content (renders to /docs/en/)
├── docs/ # Rendered output (published to GitHub Pages)
├── python_codes/ # Translation scripts
└── .github/
└── workflows/
└── deploy-quarto.yml # GitHub Actions deployment
- Quarto
- Python 3.x (for translation scripts)
Render all languages:
# Spanish (default)
cd es && quarto render && cd ..
# Catalan
cd ca && quarto render && cd ..
# English
cd en && quarto render && cd ..Preview the site:
cd es
quarto previewTranslate all Catalan files:
cd ca
python3 ../python_codes/translate_to_catalan.pyTranslate all English files:
cd en
python3 ../python_codes/translate_to_english.pyTranslate a single Catalan file:
cd ca
python3 ../python_codes/translate_single_file.py <filename.qmd>Translate a single English file:
cd en
python3 ../python_codes/translate_single_file_en.py <filename.qmd>The site automatically deploys to GitHub Pages when you push to the main or master branch using GitHub Actions.
-
Enable GitHub Pages:
- Go to repository Settings → Pages
- Source: GitHub Actions
-
Push changes:
git add . git commit -m "Update content" git push origin main
-
Monitor deployment:
- Check the Actions tab in your GitHub repository
Each language folder contains:
_quarto.yml- Quarto project configuration_website.yml- Website structure and navigation_format.yml- Output format settings_brand.yml- Branding and styling
Each .qmd file includes lightbox configuration in YAML front matter:
lightbox:
match: auto
effect: fade
desc-position: bottom
loop: falseAll 39 images across 57 .qmd files (19 per language) are optimized with:
- Lazy Loading:
loading="lazy"attribute for improved page load performance - Lightbox Gallery: Automatic lightbox functionality with:
match: auto- Automatically detects imageseffect: fade- Smooth fade transitiondesc-position: bottom- Description at bottomloop: false- No continuous loop
- Group Organization: Images grouped by page filename (e.g.,
group="intro-master-upf")
When adding new images to .qmd files:
{ group="filename" loading="lazy" }Replace filename with the name of your .qmd file (without extension).
- Add content to the Spanish version in
/es/ - Copy the file structure to
/ca/and/en/ - Run translation scripts or manually translate
- Ensure all images include
groupandloading="lazy"attributes - Render all versions
- Commit and push
- Live Site: [Your GitHub Pages URL]
- Repository: https://github.com/pedromartinezduran/wiki_MasterUPF
- UPF Master Program: [Program URL]
Copyright 2025, Pedro Martinez Duran
Per aspera, ad astra