mirror of https://github.com/grpc/grpc.io.git
Layout refactoring (#477)
Prep work, contributing to #433. No non-whitespace changes to the generated site.
This commit is contained in:
parent
0b14ae1a48
commit
72a6d16bbf
|
|
@ -1,5 +1,3 @@
|
||||||
{{ $desc := .Params.description -}}
|
|
||||||
{{ $source := printf "https://github.com/grpc/grpc.io/tree/%s/content/%s" $.Site.Params.branch .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">
|
||||||
|
|
@ -8,26 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{/* Why is-clipped? See https://github.com/grpc/grpc.io/issues/185 */}}
|
{{/* Why is-clipped? See https://github.com/grpc/grpc.io/issues/185 */}}
|
||||||
<div class="column is-clipped">
|
<div class="column is-clipped">
|
||||||
<section class="hero is-small">
|
{{ partial "docs/hero.html" . }}
|
||||||
<div class="hero-body">
|
|
||||||
<div class="container">
|
|
||||||
<p class="title is-size-2 is-size-3-mobile has-text-primary has-text-weight-bold{{ if $desc }} is-spaced{{ end }}">
|
|
||||||
{{- .Title -}}
|
|
||||||
<span class="buttons page-github-buttons">
|
|
||||||
<a class="button is-white" href="{{$source}}" title="View page source" target="_blank" rel="noopener">
|
|
||||||
<i class="fab fa-github"></i>
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
{{ with $desc -}}
|
|
||||||
<p class="subtitle is-size-4 is-size-5-mobile has-text-grey">
|
|
||||||
{{- . -}}
|
|
||||||
</p>
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
{{ $desc := .Params.description -}}
|
||||||
|
{{ $source := printf "https://github.com/grpc/grpc.io/tree/%s/content/%s" $.Site.Params.branch .File.Path -}}
|
||||||
|
<section class="hero is-small">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="container">
|
||||||
|
<p class="title is-size-2 is-size-3-mobile has-text-primary has-text-weight-bold{{ if $desc }} is-spaced{{ end }}">
|
||||||
|
{{- .Title -}}
|
||||||
|
<span class="buttons page-github-buttons">
|
||||||
|
<a class="button is-white" href="{{$source}}" title="View page source" target="_blank" rel="noopener">
|
||||||
|
<i class="fab fa-github"></i>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
{{ with $desc -}}
|
||||||
|
<p class="subtitle is-size-4 is-size-5-mobile has-text-grey">
|
||||||
|
{{- . -}}
|
||||||
|
</p>
|
||||||
|
{{ end -}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
Loading…
Reference in New Issue