mirror of https://github.com/grpc/grpc.io.git
Add page source button
Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
parent
6b3df0d411
commit
5c13b76cc7
14
config.toml
14
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?"
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="columns is-variable is-8">
|
||||
|
|
@ -16,10 +17,21 @@
|
|||
</p>
|
||||
|
||||
{{ with $desc }}
|
||||
<p class="subtitle is-size-4 is-size-5-mobile has-text-weight-medium">
|
||||
<p class="subtitle is-size-4 is-size-5-mobile has-text-grey has-text-weight-medium">
|
||||
{{ . }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
<div class="buttons are-small">
|
||||
<a class="button is-outlined" href="{{ $source }}" target="_blank">
|
||||
<span class="icon">
|
||||
<i class="fab fa-github"></i>
|
||||
</span>
|
||||
<span>
|
||||
Source
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Reference in New Issue