Skip to content

Commit be450b6

Browse files
committed
Change default nav to be in same file as other nav data
1 parent ce55561 commit be450b6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
permalink: /404.html
44
---
55

6-
<h1><strong>404: Page not found</strong></h1>
6+
<h1>404: Page not found</h1>
77
<p>
88
If you typed the URL directly, check your spelling and capitalization. Our URLs look like this: <strong>https://guides.18f.gov/agile/introduction/.</strong>
99
</p>

_data/navigation.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ ux-guide:
110110
url: /ux-guide/research/
111111
- name: Design
112112
url: /ux-guide/design/
113+
114+
default:
115+
- name: 18F Guides home
116+
url: https://18f.gsa.gov/guides/

_data/site.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ dap:
1414
ga:
1515
ua: UA-48605964-19
1616

17-
# Site Navigation
18-
primary_navigation:
19-
- name: Home
20-
url: /
2117

2218
# secondary_navigation:
2319
# - name: Secondary link

_includes/layouts/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% if tags %}
1818
{% assign primary_navigation = navigation[tags] %}
1919
{% else %}
20-
{% assign primary_navigation = site.primary_navigation %}
20+
{% assign primary_navigation = navigation['default'] %}
2121
{% endif %}
2222

2323
{% include "menu.html" secondary_navigation: site.secondary_navigation %}

0 commit comments

Comments
 (0)