blog-markdown #31
|
@ -122,6 +122,12 @@ class BlogPost(Searchable):
|
||||||
logger.error(f"Key '{key}' missing in meta file for '{self}'")
|
logger.error(f"Key '{key}' missing in meta file for '{self}'")
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"Key '{key}' missing in meta file for '{self}'")
|
f"Key '{key}' missing in meta file for '{self}'")
|
||||||
|
for lang in self.DEFAULT_LANGS.keys():
|
||||||
|
if lang not in data['lang']:
|
||||||
|
langs[lang] = False
|
||||||
|
else:
|
||||||
|
langs[lang] = True
|
||||||
|
self.set_langs(langs)
|
||||||
for lang in data['lang']:
|
for lang in data['lang']:
|
||||||
for key in self.META_LANG_KEYS:
|
for key in self.META_LANG_KEYS:
|
||||||
if key not in data['lang'][lang]:
|
if key not in data['lang'][lang]:
|
||||||
|
|
Loading…
Reference in New Issue