| | |
| | | {{/* Now, range through the next four after the initial $n_posts items. Nest the requirements, "after" then "first" on the outside */}} |
| | | {{ range (first 4 (after $n_posts $section)) }} |
| | | <h2 class="f5 fw4 mb4 dib mr3"> |
| | | <a href="{{ .Permalink }}" class="link black dim"> |
| | | <a href="{{ .RelPermalink }}" class="link black dim"> |
| | | {{ .Title }} |
| | | </a> |
| | | </h2> |
| | |
| | | |
| | | {{/* As above, Use $section_name to get the section title, and URL. Use "with" to only show it if it exists */}} |
| | | {{ with .Site.GetPage "section" $section_name }} |
| | | <a href="{{ .Permalink }}" class="link db f6 pa2 br3 bg-mid-gray white dim w4 tc">{{ i18n "allTitle" . }}</a> |
| | | <a href="{{ .RelPermalink }}" class="link db f6 pa2 br3 bg-mid-gray white dim w4 tc">{{ i18n "allTitle" . }}</a> |
| | | {{ end }} |
| | | </section> |
| | | {{ end }} |