Skip to content

Commit b1e1afe

Browse files
committed
feat: allow per-page description customization
1 parent 96c0404 commit b1e1afe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mkdocs_rss_plugin/util.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,10 @@ def get_description_or_abstract(
478478
Returns:
479479
str: page description to use
480480
"""
481-
description = in_page.meta.get("description")
481+
if in_page.meta.get("rss", {}).get("feed_description"):
482+
description = in_page.meta["rss"]["feed_description"]
483+
else:
484+
description = in_page.meta.get("description")
482485

483486
# If the full page is wanted (unlimited chars count)
484487
if chars_count == -1 and (in_page.content or in_page.markdown):

0 commit comments

Comments
 (0)