mirror of
https://github.com/labstack/echo.git
synced 2025-02-09 13:36:57 +02:00
Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
4256489c0e
commit
1049c9613c
@ -3,25 +3,25 @@
|
||||
<button class="w3-btn w3-white w3-border w3-border-theme w3-round-xlarge" onclick="location.href='/support-echo';">
|
||||
<i class="fa fa-heart" aria-hidden="true"></i> Support Echo
|
||||
</button>
|
||||
</div>
|
||||
{{ $currentNode := . }}
|
||||
<div class="menu">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="sub-menu">
|
||||
{{ if .IsPage }}
|
||||
{{ range where .Site.Menus.main "Identifier" .Type }}
|
||||
<h3>{{ .Pre }} {{ .Name }}</h3>
|
||||
{{ range .Children }}
|
||||
<a{{ if $currentNode.IsMenuCurrent "main" . }} class="active"{{ end }} href="{{ .URL }}">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
{{ $currentNode := . }}
|
||||
<div class="menu">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="sub-menu">
|
||||
{{ if .IsPage }}
|
||||
{{ range where .Site.Menus.main "Identifier" .Type }}
|
||||
<h3>{{ .Pre }} {{ .Name }}</h3>
|
||||
{{ range .Children }}
|
||||
<a{{ if $currentNode.IsMenuCurrent "main" . }} class="active"{{ end }} href="{{ .URL }}">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
@ -1,16 +0,0 @@
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
{{ partial "topnav.html" . }}
|
||||
<div class="w3-content">
|
||||
<div class="main">
|
||||
<div class="w3-row-padding">
|
||||
<div class="w3-col s12 m10 l10">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user