diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 129a453..0f0d2c7 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -11,9 +11,16 @@
{{- $currentNode := . }}
{{- range sort .Site.Menus.main }}
- {{- if .Name }}
- - {{ if or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .) }}{{ .Name }}{{ else }}{{ .Name }}{{ end }}
- {{- end }}
+ {{- $current := (or ($currentNode.IsMenuCurrent "main" .) ($currentNode.HasMenuCurrent "main" .)) }}
+ {{- if .Name }}
+ -
+ {{ if not $current }}{{ end }}
+ {{ .Pre }}
+ {{ .Name }}
+ {{ .Post }}
+ {{ if not $current }}{{ end }}
+
+ {{- end }}
{{- end }}