diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ea09b25..92974e5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,6 +3,7 @@ {{- range .Site.Menus.footer }} + {{ with .Pre }}{{ . }}{{ end }} {{- if .URL }} {{ .Name }} @@ -10,6 +11,7 @@ {{ .Name }} {{- end }} + {{ with .Post }}{{ . }}{{ end }} {{- end }} {{- with .Site.Home.OutputFormats.Get "RSS" }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 446dab8..7486282 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,13 +8,15 @@ {{- $curr := . }} {{- range .Site.Menus.main }} - {{- if .URL }} + {{ with .Pre }}{{ . }}{{ end }} + {{- if .URL }} {{ .Name }} + {{- else }} + {{ .Name }} + {{- end }} - {{- else }} - {{ .Name }} - {{- end }} + {{ with .Post }}{{ . }}{{ end }} {{- end }}