From 5c13b76cc76d366f2b9826d62afb50bea7322f01 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Mon, 9 Mar 2020 15:17:34 -0700 Subject: [PATCH] Add page source button Signed-off-by: lucperkins --- config.toml | 14 ++++++++------ layouts/partials/docs/article.html | 18 +++++++++++++++--- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/config.toml b/config.toml index 3827dbb..986d175 100644 --- a/config.toml +++ b/config.toml @@ -108,11 +108,6 @@ name = "Packages" url = "https://packages.grpc.io" weight = 6 -[[menu.main]] -name = "FAQ" -url = "/faq" -weight = 7 - [[menu.main]] name = "Overview" url = "/docs" @@ -145,8 +140,15 @@ parent = "docs" [[menu.main]] name = "Presentations" -url = "/docs/talks" +url = "/docs/talks/" weight = 6 +parent = "docs" + +[[menu.main]] +name = "FAQ" +url = "/faq" +weight = 7 +parent = "docs" [[menu.main]] name = "What is gRPC?" diff --git a/layouts/partials/docs/article.html b/layouts/partials/docs/article.html index 0c69b17..edd1a6c 100644 --- a/layouts/partials/docs/article.html +++ b/layouts/partials/docs/article.html @@ -1,5 +1,6 @@ -{{ $title := .Title }} -{{ $desc := .Params.description }} +{{ $title := .Title }} +{{ $desc := .Params.description }} +{{ $source := printf "https://github.com/grpc/grpc.io/tree/master/content/%s" .File.Path }}
@@ -16,10 +17,21 @@

{{ with $desc }} -

+

{{ . }}

{{ end }} + +