mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 13:05:52 -04:00
Add missing closing tags for li in menu template example
Also: - "blank" -> "_blank" in target - Re-indent whole snippet for consistency - Do "{{ foo }}" instead of "{{foo}}" for consistency
This commit is contained in:
parent
f462b620f3
commit
000fed94e4
@ -37,10 +37,12 @@ The following is an example:
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
<ul class="sub-menu">
|
||||
{{ range .Children }}
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ else }}
|
||||
@ -49,12 +51,15 @@ The following is an example:
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<li>
|
||||
<a href="#" target="blank">Hardcoded Link 1</a>
|
||||
<a href="#" target="_blank">Hardcoded Link 1</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" target="blank">Hardcoded Link 2</a>
|
||||
<a href="#" target="_blank">Hardcoded Link 2</a>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
{{< /code >}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user