diff --git a/mkdocs_rss_plugin/plugin.py b/mkdocs_rss_plugin/plugin.py index 418811d5..4c9359b6 100644 --- a/mkdocs_rss_plugin/plugin.py +++ b/mkdocs_rss_plugin/plugin.py @@ -212,6 +212,11 @@ def on_page_content( if not self.match_path_pattern.match(page.file.src_path): return + # skip pages with draft=true + if page.meta.get("draft", False) is True: + logger.debug(f"Page {page.title} ignored because it's a draft") + return + # retrieve dates from git log page_dates = self.util.get_file_dates( in_page=page,