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"
|
url = "https://packages.grpc.io"
|
||||||
weight = 6
|
weight = 6
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
name = "FAQ"
|
|
||||||
url = "/faq"
|
|
||||||
weight = 7
|
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Overview"
|
name = "Overview"
|
||||||
url = "/docs"
|
url = "/docs"
|
||||||
|
|
@ -145,8 +140,15 @@ parent = "docs"
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Presentations"
|
name = "Presentations"
|
||||||
url = "/docs/talks"
|
url = "/docs/talks/"
|
||||||
weight = 6
|
weight = 6
|
||||||
|
parent = "docs"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "FAQ"
|
||||||
|
url = "/faq"
|
||||||
|
weight = 7
|
||||||
|
parent = "docs"
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "What is gRPC?"
|
name = "What is gRPC?"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{{ $title := .Title }}
|
{{ $title := .Title }}
|
||||||
{{ $desc := .Params.description }}
|
{{ $desc := .Params.description }}
|
||||||
|
{{ $source := printf "https://github.com/grpc/grpc.io/tree/master/content/%s" .File.Path }}
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="columns is-variable is-8">
|
<div class="columns is-variable is-8">
|
||||||
|
|
@ -16,10 +17,21 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{{ with $desc }}
|
{{ 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>
|
</p>
|
||||||
{{ end }}
|
{{ 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>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue