File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff 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
3636code. 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
Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff line change 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 ×
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 >
Original file line number Diff line number Diff line change 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() "> ☰</ span >
14+ < span class ="w3-xxlarge hide-large " onclick ="openSidenav() "> ☰</ span >
1515 </ nav >
1616</ div >
You can’t perform that action at this time.
0 commit comments