Migrate netlify-cms-www site into this repo (#860)
* Add frontmatter to docs files (prep to move) * Move docs into position for website migration * Migrate website from netlify-cms-www Some modifications, including most of the changes in https://github.com/netlify/netlify-cms-www/pull/58 (previously reverted). Also updated the readme and added hugo-bin for quicker onboarding of new docs contributors. * Remove netlify.toml This allows separate build commands for cms-demo and netlifycms.org. * Remove website/netlify.toml May re-add later, but it's not doing anything for now. * Remove unused content file
This commit is contained in:
35
website/site/layouts/_default/list.html
Normal file
35
website/site/layouts/_default/list.html
Normal file
@ -0,0 +1,35 @@
|
||||
{{ partial "header" . }}
|
||||
|
||||
<div class="docs page">
|
||||
<div class="container">
|
||||
<aside id="sidebar" class="sidebar">
|
||||
<nav class="docs-nav" id="docs-nav">
|
||||
{{ range sort .Data.Pages "Params.position" }}
|
||||
<a href="{{ .Permalink }}" class="nav-link {{ if eq .Params.position 0 }}active{{ end }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
<div class="mobile docs-nav">
|
||||
<select class="btn-primary" id="mobile-docs-nav">
|
||||
<option value="" selected="selected">Select A Topic</option>
|
||||
{{ range sort .Data.Pages "Params.position" }}
|
||||
<option value="{{ .Permalink }}" class="nav-link {{ if eq .Params.position 0 }}active{{ end }}">{{ .Title }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
</div>
|
||||
</aside>
|
||||
<article class="docs-content" id="docs-content">
|
||||
{{ range sort .Data.Pages "Params.position" }}
|
||||
{{ if eq .Params.position 0 }}
|
||||
<div>
|
||||
<p>
|
||||
{{ partial "edit-link" . }}
|
||||
</p>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "footer" . }}
|
30
website/site/layouts/_default/single.html
Normal file
30
website/site/layouts/_default/single.html
Normal file
@ -0,0 +1,30 @@
|
||||
{{ 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" }}
|
||||
<a href="{{ .Permalink }}" class="nav-link {{ if eq .Params.position $activePage }}active{{ end }}">{{ .Title }}</a>
|
||||
{{ 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" }}
|
||||
<option value="{{ .Permalink }}" class="nav-link {{ if eq .Params.position $activePage }}active{{ end }}">{{ .Title }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
</div>
|
||||
</aside>
|
||||
<article class="docs-content" id="docs-content">
|
||||
{{ partial "edit-link" . }}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "footer" . }}
|
Reference in New Issue
Block a user