Commit 7d956e0b authored by danterolle's avatar danterolle
Browse files

Added active element, removed home button + fix on download.md

parent 464eb24f
Pipeline #2094 failed with stage
---
title: "Parrot OS Dowload Home Edition"
title: "Parrot OS Download Home Edition"
date: 2020-03-15T16:47:40+01:00
layout: "download"
---
......
---
title: "Parrot OS Dowload Other Editions"
title: "Parrot OS Download Other Editions"
date: 2020-03-15T16:47:40+01:00
layout: "download"
---
......
---
title: "Parrot OS Dowload Security Edition"
title: "Parrot OS Download Security Edition"
date: 2020-03-15T16:47:40+01:00
layout: "download"
---
......
---
title: "Parrot OS Dowload Home Edition"
title: "Parrot OS Download Home Edition"
date: 2020-03-15T16:47:40+01:00
layout: "download"
---
......
......@@ -15,19 +15,24 @@
<div class="collapse navbar-collapse" id="navigation">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="/">{{ .Site.Params.home }}</a></li>
<!-- Home button
<li class="nav-item"><a class="nav-link" href="/">{{ .Site.Params.home }}</a></li>
-->
{{ if .IsHome }}
{{ range .Site.Menus.main }}
<li class="nav-item"><a class="nav-link" href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
{{ else }}
{{ $current := . }}
{{ range .Site.Menus.main }}
{{ if hasPrefix .URL "http" }}
<li class="nav-item"><a class="nav-link" href="{{ .URL }}">{{ .Name }}</a>
{{ else }}
<li class="nav-item"><a class="nav-link" href="{{ $.Site.BaseURL | relLangURL }}{{ .URL }}">{{ .Name }}</a>
{{ $active := or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) }}
{{ $active := in $current.RelPermalink .URL }}
<li class="nav-item"><a class="nav-link {{ if $active }}active{{ end }}" href="{{ $.Site.BaseURL | relLangURL }}{{ .URL }}">{{ .Name }}</a>
{{ end }}
</li>
{{ end }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment