Skip to content
Permalink
Browse files
Aliased header to page.meta to match mk_docs namespace
  • Loading branch information
digehode committed Sep 3, 2020
1 parent fa02dc2 commit 319d8bee9a940753a55540d4ee08dddce4287f47
Showing 1 changed file with 4 additions and 2 deletions.
@@ -134,9 +134,11 @@ class HTMLRenderer(Renderer):

calcs = {"marksAwarded": totalAwarded,
"marksPossible": totalPossible}

page={"meta":header} # Alias header info to match mk_docs reference to page variables in the "page.meta" namesapce
out = self.template.render({"content":sections,
"header": header,
"order": theParser.sectionOrder,
"calcs": calcs})
"calcs": calcs,
"page": page
})
return out

0 comments on commit 319d8be

Please sign in to comment.