2017-12-04 16:42:20 -08:00
|
|
|
{{ partial "header" . }}
|
|
|
|
{{ $activePage := .Params.position }}
|
|
|
|
|
|
|
|
<div class="docs detail page">
|
|
|
|
<div class="container">
|
|
|
|
<aside id="sidebar" class="sidebar">
|
|
|
|
<nav class="docs-nav" id="docs-nav">
|
|
|
|
{{ $subjects := where .Site.Pages "Section" "docs" }}
|
|
|
|
{{ range sort $subjects "Params.position" }}
|
2018-01-03 20:14:15 -02:00
|
|
|
{{- if ne .Type "widget" -}}
|
2017-12-04 16:42:20 -08:00
|
|
|
<a href="{{ .Permalink }}" class="nav-link {{ if eq .Params.position $activePage }}active{{ end }}">{{ .Title }}</a>
|
2018-01-03 20:14:15 -02:00
|
|
|
{{- end -}}
|
2017-12-04 16:42:20 -08:00
|
|
|
{{ end }}
|
|
|
|
</nav>
|
|
|
|
<div class="mobile docs-nav">
|
|
|
|
<select class="btn-primary" id="mobile-docs-nav">
|
|
|
|
<option value="" selected="selected">Select A Topic</option>
|
|
|
|
{{ $subjects := where .Site.Pages "Section" "docs" }}
|
|
|
|
{{ range sort $subjects "Params.position" }}
|
2018-01-03 20:14:15 -02:00
|
|
|
{{- if ne .Type "widget" -}}
|
2017-12-04 16:42:20 -08:00
|
|
|
<option value="{{ .Permalink }}" class="nav-link {{ if eq .Params.position $activePage }}active{{ end }}">{{ .Title }}</option>
|
2018-01-03 20:14:15 -02:00
|
|
|
{{- end -}}
|
2017-12-04 16:42:20 -08:00
|
|
|
{{ end }}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<article class="docs-content" id="docs-content">
|
|
|
|
{{ partial "edit-link" . }}
|
|
|
|
{{ .Content }}
|
2018-01-03 20:14:15 -02:00
|
|
|
{{- if eq .Title "Widgets" -}} <!-- Check if is widgets page, if so, add the partial "widgets" for the widget cloud functionality -->
|
|
|
|
{{- partial "widgets" . -}}
|
|
|
|
{{- end -}}
|
2017-12-04 16:42:20 -08:00
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ partial "footer" . }}
|