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

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortummychow <tummychow@users.noreply.github.com>2014-03-15 00:37:55 +0400
committertummychow <tummychow@users.noreply.github.com>2014-03-15 00:40:48 +0400
commit5a57507ff99294831d7ca6985e21cc45e8decf83 (patch)
tree11431583ca7642b37d5423cbc09ff9d33f7b5a83 /layouts
parent77c1f34cea8bbb15da8a17113c2ffdb4e62ddd0a (diff)
Add sidebar ordering
Diffstat (limited to 'layouts')
-rw-r--r--layouts/chrome/sidebar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/chrome/sidebar.html b/layouts/chrome/sidebar.html
index 855a9b4..831e587 100644
--- a/layouts/chrome/sidebar.html
+++ b/layouts/chrome/sidebar.html
@@ -12,7 +12,7 @@
<a class="sidebar-nav-item {{ if eq .Url "/" }} active {{ end }}" href="/">Home</a>
{{ $thisperma := .Permalink }}
- {{ range .Site.Recent }}
+ {{ range .Site.Recent.ByWeight }}
{{ if isset .Params "sidebar" }}
<a class="sidebar-nav-item {{ if eq .Permalink $thisperma }} active {{ end }}" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}