projects
/
kengrimes.com
/
theme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
63c153f
)
selected svg classifies anchor
author
ken
<ken@mihrtec.com>
Sat, 31 Mar 2018 15:02:47 +0000
(08:02 -0700)
committer
ken
<ken@mihrtec.com>
Sat, 31 Mar 2018 15:02:47 +0000
(08:02 -0700)
layouts/_default/baseof.html
patch
|
blob
|
history
diff --git
a/layouts/_default/baseof.html
b/layouts/_default/baseof.html
index
fd0db39
..
688b2a7
100644
(file)
--- a/
layouts/_default/baseof.html
+++ b/
layouts/_default/baseof.html
@@
-23,10
+23,7
@@
<nav>
{{- $pg := . }}
{{- range union (where .Site.Menus.main "Weight" 0).Reverse (where .Site.Menus.main "Weight" "!=" 0) }}
<nav>
{{- $pg := . }}
{{- range union (where .Site.Menus.main "Weight" 0).Reverse (where .Site.Menus.main "Weight" "!=" 0) }}
- {{- if or ($pg.IsMenuCurrent "main" .) ($pg.HasMenuCurrent "main" .) }}
- <svg class="selected"><use xlink:href="{{ relURL `/img/nav.svg` }}#{{ .Name }}"/></svg>
- {{- else }}
- <a href="{{ .URL }}">
+ <a href="{{ .URL }}"{{- if or ($pg.IsMenuCurrent "main" .) ($pg.HasMenuCurrent "main" .) }} class="selected"{{ end }}>
<summary>{{ .Name }}</summary>
<svg><use xlink:href="{{ relURL `/img/nav.svg` }}#{{ .Name }}"/></svg>
</a>
<summary>{{ .Name }}</summary>
<svg><use xlink:href="{{ relURL `/img/nav.svg` }}#{{ .Name }}"/></svg>
</a>