From 6f132e9cfae0c64beb7860449a9b124954cb6f43 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Sat, 29 Feb 2020 22:18:33 +0800 Subject: [PATCH] Fixed #108 (#109) * update footer height * not use disqu * update themes/docsy * update ci config * update ci config * add comment js * attempt to fix index error --- content/en/_index.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/content/en/_index.html b/content/en/_index.html index 800da95f6..dcf823aa6 100644 --- a/content/en/_index.html +++ b/content/en/_index.html @@ -19,7 +19,7 @@ {{< /blocks/cover >}} -{{% blocks/lead color="white" %}} +{{< blocks/lead color="white" >}} **What is Gin?** @@ -29,50 +29,50 @@ If you need performance and good productivity, you will love Gin. -{{% /blocks/lead %}} +{{< /blocks/lead >}} {{< blocks/section color="light" >}} -{{% blocks/feature icon="fa fa-tachometer-alt" title="Fast" %}} +{{< blocks/feature icon="fa fa-tachometer-alt" title="Fast" >}} Radix tree based routing, small memory foot print. No reflection. Predictable API performance. -{{% /blocks/feature %}} +{{< /blocks/feature >}} -{{% blocks/feature icon="fa fa-bars" title="Middleware support" %}} +{{< blocks/feature icon="fa fa-bars" title="Middleware support" >}} A incoming HTTP request can be handled by a chain of middlewares and the final action. For example: Logger, Authorization, GZIP and finally post a message in the DB. -{{% /blocks/feature %}} +{{< /blocks/feature >}} -{{% blocks/feature icon="fa fa-life-ring" title="Crash-free" %}} +{{< blocks/feature icon="fa fa-life-ring" title="Crash-free" >}} Gin can catch a panic occurred during a HTTP request and recover it. This way, your server will be always available. It’s also possible to report this panic to Sentry for example! -{{% /blocks/feature %}} +{{< /blocks/feature >}} {{< /blocks/section >}} {{< blocks/section color="white" >}} -{{% blocks/feature icon="fa fa-check-circle" title="JSON validation" %}} +{{< blocks/feature icon="fa fa-check-circle" title="JSON validation" >}} Gin can parse and validate the JSON of a request, checking for example the existence of required values. -{{% /blocks/feature %}} +{{< /blocks/feature >}} -{{% blocks/feature icon="fa fa-users-cog" title="Routes grouping" %}} +{{< blocks/feature icon="fa fa-users-cog" title="Routes grouping" >}} Organize your routes better. Authorization required vs non required, different API versions. In addition, the groups can be nested unlimitedly without degrading performance. -{{% /blocks/feature %}} +{{< /blocks/feature >}} -{{% blocks/feature icon="fa fa-briefcase" title="Error management" %}} +{{< blocks/feature icon="fa fa-briefcase" title="Error management" >}} Gin provides a convenient way to collect all the errors occurred during a HTTP request. Eventually, a middleware can write them to a log file, to a database and send them through the network. -{{% /blocks/feature %}} +{{< /blocks/feature >}} {{< /blocks/section >}} {{< blocks/section color="info" >}} -{{% blocks/feature icon="fa fa-images" title="Rendering built-in" %}} +{{< blocks/feature icon="fa fa-images" title="Rendering built-in" >}} Gin provides a easy to use API for JSON, XML and HTML rendering. -{{% /blocks/feature %}} +{{< /blocks/feature >}} -{{% blocks/feature icon="fa fa-code" title="Extendable" %}} +{{< blocks/feature icon="fa fa-code" title="Extendable" >}} Creating a new middleware is so easy, just check out the sample codes. -{{% /blocks/feature %}} +{{< /blocks/feature >}} {{< /blocks/section >}}