Skip to content

Commit 6cf81f2

Browse files
committed
Use page.vars for get_template_name
1 parent b31adda commit 6cf81f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt-pages/bolt/pages/pages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def content_type(self):
6262
return extension.lstrip(".")
6363

6464
def get_template_name(self):
65-
if template_name := self._frontmatter.metadata.get("template_name"):
65+
if template_name := self.vars.get("template_name"):
6666
return template_name
6767

6868
return f"{self.content_type}.html"

0 commit comments

Comments
 (0)