From 8c3fe1da8b0f4d513e3e7ed180e05143b257eee8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 6 Oct 2023 22:03:10 +0100 Subject: [PATCH] Fall back to title for meta description --- website/common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/common/models.py b/website/common/models.py index b1ffc02..be438ea 100644 --- a/website/common/models.py +++ b/website/common/models.py @@ -205,7 +205,7 @@ class BaseContentPage(BasePage, MetadataMixin): return self.html_title def get_meta_description(self) -> str: - return self.summary + return self.summary or self.get_meta_title() def get_object_title(self) -> str: return ""