mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="tab">
|
||||
<input id="{{ .Get "id" }}" type="checkbox" name="tabs">
|
||||
<label for="{{ .Get "id" }}">{{ .Get "label" }}</label>
|
||||
<div class="tab-content">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user