Skip to content

Commit 77a49f3

Browse files
committed
fix: Fix {{ _doc.title }}
1 parent 7f0100d commit 77a49f3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/sphinxnotes/render/utils/ctxproxy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def _top_section(self) -> Section:
119119
assert section
120120
return Section(section)
121121

122+
@proxy_property
123+
def title(self) -> Node | None:
124+
return self._top_section().title
125+
122126
@proxy_property
123127
def sections(self) -> tuple[Section, ...]:
124128
return self._top_section().sections

0 commit comments

Comments
 (0)