1
0
mirror of https://github.com/labstack/echo.git synced 2025-02-09 13:36:57 +02:00

docs: updated

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-12-04 19:20:08 -08:00
parent 8d504c1b69
commit ff8a3bdc94
9 changed files with 66 additions and 66 deletions

View File

@ -1,15 +0,0 @@
{
"baseurl": "https://echo.labstack.com",
"languageCode": "en-us",
"title": "Echo - High performance, minimalist Go web framework",
"canonifyurls": true,
"googleAnalytics": "UA-85059636-2",
"permalinks": {
"guide": "/guide/:filename",
"middleware": "/middleware/:filename",
"recipes": "/recipes/:filename"
},
"params": {
"description": "Echo is a high performance, extensible, minimalist web framework for Go (Golang)."
}
}

11
website/config.toml Normal file
View File

@ -0,0 +1,11 @@
baseurl = "https://echo.labstack.com"
languageCode = "en-us"
title = "Echo - High performance, minimalist Go web framework"
canonifyurls = true
googleAnalytics = "UA-85059636-2"
[permalinks]
guide = "/guide/:filename"
middleware = "/middleware/:filename"
recipes = "/recipes/:filename"
[params]
description = "Echo is a high performance, extensible, minimalist web framework for Go (Golang)."

View File

@ -1,31 +1,33 @@
{{ partial "head.html" . }} {{ partial "head.html" . }}
<body> <body>
{{ partial "topnav.html" . }} {{ partial "topnav.html" . }}
{{ partial "sidenav.html" . }} <div class="w3-container w3-content">
<div class="w3-main w3-padding-64"> {{ partial "sidenav.html" . }}
{{ partial "ad.html" }} <div class="w3-main">
<div class="w3-row-padding"> {{ partial "ad.html" }}
<div class="w3-col m10 l10"> <div class="w3-row-padding">
{{ partial "notice.html" }} <div class="w3-col s12 m10 l10">
<article class="content"> {{ partial "notice.html" }}
<section> <article class="content">
<h1>{{ .Title }}</h1> <section>
{{ .Content }} <h1>{{ .Title }}</h1>
</section> {{ .Content }}
<footer> </section>
<div class="w3-panel w3-pale-blue w3-leftbar w3-border-blue"> <footer>
<p> <div class="w3-panel w3-pale-blue w3-leftbar w3-border-blue">
<i class="fa fa-pencil" aria-hidden="true"></i> <p>
<a href="https://github.com/labstack/echo/blob/master/website/content/{{ .File.Path }}"> <i class="fa fa-pencil" aria-hidden="true"></i>
Edit this page on GitHub <a href="https://github.com/labstack/echo/blob/master/website/content/{{ .File.Path }}">
</a> Edit this page on GitHub
</p> </a>
</div> </p>
</footer> </div>
</article> </footer>
</div> </article>
</div> </div>
</div> </div>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
</div>
</div>
</body> </body>
</html> </html>

View File

@ -4,10 +4,10 @@
<div class="w3-hide-large"> <div class="w3-hide-large">
{{ partial "sidenav.html" . }} {{ partial "sidenav.html" . }}
</div> </div>
<div class="w3-container w3-content w3-padding-64"> <div class="w3-container w3-content w3-padding-128">
{{ partial "ad.html" }} {{ partial "ad.html" }}
<div class="w3-row-padding"> <div class="w3-row-padding">
<div class="w3-col m10 l10"> <div class="w3-col s12 m10 l10">
<div class="hero"> <div class="hero">
<h1>{{ .Site.Data.index.heading }}</h1> <h1>{{ .Site.Data.index.heading }}</h1>
<h2>{{ .Site.Data.index.description }}</h2> <h2>{{ .Site.Data.index.description }}</h2>

View File

