| Port fzakaria.com design to Hugo and add a homepage profile 1bdbd06 Romain Gautier 21h ago | 1 | {{ define "main" }} |
| 2 | {{ $posts := (where site.RegularPages "Section" "posts").ByDate.Reverse }} |
| 3 | {{ $lead := index $posts 0 }} |
| 4 | {{ $rest := after 1 $posts }} |
| 5 | {{ $years := $rest.GroupByDate "2006" }} |
| 6 | |
| 7 | <div class="page-index column"> |
| 8 | {{ partial "colophon.html" . }} |
| 9 | |
| 10 | <div class="index-body"> |
| 11 | {{ with $lead }} |
| 12 | <div class="index-lead rise" style="--i: 1"> |
| Add French/Portuguese/Japanese support, block indexing until launch f8c7bc5 Romain Gautier 16h ago | 13 | <span class="label">{{ i18n "latest" }} · {{ .Date.Format "January 2, 2006" }}</span> |
| Port fzakaria.com design to Hugo and add a homepage profile 1bdbd06 Romain Gautier 21h ago | 14 | <a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a> |
| 15 | <span class="excerpt">{{ .Summary }}</span> |
| Add French/Portuguese/Japanese support, block indexing until launch f8c7bc5 Romain Gautier 16h ago | 16 | <span class="more" aria-hidden="true">{{ i18n "readMore" }}</span> |
| Port fzakaria.com design to Hugo and add a homepage profile 1bdbd06 Romain Gautier 21h ago | 17 | </div> |
| 18 | {{ end }} |
| 19 | |
| 20 | {{ range $i, $year := $years }} |
| 21 | <section class="year rise" style="--i: {{ add $i 2 }}"> |
| 22 | <h2 class="year__label"> |
| 23 | {{ $year.Key }} |
| Add French/Portuguese/Japanese support, block indexing until launch f8c7bc5 Romain Gautier 16h ago | 24 | <span class="count">{{ i18n "postsCount" (dict "Count" (len $year.Pages)) }}</span> |
| Port fzakaria.com design to Hugo and add a homepage profile 1bdbd06 Romain Gautier 21h ago | 25 | </h2> |
| 26 | <ul class="year__list"> |
| 27 | {{ range $year.Pages }} |
| 28 | <li class="entry"> |
| 29 | <span class="date">{{ .Date.Format "Jan 02" }}</span> |
| 30 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> |
| 31 | </li> |
| 32 | {{ end }} |
| 33 | </ul> |
| 34 | </section> |
| 35 | {{ end }} |
| 36 | </div> |
| 37 | </div> |
| 38 | {{ end }} |