Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected footer, what is gin in all the languages and readme hugo in… #286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@ Once your pull request is created, a Gin reviewer will take responsibility for p

See the [official Hugo documentation](https://gohugo.io/getting-started/installing/) for Hugo installation instructions.

To run the site locally when you have Hugo installed:
To run the site locally when you should have Hugo installed:

```sh
# If use `hugo` command, you need to use `npm install` command
$ npm install
$ hugo
# Or use `hugo server`, it not need `npm install` command
$ hugo server
$ npm install --save-dev hugo-extended@latest
$ npx hugo-extended server
```

This will start the local Hugo server on port 1313. Open up your browser to http://localhost:1313 to view the site. As you make changes to the source files, Hugo updates the site and forces a browser refresh.
Expand Down
5 changes: 3 additions & 2 deletions content/en/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**What is Gin?**
<h2><strong>What is Gin?</strong></h2>

Gin is a web framework written in Golang.

Expand All @@ -30,6 +30,7 @@

{{% /blocks/lead %}}


{{< blocks/section color="light" >}}

{{% blocks/feature icon="fa fa-tachometer-alt" title="Fast" %}}
Expand All @@ -47,6 +48,7 @@

{{< /blocks/section >}}


{{< blocks/section color="white" >}}

{{% blocks/feature icon="fa fa-check-circle" title="JSON validation" %}}
Expand All @@ -57,7 +59,6 @@
Organize your routes better. Authorization required vs non required, different API versions. In addition, groups can be nested infinitely without degrading performance.
{{% /blocks/feature %}}


{{% 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, middleware can write them to a log file, to a database and send them through the network.
{{% /blocks/feature %}}
Expand Down
2 changes: 1 addition & 1 deletion content/es/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**¿Qué es Gin?**
<h2><strong>¿Qué es Gin?</strong></h2>

Gin es un framework para desarrollo web escrito en Golang.

Expand Down
2 changes: 1 addition & 1 deletion content/fa/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**Gin چیست?**
<h2><strong>Gin چیست?</strong></h2>

جین یک فریم ورک وبه که با زبان گو ساخته شده.

Expand Down
2 changes: 1 addition & 1 deletion content/ja/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**Ginとは何か?**
<h2><strong>Ginとは何か?</strong></h2>

Gin は、Golang で書かれた Web フレームワークです。

Expand Down
2 changes: 1 addition & 1 deletion content/ko-kr/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**What is Gin?**
<h2><strong>What is Gin?</strong></h2>

Gin is a web framework written in Golang.

Expand Down
2 changes: 1 addition & 1 deletion content/pt/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**O que é a Gin?**
<h2><strong>O que é a Gin?</strong></h2>

A Gin é uma abstração de web escrita em Golang.

Expand Down
2 changes: 1 addition & 1 deletion content/ru/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**Что такое Gin?**
<h2><strong>Что такое Gin?</strong></h2>

Gin - это веб-фреймворк, написанный на языке Golang.

Expand Down
2 changes: 1 addition & 1 deletion content/tr/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{{% blocks/lead color="white" %}}

**Gin nedir??**
<h2><strong>Gin nedir??</strong></h2>

Gin, Golang'da yazılmış bir web çerçevesidir.

Expand Down
2 changes: 1 addition & 1 deletion content/zh-cn/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{{% blocks/lead color="white" %}}

**什么是Gin?**
<h2><strong>什么是Gin?</strong></h2>

Gin是一个使用Go语言开发的Web框架。

Expand Down
2 changes: 1 addition & 1 deletion content/zh-tw/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{{% blocks/lead color="white" %}}

**什麼是Gin?**
<h2><strong>什麼是Gin?</h2></strong>

Gin是一個使用Go語言開發的Web框架。

Expand Down
70 changes: 37 additions & 33 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
{{ $links := .Site.Params.links }}

<footer class="bg-dark py-5 row d-print-none" style="min-height:60px;padding-top:1rem !important">
<div class="container-fluid mx-sm-5">
<div class="row">
<div class="col-6 col-sm-4 text-xs-center order-sm-2">
{{ with $links }}
{{ with index . "user"}}
{{ template "footer-links-block" . }}
{{ end }}
{{ end }}
</div>
<div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
{{ with $links }}
{{ with index . "developer"}}
{{ template "footer-links-block" . }}
{{ end }}
{{ end }}
</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
{{ with .Site.Params.copyright }}<small class="text-white">&copy; {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small>{{ end }}
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
{{ if .Site.Params.ui.footer_about_enable }}
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
{{ end }}
</div>
<div class="container-fluid">
<div class="row">
<div class="col-6 col-sm-4 text-xs-center order-sm-2">
{{ with $links.user }}
{{ template "footer-links-block" . }}
{{ end }}
</div>
<div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
{{ with $links.developer }}
{{ template "footer-links-block" . }}
{{ end }}
</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
{{ with .Site.Params.copyright }}
<small class="text-white">&copy; {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small>
{{ end }}
{{ with .Site.Params.privacy_policy }}
<small class="ml-1"><a href="{{ . }}">{{ T "footer_privacy_policy" }}</a></small>
{{ end }}
{{ if .Site.Params.ui.footer_about_enable }}
{{ with .Site.GetPage "about" }}
<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
{{ end }}
{{ end }}
</div>
</div>
</div>
</div>
</footer>

{{ define "footer-links-block" }}
<ul class="list-inline mb-0">
{{ range . }}
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}">
<a class="text-white" target="_blank" href="{{ .url }}">
<i class="{{ .icon }}"></i>
</a>
</li>
{{ end }}
</ul>
<ul class="list-inline mb-0">
{{ range . }}
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}">
<a class="text-white" target="_blank" href="{{ .url }}">
<i class="{{ .icon }}" style="margin: 0 2.5rem;"></i>
</a>
</li>
{{ end }}
</ul>
{{ end }}
Loading