@ -1,4 +1,4 @@
<footer class="w3-container w3-padding-48 w3-center footer"> <footer class="w3-container w3-content w3-padding-48 w3-center footer">
<p> <p>
<strong>Echo</strong> by <a href="https://labstack.com">LabStack</a> © 2016 LabStack. All Rights Reserved. <strong>Echo</strong> by <a href="https://labstack.com">LabStack</a> © 2016 LabStack. All Rights Reserved.
</p> </p>
@ -29,5 +29,5 @@ docsearch({
}); });
</script> </script>
<script src="https://cdn.labstack.com/scripts/prism.js"></script> <script src="https://cdn.labstack.com/scripts/prism.js"></script>
<script src="https://cdn.labstack.com/scripts/doc.js"></script> <script src="https://cdn.labstack.com/scripts/docs.js"></script>
<script src="/scripts/main.js"></script> <script src="/scripts/main.js"></script>

View File

@ -23,7 +23,7 @@
<link rel="stylesheet" href="https://cdn.labstack.com/styles/w3.css"> <link rel="stylesheet" href="https://cdn.labstack.com/styles/w3.css">
<link rel="stylesheet" href="https://cdn.labstack.com/styles/prism.css"> <link rel="stylesheet" href="https://cdn.labstack.com/styles/prism.css">
<link rel="stylesheet" href="https://cdn.labstack.com/styles/base.css"> <link rel="stylesheet" href="https://cdn.labstack.com/styles/base.css">
<link rel="stylesheet" href="https://cdn.labstack.com/styles/doc.css"> <link rel="stylesheet" href="https://cdn.labstack.com/styles/docs.css">
<link rel="stylesheet" href="/styles/main.css"> <link rel="stylesheet" href="/styles/main.css">
<script> <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

View File

@ -1,8 +1,8 @@
<div class="w3-panel w3-pale-red w3-leftbar w3-border-red"> <!--<div class="w3-panel w3-pale-red w3-leftbar w3-border-red">
<h3> <h3>
Check out our new project <a href="https://github.com/labstack/armor">Armor</a> Check out our new project <a href="https://github.com/labstack/armor">Armor</a>
</h3> </h3>
<p> <p>
Uncomplicated HTTP server, supports HTTP/2 and auto TLS Uncomplicated HTTP server, supports HTTP/2 and auto TLS
</p> </p>
</div> </div>-->

View File

@ -1,10 +1,10 @@
<nav id="sidenav" class="w3-sidenav w3-collapse w3-card-2"> <nav id="sidenav" class="w3-sidenav w3-collapse w3-border-right">
<span class="w3-closenav w3-xxlarge w3-hide-large" onclick="closeSidenav()"> <span class="w3-closenav w3-xxlarge w3-hide-large" onclick="closeSidenav()">
&times; &times;
</span> </span>
<a class="w3-btn w3-white w3-border w3-border-theme w3-round-xlarge support-us" href="/support-echo"> <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 <i class="fa fa-heart" aria-hidden="true"></i> Support Echo
</a> </button>
{{ $currentNode := . }} {{ $currentNode := . }}
<div class="w3-hide-large menu"> <div class="w3-hide-large menu">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}

View File

@ -1,14 +1,16 @@
<nav class="topnav"> <div class="topnav">
<a href="/"><img class="logo" src="/images/logo.png" alt="Echo"></a> <nav class="w3-content">
<span class="w3-hide-small"> <a href="/"><img class="logo" src="/images/logo.png" alt="Echo"></a>
<input id="search-box" type="text" class="w3-input" placeholder="Search..."> <span class="w3-hide-small">
<i class="fa fa-search"></i> <input id="search-box" type="text" class="w3-input" placeholder="Search...">
</span> <i class="fa fa-search"></i>
<span class="w3-hide-small w3-hide-medium menu"> </span>
{{ $currentNode := . }} <span class="w3-hide-small w3-hide-medium menu">
{{ range .Site.Menus.main }} {{ $currentNode := . }}
<a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">{{ .Name }}</a> {{ range .Site.Menus.main }}
{{ end }} <a{{ if or ($currentNode.HasMenuCurrent "main" .) ($currentNode.IsMenuCurrent "main" .) }} class="active"{{ end }} href="{{ .URL }}">{{ .Name }}</a>
</span> {{ end }}
<span class="w3-xxlarge w3-hide-large" onclick="openSidenav()">&#9776;</span> </span>
</nav> <span class="w3-xxlarge w3-hide-large" onclick="openSidenav()">&#9776;</span>
</nav>
</div>