Skip to content

Commit 396cf2e

Browse files
committed
add link to archive home from component menu on archive site
1 parent 6effa93 commit 396cf2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/partials/header-content.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
<label for="docs" class="navbar-dropper">Docs</label>
1616
<input id="docs" class="navbar-dropper" type="checkbox">
1717
<div class="navbar-dropdown explore">
18+
{{#with page.componentVersion.asciidoc.attributes.primary-site-url}}
19+
<div class="title"><a href="{{this}}">Couchbase Docs Home</a> | <a href="{{#with (and @root.site.url @root.site.homeUrl)}}{{@root.site.url}}{{this}}{{else}}{{@root.siteRootPath}}{{/with}}">Archive</a></div>
20+
{{else}}
1821
<div class="title"><a href="{{#with (and site.url site.homeUrl)}}{{@root.site.url}}{{this}}{{else}}{{siteRootPath}}{{/with}}">Couchbase Docs Home</a></div>
22+
{{/with}}
1923
<div class="cols">
2024
<ul>
2125
<li class="heading"><a href="{{relativize site.components.server.url}}">Server</a></li>

0 commit comments

Comments
 (0)