Skip to content

Commit ff8a3bd

Browse files
committed
docs: updated
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 8d504c1 commit ff8a3bd

File tree

9 files changed

+66
-66
lines changed

9 files changed

+66
-66
lines changed

website/config.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

website/config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
baseurl = "https://echo.labstack.com"
2+
languageCode = "en-us"
3+
title = "Echo - High performance, minimalist Go web framework"
4+
canonifyurls = true
5+
googleAnalytics = "UA-85059636-2"
6+
[permalinks]
7+
guide = "/guide/:filename"
8+
middleware = "/middleware/:filename"
9+
recipes = "/recipes/:filename"
10+
[params]
11+
description = "Echo is a high performance, extensible, minimalist web framework for Go (Golang)."
Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
{{ partial "head.html" . }}
22
<body>
33
{{ partial "topnav.html" . }}
4-
{{ partial "sidenav.html" . }}
5-
<div class="w3-main w3-padding-64">
6-
{{ partial "ad.html" }}
7-
<div class="w3-row-padding">
8-
<div class="w3-col m10 l10">
9-
{{ partial "notice.html" }}
10-
<article class="content">
11-
<section>
12-
<h1>{{ .Title }}</h1>
13-
{{ .Content }}
14-
</section>
15-
<footer>
16-
<div class="w3-panel w3-pale-blue w3-leftbar w3-border-blue">
17-
<p>
18-
<i class="fa fa-pencil" aria-hidden="true"></i>
19-
<a href="https://github.com/labstack/echo/blob/master/website/content/{{ .File.Path }}">
20-
Edit this page on GitHub
21-
</a>
22-
</p>
23-
</div>
24-
</footer>
25-
</article>
26-
</div>
27-
</div>
28-
</div>
29-
{{ partial "footer.html" . }}
4+
<div class="w3-container w3-content">
5+
{{ partial "sidenav.html" . }}
6+
<div class="w3-main">
7+
{{ partial "ad.html" }}
8+
<div class="w3-row-padding">
9+
<div class="w3-col s12 m10 l10">
10+
{{ partial "notice.html" }}
11+
<article class="content">
12+
<section>
13+
<h1>{{ .Title }}</h1>
14+
{{ .Content }}
15+
</section>
16+
<footer>
17+
<div class="w3-panel w3-pale-blue w3-leftbar w3-border-blue">
18+
<p>
19+
<i class="fa fa-pencil" aria-hidden="true"></i>
20+
<a href="https://github.com/labstack/echo/blob/master/website/content/{{ .File.Path }}">
21+
Edit this page on GitHub
22+
</a>
23+
</p>
24+
</div>
25+
</footer>
26+
</article>
27+
</div>
28+
</div>
29+
{{ partial "footer.html" . }}
30+
</div>
31+
</div>
3032
</body>
3133
</html>

website/layouts/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<div class="w3-hide-large">
55
{{ partial "sidenav.html" . }}
66
</div>
7-
<div class="w3-container w3-content w3-padding-64">
8-
{{ partial "ad.html" }}
7+
<div class="w3-container w3-content w3-padding-128">
8+
{{ partial "ad.html" }}
99
<div class="w3-row-padding">
10-
<div class="w3-col m10 l10">
10+
<div class="w3-col s12 m10 l10">
1111
<div class="hero">
1212
<h1>{{ .Site.Data.index.heading }}</h1>
1313
<h2>{{ .Site.Data.index.description }}</h2>

website/layouts/partials/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<footer class="w3-container w3-padding-48 w3-center footer">
1+
<footer class="w3-container w3-content w3-padding-48 w3-center footer">
22
<p>
33
<strong>Echo</strong> by <a href="https://labstack.com">LabStack</a> © 2016 LabStack. All Rights Reserved.
44
</p>
@@ -29,5 +29,5 @@
2929
});
3030
</script>
3131
<script src="https://cdn.labstack.com/scripts/prism.js"></script>
32-
<script src="https://cdn.labstack.com/scripts/doc.js"></script>
32+
<script src="https://cdn.labstack.com/scripts/docs.js"></script>
3333
<script src="/scripts/main.js"></script>

website/layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<link rel="stylesheet" href="https://cdn.labstack.com/styles/w3.css">
2424
<link rel="stylesheet" href="https://cdn.labstack.com/styles/prism.css">
2525
<link rel="stylesheet" href="https://cdn.labstack.com/styles/base.css">
26-
<link rel="stylesheet" href="https://cdn.labstack.com/styles/doc.css">
26+
<link rel="stylesheet" href="https://cdn.labstack.com/styles/docs.css">
2727
<link rel="stylesheet" href="/styles/main.css">
2828
<script>
2929
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<div class="w3-panel w3-pale-red w3-leftbar w3-border-red">
1+
<!--<div class="w3-panel w3-pale-red w3-leftbar w3-border-red">
22
<h3>
33
Check out our new project <a href="https://github.com/labstack/armor">Armor</a>
44
</h3>
55
<p>
66
Uncomplicated HTTP server, supports HTTP/2 and auto TLS
77
</p>
8-
</div>
8+
</div>-->

website/layouts/partials/sidenav.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<nav id="sidenav" class="w3-sidenav w3-collapse w3-card-2">
1+
<nav id="sidenav" class="w3-sidenav w3-collapse w3-border-right">
22
<span class="w3-closenav w3-xxlarge w3-hide-large" onclick="closeSidenav()">
33
&times;
44
</span>
5-
<a class="w3-btn w3-white w3-border w3-border-theme w3-round-xlarge support-us" href="/support-echo">
5+
<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
7-
</a>
7+
</button>
88
{{ $currentNode := . }}
99
<div class="w3-hide-large menu">
1010
{{ range .Site.Menus.main }}
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
<nav class="topnav">
2-
<a href="/"><img class="logo" src="/images/logo.png" alt="Echo"></a>
3-
<span class="w3-hide-small">
4-
<input id="search-box" type="text" class="w3-input" placeholder="Search...">
5-
<i class="fa fa-search"></i>
6-
</span>
7-
<span class="w3-hide-small w3-hide-medium menu">
8-
{{ $currentNode := . }}
9-
{{ range .Site.Menus.main }}
10-
<a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">{{ .Name }}</a>
11-
{{ end }}
12-
</span>
13-
<span class="w3-xxlarge w3-hide-large" onclick="openSidenav()">&#9776;</span>
14-
</nav>
1+
<div class="topnav">
2+
<nav class="w3-content">
3+
<a href="/"><img class="logo" src="/images/logo.png" alt="Echo"></a>
4+
<span class="w3-hide-small">
5+
<input id="search-box" type="text" class="w3-input" placeholder="Search...">
6+
<i class="fa fa-search"></i>
7+
</span>
8+
<span class="w3-hide-small w3-hide-medium menu">
9+
{{ $currentNode := . }}
10+
{{ range .Site.Menus.main }}
11+
<a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">{{ .Name }}</a>
12+
{{ end }}
13+
</span>
14+
<span class="w3-xxlarge w3-hide-large" onclick="openSidenav()">&#9776;</span>
15+
</nav>
16+
</div>

0 commit comments

Comments
 (0)