1
0
mirror of https://github.com/labstack/echo.git synced 2025-02-03 13:11:39 +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" . }}
<body>
{{ partial "topnav.html" . }}
{{ partial "sidenav.html" . }}
<div class="w3-main w3-padding-64">
{{ partial "ad.html" }}
<div class="w3-row-padding">
<div class="w3-col m10 l10">
{{ partial "notice.html" }}
<article class="content">
<section>
<h1>{{ .Title }}</h1>
{{ .Content }}
</section>
<footer>
<div class="w3-panel w3-pale-blue w3-leftbar w3-border-blue">
<p>
<i class="fa fa-pencil" aria-hidden="true"></i>
<a href="https://github.com/labstack/echo/blob/master/website/content/{{ .File.Path }}">
Edit this page on GitHub
</a>
</p>
</div>
</footer>
</article>
</div>
</div>
</div>
{{ partial "footer.html" . }}
<div class="w3-container w3-content">
{{ partial "sidenav.html" . }}
<div class="w3-main">
{{ partial "ad.html" }}
<div class="w3-row-padding">
<div class="w3-col s12 m10 l10">
{{ partial "notice.html" }}
<article class="content">
<section>
<h1>{{ .Title }}</h1>
{{ .Content }}
</section>
<footer>
<div class="w3-panel w3-pale-blue w3-leftbar w3-border-blue">
<p>
<i class="fa fa-pencil" aria-hidden="true"></i>
<a href="https://github.com/labstack/echo/blob/master/website/content/{{ .File.Path }}">
Edit this page on GitHub
</a>
</p>
</div>
</footer>
</article>
</div>
</div>
{{ partial "footer.html" . }}
</div>
</div>
</body>
</html>

View File

@ -4,10 +4,10 @@
<div class="w3-hide-large">
{{ partial "sidenav.html" . }}
</div>
<div class="w3-container w3-content w3-padding-64">
{{ partial "ad.html" }}
<div class="w3-container w3-content w3-padding-128">
{{ partial "ad.html" }}
<div class="w3-row-padding">
<div class="w3-col m10 l10">
<div class="w3-col s12 m10 l10">
<div class="hero">
<h1>{{ .Site.Data.index.heading }}</h1>
<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>
<strong>Echo</strong> by <a href="https://labstack.com">LabStack</a> © 2016 LabStack. All Rights Reserved.
</p>
@ -29,5 +29,5 @@ docsearch({
});
</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>

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/prism.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">
<script>
(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>
Check out our new project <a href="https://github.com/labstack/armor">Armor</a>
</h3>
<p>
Uncomplicated HTTP server, supports HTTP/2 and auto TLS
</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()">
&times;
</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
</a>
</button>
{{ $currentNode := . }}
<div class="w3-hide-large menu">
{{ range .Site.Menus.main }}

View File

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