Skip to content

Commit

Permalink
docs: updated
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Dec 5, 2016
1 parent 8d504c1 commit ff8a3bd
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 66 deletions.
15 changes: 0 additions & 15 deletions website/config.json

This file was deleted.

11 changes: 11 additions & 0 deletions website/config.toml
Original file line number Diff line number Diff line change
@@ -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)."
54 changes: 28 additions & 26 deletions website/layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -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>
6 changes: 3 additions & 3 deletions website/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -29,5 +29,5 @@
});
</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>
2 changes: 1 addition & 1 deletion website/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/partials/notice.html
Original file line number Diff line number Diff line change
@@ -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>-->
6 changes: 3 additions & 3 deletions website/layouts/partials/sidenav.html
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
30 changes: 16 additions & 14 deletions website/layouts/partials/topnav.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit ff8a3bd

Please sign in to comment.