| <!--- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| {{ partial "header.html" . }} |
| |
| <body> |
| |
| {{ partial "navbar.html" . }} |
| |
| <div class="wrapper"> |
| <div class="container-fluid"> |
| <div class="row"> |
| {{ partial "sidebar.html" . }} |
| <div class="col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2 main"> |
| <div class="col-md-9"> |
| |
| {{ partial "languages.html" .}} |
| |
| <h1>{{ .Title }}</h1> |
| </div> |
| |
| <div class="col-md-9"> |
| {{ .Content }} |
| {{.Params.card}} |
| {{ if not (eq .Params.cards "false")}} |
| {{ range $page_index, $page_val := .Pages }} |
| |
| {{ $page_count := len .Pages }} |
| {{if (eq (mod $page_index 2) 0)}} |
| <div class="row"> |
| {{end}} |
| <div class="col-sm-6"> |
| <div class="card"> |
| <div class="card-body"> |
| <h2 class="card-title"> |
| {{ with .Params.Icon}} |
| <span class="glyphicon glyphicon-{{.}}" |
| aria-hidden="true"></span> |
| {{end}} |
| {{ .LinkTitle }} |
| </h2> |
| <p class="card-text">{{.Summary}}</p> |
| <a href="{{.Permalink}}" |
| class=" btn btn-primary btn-lg">{{.LinkTitle}}</a> |
| </div> |
| </div> |
| </div> |
| |
| {{if (or (eq (mod $page_index 2) 1) (eq $page_index (sub $page_count 1)))}} |
| </div> |
| {{end}} |
| {{ end }} |
| {{end}} |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="push"></div> |
| </div> |
| |
| {{ partial "footer.html" . }} |
| |
| </body> |
| |
| </html> |