Skip to content

Commit 606ab03

Browse files
committed
add: enable to use singles and archives in plugin
when creating html
1 parent 33d8aaa commit 606ab03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nkssg/structure/singles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,13 +586,13 @@ def update_html(self, singles, archives):
586586

587587
self.content = content
588588

589-
self.content = config['plugins'].do_action('before_render_html', target=self.content, config=config, single=self)
589+
self.content = config['plugins'].do_action('before_render_html', target=self.content, config=config, single=self, singles=singles, archives=archives)
590590

591591
self.html = template.render({
592592
'mypage': self,
593593
})
594594

595-
self.html = config['plugins'].do_action('after_render_html', target=self.html, config=config, single=self)
595+
self.html = config['plugins'].do_action('after_render_html', target=self.html, config=config, single=self, singles=singles, archives=archives)
596596

597597

598598

0 commit comments

Comments
 (0)