Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/schollz/onetwothree.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Scholl <zack.scholl@gmail.com>2017-11-03 12:46:05 +0300
committerZack Scholl <zack.scholl@gmail.com>2017-11-03 12:46:05 +0300
commit7a49b5a2cac87484beaa50bd99ac3e42e71a6a53 (patch)
tree0abd6a39e1f908fa6436eba958ad16ba74d8852d
parentb1aa0d5008435e96518979812560777c32021fb6 (diff)
Updat
-rwxr-xr-xlayouts/partials/header.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index edbb00f..da4a5f1 100755
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -29,10 +29,10 @@
<header>
<a href="/">/posts</a>
-{{ range .Site.RegularPages }}
- {{ if or (eq .Type "page") (eq .Type "about") }}
- &nbsp;&nbsp;·&nbsp;<a href="{{ .RelPermalink }}" style="color:black;">/{{ .Title | lower }}</a>
- {{ end }}
+{{ range $.Site.Params.navigation }}
+{{ with $.Site.GetPage "page" . }}
+&nbsp;&nbsp;·&nbsp;<a href="{{ lower .Permalink }}" style="color:black;">/{{ .Title }}</a>
+{{ end }}
{{ end }}
{{ if .Draft }}