Remove resume from site menu and sort blog first
This commit is contained in:
parent
71ffafcff5
commit
dca0f2e7e5
2 changed files with 6 additions and 9 deletions
|
@ -29,10 +29,7 @@ name = 'Eryn Wells'
|
|||
identifier = 'blog'
|
||||
name = 'Blog'
|
||||
url = '/blog/'
|
||||
[[menu.main]]
|
||||
identifier = 'resume'
|
||||
name = 'Résumé'
|
||||
url = '/resume/'
|
||||
weight = 10
|
||||
[[menu.main]]
|
||||
identifier = 'about'
|
||||
name = 'About'
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
{{ $url := .RelPermalink }}
|
||||
{{ with site.Menus.main }}
|
||||
<nav class="site bulleted">
|
||||
{{ range . }}
|
||||
{{ if eq .URL $url }}
|
||||
{{- range . -}}
|
||||
{{- if eq .URL $url -}}
|
||||
<li class="active"><span>{{ .Name }}</span></li>
|
||||
{{ else }}
|
||||
{{- else -}}
|
||||
<li><a href="{{ .URL }}"><span>{{ .Name }}</span></a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue