Support postfix HTML in addition to prefix HTML for navbar items

See https://gohugo.io/variables/menus/
This commit is contained in:
George Cushen committed 2017-11-17 00:38:25 +00:00
1 parent eaccab614e
commit f850046dc6
1 file changed
+4 -1
+4 -1
View File
@@ -32,7 +32,9 @@
{{ if .HasChildren }}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">
{{ .Name }}
{{ .Pre }}
<span>{{ .Name }}</span>
{{ .Post }}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
@@ -41,6 +43,7 @@
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}>
{{ .Pre }}
<span>{{ .Name }}</span>
{{ .Post }}
</a>
</li>
{{ end }}