|
@ -1,6 +1,9 @@ |
|
|
<nav class="main-nav"> |
|
|
<nav class="main-nav"> |
|
|
<!-- TODO: Show link only if current page is NOT home --> |
|
|
<!-- TODO: Show link only if current page is NOT home --> |
|
|
|
|
|
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} |
|
|
|
|
|
{{ if ne $url "" }} |
|
|
<a href='{{ .Site.BaseURL }}'> <span class="arrow">←</span>Home</a> |
|
|
<a href='{{ .Site.BaseURL }}'> <span class="arrow">←</span>Home</a> |
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
<!-- TODO: If .PermaLink == /about then don't show this link --> |
|
|
<!-- TODO: If .PermaLink == /about then don't show this link --> |
|
|
<a href='{{ .Site.BaseURL }}about'>About</a> |
|
|
<a href='{{ .Site.BaseURL }}about'>About</a> |
|
|