accordion

This commit is contained in:
lvuch
2018-07-11 15:42:34 -07:00
parent 463e70cbde
commit 4541d1052e
3 changed files with 29 additions and 5 deletions
+4 -4
View File
@@ -16,8 +16,8 @@ However, for version 2.0, most of Rancher is redesigned to work on Kubernetes. R
- Rancher Kubernetes Engine (RKE)
- Integration with cloud Kubernetes services, such as GKE, EKS, and AKS.
{{% accordion id="accid" label="label" %}}
## Asopida paratur mulces mentis
<!-- {{% accordion id="accid" label="label" %}}
## Asopida paratur mulces mentis
Neque nati paucis, aut virgo iuppiter in solet iussaque refert ne osse, accepta
variari infracto? Relevare *altis*: cum forumque melior: cum viae questus
@@ -34,7 +34,7 @@ However, for version 2.0, most of Rancher is redesigned to work on Kubernetes. R
5. Patietur post
{{% /accordion %}}
{{% accordion id="accid2" label="label2" %}}
## Asopida paratur mulces mentis
## Asopida paratur mulces mentis
Neque nati paucis, aut virgo iuppiter in solet iussaque refert ne osse, accepta
variari infracto? Relevare *altis*: cum forumque melior: cum viae questus
@@ -50,4 +50,4 @@ However, for version 2.0, most of Rancher is redesigned to work on Kubernetes. R
4. Timor miraris vitam inconcessaeque profers porrigis
5. Patietur post
{{% /accordion %}}
-->
+5 -1
View File
@@ -6,8 +6,8 @@
{{ end }}
{{ define "main" }}
<div class="wrapper">
<div class="row m-t-sm">
<aside class="col-sm-3 col-xs-12 p-l-0">
@@ -22,6 +22,10 @@
{{end}}
<div class="main-content">
<!-- this is a test -->
<!-- {{ partial "page-nav.html" . }} -->
<!-- end test -->
{{ .Content }}
{{ range (.Paginator 5).Pages }}
+20
View File
@@ -0,0 +1,20 @@
<div class="page-nav">
<ul>
{{ template "page-nav" . }}
</ul>
</div>
{{ define "page-nav" }}
{{ range .Sections}}
<li class=""><a href="{{ .RelPermalink}}">{{ .Title }}</a>
{{if gt (len .Sections) 0}}
<!-- <i class="material-icons expand-toggle">add_box</i> -->
<ul class="hide">
{{ range .Pages }}
<li class=""><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
{{ end }}
{{ template "page-nav" . }}
</ul>
{{end}}
</li>
{{ end }}
{{ end }}