From ba5438abaa430358eeb69b1376737ce61a3d68dc Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 1 May 2026 12:47:22 +0200 Subject: feat: Article dataclass and ARTICLE_TYPES --- core/models.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 core/models.py (limited to 'core') diff --git a/core/models.py b/core/models.py new file mode 100644 index 0000000..3df2088 --- /dev/null +++ b/core/models.py @@ -0,0 +1,15 @@ +from __future__ import annotations +from dataclasses import dataclass +from pathlib import Path + +ARTICLE_TYPES = ["Life", "Photo", "Link", "Quote", "Tech"] + + +@dataclass +class Article: + slug: str + lang: str # "it" | "en" + path: Path + frontmatter: dict + has_translation: bool + translation_path: Path | None -- cgit v1.2.3