~tristan957/tristan.partin.io

ref: 66b97e94a0762bddb03d85414cc59b285066559f tristan.partin.io/layouts/partials/nav.html -rw-r--r-- 423 bytes
66b97e94Tristan Partin Pass context to nav.html 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
<header id="header">
	<nav id="nav">
		<ul class="undecorated-list">
			<li><a class="undecorated-link" href="/">Home</a></li>
			{{ with .Site.GetPage "blog" }}
				<li><a class="undecorated-link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
			{{ end }}
			{{ with .Site.GetPage "archives" }}
				<li><a class="undecorated-link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
			{{ end }}
		</ul>
	</nav>
</header>