Files
.github
__mocks__
example
img
src
website
config
site
content
data
layouts
_default
single.html
blog
pages
partials
section
index.html
static
config.yaml
src
.babelrc
.nvmrc
README.md
gulpfile.babel.js
package.json
webpack.conf.js
yarn.lock
.all-contributorsrc
.babelrc
.editorconfig
.eslintrc
.gitignore
.nvmrc
.stylelintrc
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
codecov.yml
package-lock.json
package.json
postcss.config.js
setupTests.js
webpack.config.js
yarn.lock
static-cms/website/site/layouts/_default/single.html

47 lines
1.7 KiB
HTML
Raw Normal View History

{{ partial "header" . }}
{{ $activePage := .Params.position }}
2018-05-17 17:14:29 -04:00
<div class="docs page">
<div class="container">
<aside id="sidebar" class="sidebar">
<nav id="docs-nav" class="docs-nav" id="docs-nav">
{{ $currentPage := . }}
{{ range $index, $element := .Site.Menus.docs }}
{{ if .HasChildren }}
<div class="docs-nav-section">
<div class="docs-nav-section-title">{{ .Title }}</div>
<ul class="docs-nav-section-list">
{{ range .Children }}
<a href="{{ .URL }}" class="nav-link {{ if $currentPage.IsMenuCurrent "docs" . }}active{{ end }}">{{ .Title }}</a>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}
</nav>
<div class="mobile docs-nav">
<select class="btn-primary" id="mobile-docs-nav">
<option value="" selected="selected">Select A Topic</option>
{{ range $index, $element := .Site.Menus.docs }}
{{ if .HasChildren }}
<optgroup label="{{ .Title }}"/>
{{ range .Children }}
<option value="{{ .URL }}" class="nav-link {{ if $currentPage.IsMenuCurrent "docs" . }}active{{ end }}">{{ .Title }}</option>
{{ end }}
{{ end }}
{{ end }}
</select>
</div>
</aside>
<article class="docs-content" id="docs-content">
{{ partial "edit-link" . }}
{{ .Content }}
{{- if eq .Title "Widgets" -}} <!-- Check if is widgets page, if so, add the partial "widgets" for the widget cloud functionality -->
{{- partial "widgets" . -}}
{{- end -}}
</article>
</div>
</div>
{{ partial "footer" . }}