Skip to content

Commit 561f15c

Browse files
committed
docs: updated
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent fa280ce commit 561f15c

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

website/content/guide/response.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func(c echo.Context) error {
3535
`Context#HTMLBlob(code int, b []byte)` can be used to send HTML blob with status
3636
code. You may find it handy using with a template engine which outputs `[]byte`.
3737

38+
## Render Template
39+
40+
[Learn more](/guide/templates)
41+
3842
## Send JSON
3943

4044
`Context#JSON(code int, i interface{})` can be used to encode a provided Go type into

website/layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ partial "head.html" . }}
22
<body class="index">
33
{{ partial "topnav.html" . }}
4-
<div class="w3-hide-large">
4+
<div class="hide-large">
55
{{ partial "sidenav.html" . }}
66
</div>
77
<div class="w3-container w3-content main">

website/layouts/partials/sidenav.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<nav id="sidenav" class="w3-sidenav w3-collapse w3-border-right">
2-
<span class="w3-closenav w3-xxlarge w3-hide-large" onclick="closeSidenav()">
1+
<nav id="sidenav" class="w3-sidenav w3-border-right collapse">
2+
<span class="w3-closenav w3-xxlarge hide-large" onclick="closeSidenav()">
33
&times;
44
</span>
55
<button class="w3-btn w3-white w3-border w3-border-theme w3-round-xlarge" onclick="location.href='/support-echo';">
66
<i class="fa fa-heart" aria-hidden="true"></i> Support Echo
77
</button>
88
{{ $currentNode := . }}
9-
<div class="w3-hide-large menu">
9+
<div class="menu hide-large">
1010
{{ range .Site.Menus.main }}
1111
<a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">
1212
<div class="w3-xlarge w3-padding-top">{{ .Name }}</div>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<div class="topnav">
22
<nav class="w3-content">
33
<a href="/"><img class="logo" src="/images/logo.png" alt="Echo"></a>
4-
<span class="w3-hide-small">
4+
<span class="hide-small">
55
<input id="search-box" type="text" class="w3-input" placeholder="Search...">
66
<i class="fa fa-search"></i>
77
</span>
8-
<span class="w3-hide-small w3-hide-medium menu">
8+
<span class="menu hide-small hide-medium">
99
{{ $currentNode := . }}
1010
{{ range .Site.Menus.main }}
1111
<a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">{{ .Name }}</a>
1212
{{ end }}
1313
</span>
14-
<span class="w3-xxlarge w3-hide-large" onclick="openSidenav()">&#9776;</span>
14+
<span class="w3-xxlarge hide-large" onclick="openSidenav()">&#9776;</span>
1515
</nav>
1616
</div>

0 commit comments

Comments
 (0)