summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/models.py15
1 files changed, 15 insertions, 0 deletions
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