Disable collapsing top-level headline.
This commit is contained in:
parent
bcfd8b1d93
commit
fcd9854a17
@ -482,13 +482,16 @@ def render(headline, doc, headlineLevel):
|
||||
# display_state = 'expanded'
|
||||
display_state = 'expanded'
|
||||
|
||||
title = render_inline(headline.title, render_tag)
|
||||
|
||||
if headlineLevel > 0:
|
||||
title = f"<a href=\"javascript:toggle_expand('{html.escape(headline.id)}')\">{title}</a>"
|
||||
|
||||
return f"""
|
||||
<div id="{html.escape(headline.id)}" class="node {todo_state} {display_state}">
|
||||
<h1 class="title">
|
||||
{state}
|
||||
<a href=\"javascript:toggle_expand('{html.escape(headline.id)}')\">
|
||||
{render_inline(headline.title, render_tag)}
|
||||
</a>
|
||||
{title}
|
||||
{tags}
|
||||
</h1>
|
||||
<div class='contents'>
|
||||
|
Loading…
Reference in New Issue
Block a user