diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-27 17:11:38 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-27 17:11:38 +0530 |
commit | 47d598e7d01b4d44f3e06b71f9c9f755e3f62950 (patch) | |
tree | f1f39d3aa0091680bdfad75de4b79a4ab0f6af3a /layouts/partials | |
parent | f0458900f5cac8f0d9dde36bbb986ef89596b976 (diff) |
removed unnecessary whitespaces in header.html
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/header.html | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 0d8ac71..ed36354 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,28 +1,3 @@ <div id="site-header"> - <nav id="global-nav"> - {{ range .Site.Params.navLinks }} - {{ $path := index . 1 }} - <a href="{{ $path }}" - {{ if $.Params.navPath }} - {{ if ne $.Params.navPath "" }} - {{ $p := printf "/%s" $.Params.navPath | printf "%s" }} - - {{ if eq $path $p }} - id="nav-link-active" - {{ end }} - {{ end }} - {{ else }} - {{ if ne $.Section "" }} - {{ $p := printf "/%s" $.Section | printf "%s" }} - - {{ if eq $path $p }} - id="nav-link-active" - {{ end }} - {{ end }} - {{ end }} - > - {{ index . 0 }} - </a> - {{ end }} - </nav> + <nav id="global-nav">{{ range .Site.Params.navLinks }}{{ $path := index . 1 }}<a href="{{ $path }}"{{ if $.Params.navPath }}{{ if ne $.Params.navPath "" }}{{ $p := printf "/%s" $.Params.navPath | printf "%s" }}{{ if eq $path $p }} id="nav-link-active"{{ end }}{{ end }}{{ else }}{{ if ne $.Section "" }}{{ $p := printf "/%s" $.Section | printf "%s" }}{{ if eq $path $p }} id="nav-link-active"{{ end }}{{ end }}{{ end }}>{{ index . 0 }}</a>{{ end }}</nav> </div> |