2018-05-05 16:00:51 +00:00
|
|
|
{{ define "content" }}
|
|
|
|
{{ if not .Params.notitle }}
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ end }}
|
2019-02-21 16:24:20 +00:00
|
|
|
{{ template "docs-portal-content" . }}
|
2018-05-05 16:00:51 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "content-id" }}content{{ end }}
|
|
|
|
|
2019-02-21 16:24:20 +00:00
|
|
|
{{ define "docs-portal-content" }}
|
|
|
|
<section id="mainContent">
|
2019-01-24 02:36:23 +00:00
|
|
|
<div class="launch-content">
|
2019-02-21 16:24:20 +00:00
|
|
|
<p>{{ .Params.overview | safeHTML }}</p>
|
2019-01-24 02:36:23 +00:00
|
|
|
<br>
|
|
|
|
<div class="launch-cards">
|
2019-02-21 16:24:20 +00:00
|
|
|
{{ template "docs-portal-card" . }}
|
2018-05-05 16:00:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-01-24 02:36:23 +00:00
|
|
|
</section>
|
2019-02-21 16:24:20 +00:00
|
|
|
{{ end }}
|
2019-01-24 02:36:23 +00:00
|
|
|
|
2019-02-21 16:24:20 +00:00
|
|
|
{{ define "docs-portal-card" }}
|
|
|
|
{{ range .Params.cards }}
|
|
|
|
<div class="launch-card">
|
|
|
|
<h4>{{ .title }}</h4>
|
|
|
|
<p>{{ .description }}</p>
|
|
|
|
<br>
|
|
|
|
<ul>
|
|
|
|
{{ $name := .name }}
|
|
|
|
{{ range where ($.Site.Pages.ByParam "card.weight") ".Params.card" "!=" nil }}
|
|
|
|
{{ if eq .Params.card.name $name }}
|
|
|
|
{{ $p := . }}
|
|
|
|
{{ if (isset .Params.card "anchors") }}
|
|
|
|
{{ range .Params.card.anchors }}
|
|
|
|
<li><a href="{{ $p.Permalink }}{{ .anchor }}">{{ .title }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<li><a href={{ .Permalink }}>
|
|
|
|
{{ if (isset .Params.card "title") }}{{ .Params.card.title }}{{ else }}{{ .LinkTitle }}{{ end }}
|
|
|
|
</a></li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
<br><br>
|
2019-10-06 05:23:09 +00:00
|
|
|
<button id="btn-concepts" class="button" onClick="location.href='{{ .button_path | relLangURL }}';" aria-label="{{ .title }}">{{ .button }}</button>
|
2019-02-21 16:24:20 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2018-08-21 22:54:33 +00:00
|
|
|
{{ end }}
|