grpc.io/layouts/docs/tutorials.html

62 lines
1.3 KiB
HTML

{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "main" }}
{{ $currentUrl := .RelPermalink }}
{{ $tutorials := where site.Pages ".Layout" "tutorials" }}
{{ $async := where $tutorials ".Params.type" "eq" "async" }}
{{ $auth := where $tutorials ".Params.type" "eq" "auth" }}
{{ $basic := where $tutorials ".Params.type" "eq" "basic" }}
<div class="headertext">Documentation</div>
</div>
</div>
</div>
{{ partial "docs-topnav.html" . }}
<div class="quickstartcols">
<div class="quickstartcol1">
<h8>Tutorials</h8>
{{ range $auth }}
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
{{ $title := .Params.short }}
<a href="{{ .RelPermalink }}"{{ if $isCurrentPage }} class="active"{{ end }}>
{{ $title }}
</a>
{{ end }}
{{ range $async }}
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
{{ $title := .Params.short }}
<a href="{{ .RelPermalink }}">
{{ $title }}
</a>
{{ end }}
<h8>Basic</h8>
{{ range $basic }}
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
{{ $title := .Params.short }}
<a href="{{ .RelPermalink }}">
{{ $title }}
</a>
{{ end }}
</div>
<div class="quickstartcol2" style="margin-top:4%">
<h3 style="margin-top:0px;">{{ .Title }}</h3>
{{ .Content }}
</div>
</div>
</div>
{{ end }}