Skip to content

Commit 061e53e

Browse files
committed
update edit button logic to be compatible with Antora 2
1 parent 76d4a9f commit 061e53e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partials/toolbar.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</ul>
77
</div>
88
{{else}}
9-
{{#unless (includes page.origin.url '@')}}
9+
{{#unless (or page.origin.private (includes page.origin.url '@'))}}
1010
<div class="tools" role="navigation">
1111
<ul>
1212
<li class="tool edit"><a href="{{{page.editUrl}}}" title="Edit Page" target="_blank" rel="noopener">Edit</a></li>

0 commit comments

Comments
 (0)