From bd96d85699c99f2f7c1eca17b8e91af30c8cb155 Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Sun, 20 Oct 2024 22:58:39 +0200 Subject: [PATCH] Adding info for future language-based content filtering Update circuitpython-custom-fs.yml, circuitpython-ebyte-e32.yml, and metadata.py --- data/projects/circuitpython-custom-fs.yml | 2 ++ data/projects/circuitpython-ebyte-e32.yml | 2 ++ website/content/metadata.py | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/projects/circuitpython-custom-fs.yml b/data/projects/circuitpython-custom-fs.yml index 4175b25..eb5ff87 100644 --- a/data/projects/circuitpython-custom-fs.yml +++ b/data/projects/circuitpython-custom-fs.yml @@ -27,3 +27,5 @@ general: - "electronic" - "python" - "circuitpython" + languages: + - "python" diff --git a/data/projects/circuitpython-ebyte-e32.yml b/data/projects/circuitpython-ebyte-e32.yml index f6a705b..7da1432 100644 --- a/data/projects/circuitpython-ebyte-e32.yml +++ b/data/projects/circuitpython-ebyte-e32.yml @@ -28,3 +28,5 @@ general: - "circuitpython" - "lora" - "library" + languages: + - "python" diff --git a/website/content/metadata.py b/website/content/metadata.py index dd93c9c..2cf46a8 100644 --- a/website/content/metadata.py +++ b/website/content/metadata.py @@ -39,7 +39,8 @@ class ContentGeneralMetadata: icon: str title_key: str subtitle_key: str - tags: list[str] + tags: list[str] = field(default_factory=list) + languages: list[str] = field(default_factory=list) @dataclass