Remove resume from site menu and sort blog first

This commit is contained in:
Eryn Wells 2022-10-09 13:33:01 -07:00
parent 71ffafcff5
commit dca0f2e7e5
2 changed files with 6 additions and 9 deletions

View file

@ -29,10 +29,7 @@ name = 'Eryn Wells'
identifier = 'blog' identifier = 'blog'
name = 'Blog' name = 'Blog'
url = '/blog/' url = '/blog/'
[[menu.main]] weight = 10
identifier = 'resume'
name = 'Résumé'
url = '/resume/'
[[menu.main]] [[menu.main]]
identifier = 'about' identifier = 'about'
name = 'About' name = 'About'

View file

@ -8,13 +8,13 @@
{{ $url := .RelPermalink }} {{ $url := .RelPermalink }}
{{ with site.Menus.main }} {{ with site.Menus.main }}
<nav class="site bulleted"> <nav class="site bulleted">
{{ range . }} {{- range . -}}
{{ if eq .URL $url }} {{- if eq .URL $url -}}
<li class="active"><span>{{ .Name }}</span></li> <li class="active"><span>{{ .Name }}</span></li>
{{ else }} {{- else -}}
<li><a href="{{ .URL }}"><span>{{ .Name }}</span></a></li> <li><a href="{{ .URL }}"><span>{{ .Name }}</span></a></li>
{{ end }} {{- end -}}
{{ end }} {{- end -}}
</nav> </nav>
{{ end }} {{ end }}