Skip to content

Commit 94a29bf

Browse files
committed
Make sure to include context in the metadata.
1 parent b4dca48 commit 94a29bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

coltrane/templatetags/coltrane_tags.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ def render(self, context):
8181

8282
(html, metadata) = render_markdown_path(template.origin.name)
8383

84+
for c in context:
85+
for key, value in c.items():
86+
if key not in metadata:
87+
metadata[key] = value
88+
8489
return render_html_with_django(html, metadata)
8590

8691

0 commit comments

Comments
 (0)