mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Bud Parr
02.16.2017 8f4c3b571d10049b4f80f1fe5347abdd7402c8b3
layouts/partials/menu-contextual.html
@@ -6,7 +6,7 @@
{{ $i := sub ($currentSection | len) 1 }}
{{/* So we can only show this menu if there are one or more other entries  */}}
{{ if ge $i 1 }}
  <aside class="bg-light-gray pa3">
  <div class="bg-light-gray pa3">
    <ul>
      <li class="list b mb3">{{/* Return the section name, make it readable (humanize) and if there are 2 or more entries, make the section name plural (pluralize).  */}}
        {{ $i }} More {{ if ge $i 2 }}{{ .Section | humanize | pluralize }}{{ else }}{{ .Section | humanize }}{{end}}
@@ -20,5 +20,5 @@
        </li>
      {{ end }}
    </ul>
  </aside>
  </div>
{{ end }}