From d2ad837b3bf852efd4c168c92abdfd0f50e1a9e8 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Mon, 9 Mar 2020 16:08:18 -0700 Subject: [PATCH] Add more home hero buttons Signed-off-by: lucperkins --- config.toml | 20 ++++++++++++++++++++ layouts/index.html | 4 ++++ layouts/partials/home/hero.html | 7 +++++-- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 986d175..bda6b73 100644 --- a/config.toml +++ b/config.toml @@ -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 \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 21b46ee..4367c92 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,7 @@ +{{ define "title" }} +{{ site.Title }} – {{ site.Params.description }} +{{ end }} + {{ define "main" }} {{ partial "home/hero.html" . }} {{ partial "home/info.html" . }} diff --git a/layouts/partials/home/hero.html b/layouts/partials/home/hero.html index 696a499..e3ede17 100644 --- a/layouts/partials/home/hero.html +++ b/layouts/partials/home/hero.html @@ -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 }}