mirror of
https://github.com/labstack/echo.git
synced 2025-01-07 23:01:56 +02:00
updated website
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
4c78b7122b
commit
c23123f5b1
@ -1,4 +1,4 @@
|
|||||||
# [Echo](http://labstack.com/echo) [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/labstack/echo) [![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/labstack/echo/master/LICENSE) [![Build Status](http://img.shields.io/travis/labstack/echo.svg?style=flat-square)](https://travis-ci.org/labstack/echo) [![Coverage Status](http://img.shields.io/coveralls/labstack/echo.svg?style=flat-square)](https://coveralls.io/r/labstack/echo) [![Join the chat at https://gitter.im/labstack/echo](https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg?style=flat-square)](https://gitter.im/labstack/echo) [![Twitter](https://img.shields.io/badge/twitter-@labstack-55acee.svg?style=flat-square)](https://twitter.com/labstack)
|
# [Echo v2](http://echo.labstack.com/v2) [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/labstack/echo) [![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/labstack/echo/master/LICENSE) [![Build Status](http://img.shields.io/travis/labstack/echo.svg?style=flat-square)](https://travis-ci.org/labstack/echo) [![Coverage Status](http://img.shields.io/coveralls/labstack/echo.svg?style=flat-square)](https://coveralls.io/r/labstack/echo) [![Join the chat at https://gitter.im/labstack/echo](https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg?style=flat-square)](https://gitter.im/labstack/echo) [![Twitter](https://img.shields.io/badge/twitter-@labstack-55acee.svg?style=flat-square)](https://twitter.com/labstack)
|
||||||
|
|
||||||
## Don't forget to try the upcoming [v3](https://github.com/labstack/echo/tree/v3) tracked [here]( https://github.com/labstack/echo/issues/665)
|
## Don't forget to try the upcoming [v3](https://github.com/labstack/echo/tree/v3) tracked [here]( https://github.com/labstack/echo/issues/665)
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
build:
|
build:
|
||||||
rm -rf public && hugo
|
rm -rf public/v2 && hugo
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"baseurl": "https://echo.labstack.com",
|
"baseurl": "https://echo.labstack.com/v2/",
|
||||||
"languageCode": "en-us",
|
"languageCode": "en-us",
|
||||||
"title": "Echo - Fast and unfancy HTTP server framework for Go (Golang)",
|
"title": "Echo - Fast and unfancy HTTP server framework for Go (Golang)",
|
||||||
"canonifyurls": true,
|
"canonifyurls": true,
|
||||||
"googleAnalytics": "UA-85059636-2",
|
"googleAnalytics": "UA-85059636-2",
|
||||||
|
"publishdir": "public/v2",
|
||||||
"permalinks": {
|
"permalinks": {
|
||||||
"guide": "/guide/:filename",
|
"guide": "/guide/:filename",
|
||||||
"middleware": "/middleware/:filename",
|
"middleware": "/middleware/:filename",
|
||||||
|
@ -40,3 +40,4 @@
|
|||||||
<script async defer id="github-bjs" src="//buttons.github.io/buttons.js"></script>
|
<script async defer id="github-bjs" src="//buttons.github.io/buttons.js"></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/doc.js"></script>
|
||||||
|
<script src="{{ .Site.BaseURL }}scripts/main.js"></script>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<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/doc.css">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/styles/main.css">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}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(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
@ -5,9 +5,15 @@
|
|||||||
<a class="support w3-btn w3-white w3-border w3-border-theme w3-round-xlarge" href="/support-echo">
|
<a class="support w3-btn w3-white w3-border w3-border-theme w3-round-xlarge" 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>
|
</a>
|
||||||
|
<h4>
|
||||||
|
<select class="w3-select w3-border" onchange="version(this);">
|
||||||
|
<option value="/v2" selected>v2</option>
|
||||||
|
<option value="/">v3</option>
|
||||||
|
</select>
|
||||||
|
</h4>
|
||||||
{{ $currentNode := . }}
|
{{ $currentNode := . }}
|
||||||
{{ range .Site.Menus.side }}
|
{{ range .Site.Menus.side }}
|
||||||
<h4>{{ .Pre }} {{ .Name }}</h4>
|
<h3>{{ .Pre }} {{ .Name }}</h3>
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<a{{ if $currentNode.IsMenuCurrent "side" . }} class="active"{{ end }} href="{{ .URL }}">
|
<a{{ if $currentNode.IsMenuCurrent "side" . }} class="active"{{ end }} href="{{ .URL }}">
|
||||||
{{ .Name }}
|
{{ .Name }}
|
||||||
|
3
website/static/scripts/main.js
Normal file
3
website/static/scripts/main.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function version(e) {
|
||||||
|
window.location = e.value;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user