From affd4ee0a2496d7d12b02591b2050cfab54da8c6 Mon Sep 17 00:00:00 2001 From: nodejh Date: Fri, 24 Mar 2017 18:06:46 +0800 Subject: [PATCH] modify url --- layouts/partials/nav.html | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 5101414..5635a62 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -3,18 +3,9 @@ {{ if not .IsHome }} {{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }} {{ end }} - - {{ if ne $url "post/" }} - {{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }} - {{ end }} - - {{ if ne $url "tags/" }} - {{ with .Site.Params.about }}{{ . }}{{ else }}Tags{{ end }} - {{ end }} - - {{ if ne $url "about/" }} - {{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }} - {{ end }} + {{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }} + {{ with .Site.Params.about }}{{ . }}{{ else }}Tags{{ end }} + {{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }} {{ range $key, $val := .Site.Params.Links }} {{ $key }}