Browse Source

Added nav.html partial

master
digitalcraftsman 10 years ago
parent
commit
570f2e05d8
  1. 2
      layouts/_default/single.html
  2. 5
      layouts/index.html
  3. 9
      layouts/partials/nav.html

2
layouts/_default/single.html

@ -4,6 +4,8 @@
{{ partial "head.html" . }}
</head>
<body>
{{ partial "nav.html" . }}
<section id="wrapper">
<article class="post">
<header>

5
layouts/index.html

@ -4,10 +4,7 @@
{{ partial "head.html" . }}
</head>
<body>
<nav class="main-nav">
<a href='/about'>About </a>
<a class="cta" href="/feed.xml">Subscribe</a>
</nav>
{{ partial "nav.html" . }}
{{ partial "profile.html" . }}

9
layouts/partials/nav.html

@ -0,0 +1,9 @@
<nav class="main-nav">
<!-- TODO: Show link only if current page is NOT home -->
<a href='{{ .Site.BaseURL }}'> <span class="arrow"></span>Home</a>
<!-- TODO: If .PermaLink == /about then don't show this link -->
<a href='{{ .Site.BaseURL }}about'>About</a>
<!-- TODO: Add link to RSS feed -->
<a class="cta" href="{{ .Site.BaseURL }}feed.xml">Subscribe</a>
</nav>
Loading…
Cancel
Save