Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsnjack/kraiklyn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r--layouts/partials/sidebar.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
new file mode 100644
index 0000000..7746744
--- /dev/null
+++ b/layouts/partials/sidebar.html
@@ -0,0 +1,36 @@
+<div class="sidebar">
+ {{ partial "logo.html" }}
+ <h1 class="site-title"><a href="/">{{ .Site.Title }}</a></h1>
+ <nav class="internal">
+ <ul>
+ {{ with .Sections }}
+ {{ range .ByWeight }}
+ <li>
+ <li><a href="#{{ .Params.anchor }}">{{ .Title }}</a></li>
+ </li>
+ {{ if .Pages }}
+ <ul>
+ {{ range .Pages.ByWeight }}
+ <li><a href="#{{ .Params.anchor }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ {{ end }}
+ {{ end }}
+ </ul>
+ </nav>
+ <nav class="external">
+ {{ with .Site.Menus.shortcuts }}
+ <ul id="shortcuts">
+ {{ range sort . "Weight" }}
+ <li>
+ <a href="{{.URL}}" target="_blank" rel="noopener">{{safeHTML .Name}}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ </nav>
+ <div class="footer">
+ {{ now.Format "2006" }}
+ </div>
+</div>