@@ -104,7 +104,7 @@ def on_page_content(self, html, page, config, files, **kwargs):
104104
105105 def on_page_markdown (self , markdown , page , config , files ):
106106 """
107- Replace jinja tag {{ git_authors_summary }} in markdown.
107+ Replace jinja tags in markdown.
108108
109109 The page_markdown event is called after the page's markdown is loaded
110110 from file and can be used to alter the Markdown source text.
@@ -168,6 +168,9 @@ def on_page_context(self, context, page, config, nav, **kwargs):
168168 path = page .file .abs_src_path
169169 page_obj = self .repo ().page (path )
170170 authors = page_obj .get_authors ()
171+
172+ page_authors = util .page_authors_summary (page_obj , self .config )
173+ site_authors = util .site_authors_summary (self .repo ().get_authors (), self .config )
171174
172175 # NOTE: last_datetime is currently given as a
173176 # string in the format
@@ -176,14 +179,17 @@ def on_page_context(self, context, page, config, nav, **kwargs):
176179 # datetime.datetime object with tzinfo instead.
177180 # Should this be formatted differently?
178181 context ["git_info" ] = {
179- "page_authors" : util .page_authors_summary (page_obj , self .config ),
180- "site_authors" : util .site_authors_summary (
181- self .repo ().get_authors (), self .config
182- ),
182+ "page_authors" : util .page_authors (authors , path ),
183+ "site_authors" : util .page_authors (self .repo ().get_authors (), path ),
183184 }
184185
186+ # Make available the same markdown tags in jinja context
187+ context ["git_page_authors" ] = page_authors
188+ context ["git_site_authors" ] = site_authors
189+
185190 # For backward compatibility, deprecate in 1.2
186191 context ["git_authors" ] = util .page_authors (authors , path )
192+ context ["git_authors_summary" ] = page_authors
187193
188194 return context
189195
0 commit comments