Skip to content

Commit 67cbe6a

Browse files
authored
Show docs home link if page-attribute set (#309)
1 parent 3285aac commit 67cbe6a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

preview-src/docs-ndl.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:page-role: hub
44
:page-theme: docs
55
:page-hide-nav-title: true
6+
:!page-show-home-link:
67
:!toc:
78
:page-toclevels: -1
89

src/partials/nav-ndl.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
{{!-- add link back to home --}}
1111
{{!-- {{#unless page.home}} --}}
12-
{{!-- {{#if page.attributes.show-home-link}} --}}
12+
{{#if page.attributes.show-home-link}}
1313
<ul class="nav-list docs-home-link">
1414
<li class="nav-item home-link{{#if page.home}} is-home{{/if}}" data-depth="1" aria-label="home-link">
1515
{{#with site.homeUrl}}
1616
<a href="{{{relativize this}}}" aria-label="Go to docs home page">Docs home</a>
1717
{{/with}}
1818
</li>
1919
</ul>
20-
{{!-- {{/if}} --}}
20+
{{/if}}
2121
{{!-- {{/unless}} --}}
2222

2323
{{#if (ne @root.page.module 'ROOT')}}

0 commit comments

Comments
 (0)