diff --git a/gawa/blog/models.py b/gawa/blog/models.py index 58cd154..3dc3c88 100644 --- a/gawa/blog/models.py +++ b/gawa/blog/models.py @@ -68,6 +68,12 @@ class BlogPost(Searchable): DATA_DIR = "/app/blog/data/articles" DEFAULT_LANGS = {'en': False, 'de': False} + def key_words(self) -> bool: + """ + check if the post has keywords + """ + return False + def regenerate(self): """ regenerate a object @@ -123,6 +129,8 @@ class BlogPost(Searchable): logger.debug(f"category of {self}: {category}") self.category = category + self.keywords = None + except Exception as e: logger.warning( f"could not generate metadata {self.slug} from markdown: {e}") diff --git a/gawa/blog/templates/blog/featured.html b/gawa/blog/templates/blog/featured.html index cece5d3..0a23c55 100644 --- a/gawa/blog/templates/blog/featured.html +++ b/gawa/blog/templates/blog/featured.html @@ -1,60 +1,54 @@ -{% load i18n %} {% get_current_language as LANGUAGE_CODE %} +{% load i18n %} +{% get_current_language as LANGUAGE_CODE %}