Skip to content

Commit 6565332

Browse files
author
jordanmccullough
committed
Separate nav into include to avoid copy-paste
1 parent 3b3a015 commit 6565332

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

_includes/navigation.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<section class="colorful">
2+
<nav class="container">
3+
<hgroup>
4+
<a href="../">
5+
<span class="mega-octicon octicon-logo-github"></span>
6+
<span class="logo-training-materials"></span>
7+
</a>
8+
</hgroup>
9+
<ul>
10+
<li><a href="../">Materials</a></li>
11+
<li><a class="button" href="https://training.github.com">Join an Event</a></li>
12+
</ul>
13+
</nav>
14+
</section>

_layouts/bare.html

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,7 @@
2929
</head>
3030
<body>
3131
{% if page.path != "index.html" %}
32-
<section class="colorful">
33-
<nav class="container">
34-
<hgroup>
35-
<a href="../">
36-
<span class="mega-octicon octicon-logo-github"></span>
37-
<span class="logo-training-materials"></span>
38-
</a>
39-
</hgroup>
40-
<ul>
41-
<li><a href="../">Materials</a></li>
42-
<li><a class="button" href="https://training.github.com">Join an Event</a></li>
43-
</ul>
44-
</nav>
45-
</section>
32+
{% include navigation.html %}
4633
{% endif %}
4734

4835
{{ content }}

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: bare
33
---
44

5-
<section class="hero">
5+
<section class="hero colorful">
66
<div class="container">
77
<h1>{{ page.title }}</h1>
88
</div>

0 commit comments

Comments
 (0)