| | |
| | | {{ $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}} |
| | |
| | | </li> |
| | | {{ end }} |
| | | </ul> |
| | | </aside> |
| | | </div> |
| | | {{ end }} |