Add dropdown menu option for landing page
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>
|
||||
<a href="{{ .URL }}" {{ with .Params.class }}class="{{ . }}"{{ end }} {{ if not .Page }}target="_blank" rel="noopener"{{ end }}>
|
||||
{{ $local := or (.Page) (strings.HasPrefix .URL "/") }}
|
||||
<a href="{{ .URL }}" {{ with .Params.class }}class="{{ . }}"{{ end }} {{ if not $local }}target="_blank" rel="noopener"{{ end }}>
|
||||
{{- .Pre -}}
|
||||
{{ with .Page }}
|
||||
{{ partial "docs/title" .Page }}
|
||||
|
||||
@@ -9,5 +9,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ define "header" }}
|
||||
<nav>
|
||||
{{ partial "docs/menu-hugo" .Site.Menus.home }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user