modify url

feature/cover-image
nodejh 8 years ago
parent 292ce9b450
commit affd4ee0a2

@ -3,18 +3,9 @@
{{ if not .IsHome }}
<a href='{{ .Site.BaseURL }}'> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
{{ end }}
{{ if ne $url "post/" }}
<a href='{{ .Site.BaseURL }}post'>{{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }}</a>
{{ end }}
{{ if ne $url "tags/" }}
<a href='{{ .Site.BaseURL }}tags'>{{ with .Site.Params.about }}{{ . }}{{ else }}Tags{{ end }}</a>
{{ end }}
{{ if ne $url "about/" }}
<a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
{{ end }}
{{ range $key, $val := .Site.Params.Links }}
<a href="{{ $val }}">{{ $key }}</a>

Loading…
Cancel
Save