Browse Source

Set a default lang for Notes

master
David Larlet 1 year ago
parent
commit
e973527ab9
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      site.py

+ 2
- 0
site.py View File

@@ -89,6 +89,8 @@ class Item:

@dataclass
class Note(Item):
lang: str = "fr"

def __post_init__(self):
suffix = len("/index.md")
prefix = len("YYYY/MM/DD") + suffix

Loading…
Cancel
Save