Skip to content

Commit dc95e2d

Browse files
site: add Home button to primary nav (#21)
Add an explicit Home link as the first item in the primary nav so readers can return to the landing page in one click from any chapter depth. Matches the pattern used on the C++/Java patterns sites. Other nav options are unchanged.
1 parent 5174898 commit dc95e2d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎_includes/header.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<span>{{ site.title | default: "Tutorial" }}</span>
66
</a>
77
<nav class="site-nav" aria-label="Primary">
8+
<a href="{{ '/' | relative_url }}"
9+
{% if page.url == '/' %}aria-current="page"{% endif %}>Home</a>
810
<a href="{{ '/docs/00-index/' | relative_url }}"
911
{% if page.url == '/docs/00-index/' %}aria-current="page"{% endif %}>Contents</a>
1012
<a href="{{ '/docs/10-summary/' | relative_url }}"

0 commit comments

Comments
 (0)