Skip to content

Commit

Permalink
fix broken position indicator in navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakrecoer committed May 7, 2024
1 parent 55c6b4e commit 2471697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
- name: "About"
URL: "about"
URL: "about/"
icon: ''
external: false
- name: "Download"
URL: "download"
URL: "download/"
icon: ''
external: false
- name: "Docs"
URL: "https://github.com/dyne/dowse/wiki"
icon: ''
external: true
- name: "Community"
URL: "community"
URL: "community/"
icon: ''
external: false
---
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{ range .Site.Data.navigation }}

{{ if eq .external false }}
<li><a href="{{ .URL | relURL }}" onclick="removeBlur()" class="{{ if eq .URL $.Page.RelPermalink }}current{{ end }} button">{{ .icon }} {{ .name }}</a></li>
<li><a href="{{ .URL | relURL }}" onclick="removeBlur()" class="{{ if eq ( .URL | relURL) $.Page.RelPermalink }}current{{ end }} button">{{ .icon }} {{ .name }}</a></li>
{{ else }}
<li><a href="{{ .URL }}" target="_blank" rel="noopener" onclick="removeBlur()" class="button">{{ .icon }} {{ .name }}</a></li>
{{ end }}
Expand Down

0 comments on commit 2471697

Please sign in to comment.