💥 feat!: add tag filtering for projects (#431)

- Card (project) images no longer require manual top/bottom margin
adjustments for proper spacing. Action needed: Review existing card
images as previous manual margin adjustments may now be
unnecessary/excessive.
- Sites using `cards.html` with tags will now load JavaScript by
default when tags are present. To maintain no-JS behaviour, explicitly
set `enable_cards_tag_filtering = false` in either `config.toml` or the
`_index.md` file where `cards.html` is used.
This commit is contained in:
welpo
2024-11-17 00:38:32 +01:00
parent f93def0692
commit a7833299ff
46 changed files with 421 additions and 40 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -3,6 +3,9 @@ title = "dōteki"
description = "Afegeix contingut dinàmic al teu perfil de GitHub amb un sistema intuïtiu de plugins."
weight = 30
[taxonomies]
tags = ["GitHub Actions", "automatització", "Python"]
[extra]
local_image = "projects/doteki/doteki_logo.webp"
social_media_card = "social_cards/projects_doteki.jpg"

View File

@@ -3,6 +3,9 @@ title = "dōteki"
description = "Añade contenido dinámico a tu perfil de GitHub con un sistema intuitivo de plugins."
weight = 30
[taxonomies]
tags = ["GitHub Actions", "automatización", "Python"]
[extra]
local_image = "projects/doteki/doteki_logo.webp"
social_media_card = "social_cards/projects_doteki.jpg"

View File

@@ -3,6 +3,9 @@ title = "dōteki"
description = "Add dynamic content to your GitHub profile through an intuitive plugin system."
weight = 30
[taxonomies]
tags = ["GitHub Actions", "automation", "Python"]
[extra]
local_image = "projects/doteki/doteki_logo.webp"
social_media_card = "social_cards/projects_doteki.jpg"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -3,6 +3,9 @@ title = "git-sumi"
description = "El linter de missatges de commit no opinat basat en Rust."
weight = 10
[taxonomies]
tags = ["Git", "Rust", "Continuous Integration", "GitHub Actions", "CLI", "automatització"]
[extra]
local_image = "projects/git-sumi/git-sumi_logo.webp"
social_media_card = "social_cards/projects_git-sumi.jpg"

View File

@@ -3,6 +3,9 @@ title = "git-sumi"
description = "El linter de mensajes de commit no opinado basado en Rust."
weight = 10
[taxonomies]
tags = ["Git", "Rust", "Continuous Integration", "GitHub Actions", "CLI", "automatización"]
[extra]
local_image = "projects/git-sumi/git-sumi_logo.webp"
social_media_card = "social_cards/projects_git-sumi.jpg"

View File

@@ -3,6 +3,9 @@ title = "git-sumi"
description = "The non-opinionated Rust-based commit message linter."
weight = 10
[taxonomies]
tags = ["Git", "Rust", "Continuous Integration", "GitHub Actions", "CLI", "automation"]
[extra]
local_image = "projects/git-sumi/git-sumi_logo.webp"
social_media_card = "social_cards/projects_git-sumi.jpg"

View File

@@ -3,6 +3,9 @@ title = "nani"
description = "Script Bash per crear URLs públiques a partir d'arxius o text en servidors remots."
weight = 50
[taxonomies]
tags = ["bash", "CLI"]
[extra]
local_image = "projects/nani/nani_logo.webp"
canonical_url = "https://osc.garden/ca/projects/tabi/"

View File

@@ -3,6 +3,9 @@ title = "nani"
description = "Script Bash para crear URLs públicas a partir de archivos o texto en servidores remotos."
weight = 50
[taxonomies]
tags = ["bash", "CLI"]
[extra]
local_image = "projects/nani/nani_logo.webp"
canonical_url = "https://osc.garden/es/projects/tabi/"

View File

@@ -3,6 +3,9 @@ title = "nani"
description = "Bash script to create public URLs from files or text on remote servers."
weight = 50
[taxonomies]
tags = ["bash", "CLI"]
[extra]
local_image = "projects/nani/nani_logo.webp"
canonical_url = "https://osc.garden/projects/tabi/"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -3,8 +3,11 @@ title = "ラム (ramu)"
description = "Una aplicació web per practicar la lectura i comprensió auditiva de nombres en japonès."
weight = 30
[taxonomies]
tags = ["Japonès", "interactiu", "web app", "web", "PWA", "JavaScript"]
[extra]
local_image = "projects/ramu/ramu_logo.png"
local_image = "projects/ramu/ramu_logo.webp"
canonical_url = "https://osc.garden/ca/projects/ramu/"
social_media_card = "social_cards/projects_ramu.jpg"
+++

View File

@@ -3,8 +3,11 @@ title = "ラム (ramu)"
description = "Una aplicación web para practicar la lectura y comprensión auditiva de números en japonés."
weight = 30
[taxonomies]
tags = ["Japonés", "interactivo", "web app", "web", "PWA", "JavaScript"]
[extra]
local_image = "projects/ramu/ramu_logo.png"
local_image = "projects/ramu/ramu_logo.webp"
canonical_url = "https://osc.garden/es/projects/ramu/"
social_media_card = "social_cards/projects_ramu.jpg"
+++

View File

@@ -3,8 +3,11 @@ title = "ラム (ramu)"
description = "A web app to practice reading and listening to Japanese numbers."
weight = 30
[taxonomies]
tags = ["Japanese", "interactive", "web app", "web", "PWA", "JavaScript"]
[extra]
local_image = "projects/ramu/ramu_logo.png"
local_image = "projects/ramu/ramu_logo.webp"
canonical_url = "https://osc.garden/projects/ramu/"
social_media_card = "social_cards/projects_ramu.jpg"
+++

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@@ -3,6 +3,9 @@ title = "Calculadora de royalties de streaming"
description = "Una eina per calcular els royalties de streaming per a músics."
weight = 45
[taxonomies]
tags = ["música", "web app", "web", "JavaScript", "anàlisi de dades"]
[extra]
local_image = "projects/streaming-royalties-calculator/streaming-royalties-calculator_logo.webp"
canonical_url = "https://osc.garden/ca/projects/streaming-royalties-calculator/"

View File

@@ -3,6 +3,9 @@ title = "Calculadora de royalties de streaming"
description = "Una herramienta para calcular los royalties de streaming para músicos."
weight = 45
[taxonomies]
tags = ["música", "web app", "web", "JavaScript", "análisis de datos"]
[extra]
local_image = "projects/streaming-royalties-calculator/streaming-royalties-calculator_logo.webp"
canonical_url = "https://osc.garden/es/projects/streaming-royalties-calculator/"

View File

@@ -3,6 +3,9 @@ title = "Streaming Royalties Calculator"
description = "A tool to calculate streaming royalties for musicians."
weight = 45
[taxonomies]
tags = ["music", "web app", "web", "JavaScript", "data analysis"]
[extra]
local_image = "projects/streaming-royalties-calculator/streaming-royalties-calculator_logo.webp"
canonical_url = "https://osc.garden/projects/streaming-royalties-calculator/"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@@ -3,6 +3,9 @@ title = "tabi"
description = "Un tema de Zola ràpid, lleuger i modern amb suport multilingüe."
weight = 40
[taxonomies]
tags = ["web", "JavaScript"]
[extra]
local_image = "projects/tabi/tabi.webp"
canonical_url = "https://osc.garden/ca/projects/tabi/"
@@ -11,7 +14,7 @@ social_media_card = "social_cards/ca_projects_tabi.jpg"
[**tabi**](https://github.com/welpo/tabi) és un tema modern i ric en funcionalitat per a [Zola](https://www.getzola.org/), un generador de llocs web estàtics molt ràpid.
{{ full_width_image(src="light_dark_tabi.webp", alt="Modes clar i fosc de tabi") }}
{{ full_width_image(src="https://cdn.jsdelivr.net/gh/welpo/tabi@main/light_dark_screenshot.png", alt="Modes clar i fosc de tabi") }}
#### [Veure a GitHub](https://github.com/welpo/tabi) • [Demo i documentación](https://welpo.github.io/tabi/ca/) {.centered-text}

View File

@@ -3,6 +3,9 @@ title = "tabi"
description = "Un tema de Zola rápido, ligero y moderno con soporte multilingüe."
weight = 40
[taxonomies]
tags = ["web", "JavaScript"]
[extra]
local_image = "projects/tabi/tabi.webp"
canonical_url = "https://osc.garden/es/projects/tabi/"
@@ -11,7 +14,7 @@ social_media_card = "social_cards/es_projects_tabi.jpg"
[**tabi**](https://github.com/welpo/tabi) es un tema moderno y rico en funcionalidad para [Zola](https://www.getzola.org/), un generador de sitios web estáticos muy rápido.
{{ full_width_image(src="light_dark_tabi.webp", alt="Modos claro y oscuro de tabi") }}
{{ full_width_image(src="https://cdn.jsdelivr.net/gh/welpo/tabi@main/light_dark_screenshot.png", alt="Modos claro y oscuro de tabi") }}
#### [Ver en GitHub](https://github.com/welpo/tabi) • [Demo y documentación](https://welpo.github.io/tabi/es/) {.centered-text}

View File

@@ -3,6 +3,9 @@ title = "tabi"
description = "A feature-rich modern Zola theme with first-class multi-language support."
weight = 40
[taxonomies]
tags = ["web", "JavaScript"]
[extra]
local_image = "projects/tabi/tabi.webp"
social_media_card = "social_cards/projects_tabi.jpg"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 62 KiB