Skip to content

Commit 53b1890

Browse files
committed
update(plugin): store subset of Mkdocs page to use later during on_post_build
1 parent 48f9a58 commit 53b1890

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mkdocs_rss_plugin/plugin.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from mkdocs_rss_plugin.integrations.theme_material_social_plugin import (
3838
IntegrationMaterialSocialCards,
3939
)
40-
from mkdocs_rss_plugin.models import PageInformation, RssFeedBase
40+
from mkdocs_rss_plugin.models import MkdocsPageSubset, PageInformation, RssFeedBase
4141
from mkdocs_rss_plugin.util import Util
4242

4343
# ############################################################################
@@ -347,6 +347,7 @@ def on_page_content(
347347
updated=page_dates[1],
348348
url_comments=page_url_comments,
349349
url_full=page_url_full,
350+
_mkdocs_page_ref=MkdocsPageSubset.from_page(page),
350351
)
351352
)
352353

@@ -385,7 +386,7 @@ def on_post_build(self, config: config_options.Config) -> None:
385386
self.feed_created.entries.extend(
386387
self.util.filter_pages(
387388
pages=self.pages_to_filter,
388-
attribute="created",
389+
filter_attribute="created",
389390
length=self.config.length,
390391
)
391392
)
@@ -394,7 +395,7 @@ def on_post_build(self, config: config_options.Config) -> None:
394395
self.feed_updated.entries.extend(
395396
self.util.filter_pages(
396397
pages=self.pages_to_filter,
397-
attribute="updated",
398+
filter_attribute="updated",
398399
length=self.config.length,
399400
)
400401
)

0 commit comments

Comments
 (0)