mykiwi/mykiwi.blogpublic Fork 0
bf3cf90170888299b6939d18c034327377a52922
Commits
Clone
git clone https://git.rickub.com/mykiwi/mykiwi.blog.git
git clone ssh://git@rickub.com/mykiwi/mykiwi.blog.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Port fzakaria.com design to Hugo and add a homepage profile 1bdbd06 · on bf3cf90170888299b6939d18c034327377a52922 · Romain Gautier · 21h ago
list.html · 27 lines · 812 BHTML Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{ define "main" }}
{{ $years := .Pages.GroupByDate "2006" }}
<div class="page-index column">
  <header class="post-header rise">
    <h1 class="post-title">{{ .Title }}</h1>
    <hr class="post-rule">
  </header>
  <div class="index-body">
    {{ range $i, $year := $years }}
      <section class="year rise" style="--i: {{ add $i 1 }}">
        <h2 class="year__label">
          {{ $year.Key }}
          <span class="count">{{ len $year.Pages }} posts</span>
        </h2>
        <ul class="year__list">
          {{ range $year.Pages }}
            <li class="entry">
              <span class="date">{{ .Date.Format "Jan 02" }}</span>
              <a href="{{ .RelPermalink }}">{{ .Title }}</a>
            </li>
          {{ end }}
        </ul>
      </section>
    {{ end }}
  </div>
</div>
{{ end }}