Add more home hero buttons

Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
lucperkins 2020-03-09 16:08:18 -07:00
parent 600f27bf5c
commit d2ad837b3b
3 changed files with 29 additions and 2 deletions

View File

@ -185,3 +185,23 @@ name = "gRPC Wire Format"
url = "https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md"
weight = 6
parent = "guides"
[[menu.buttons]]
name = "Quick Start"
url = "/docs/quickstart"
weight = 1
[[menu.buttons]]
name = "Docs"
url = "/docs"
weight = 2
[[menu.buttons]]
name = "Concepts"
url = "/docs/guides/concepts"
weight = 3
[[menu.buttons]]
name = "Community"
url = "/community"
weight = 4

View File

@ -1,3 +1,7 @@
{{ define "title" }}
{{ site.Title }} &ndash; {{ site.Params.description }}
{{ end }}
{{ define "main" }}
{{ partial "home/hero.html" . }}
{{ partial "home/info.html" . }}

View File

@ -1,6 +1,7 @@
{{ $logo := printf "img/logos/%s" site.Params.logos.hero | relURL }}
{{ $title := site.Title }}
{{ $desc := site.Params.description }}
{{ $btns := site.Menus.buttons }}
<section class="hero is-medium is-primary has-background-image">
<div class="hero-body">
<div class="container has-text-centered">
@ -13,9 +14,11 @@
<br />
<div class="buttons are-medium is-centered">
<a class="button is-primary is-radiusless has-text-bold" href="/docs/guides/concepts">
Get started
{{ range $btns }}
<a class="button is-primary has-text-weight-bold" href="{{ .URL }}">
{{ .Name }}
</a>
{{ end }}
</div>
</div>
</div>