summaryrefslogtreecommitdiff
path: root/themes/24-unification/layouts/_default/index.html
blob: 591f7f80f5096a82b54c998028046f9bf1a978a8 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{{ define "main" }}
{{ $oldDate := "aaa" }}
<article>
  <div class="all">
    <h2>CrysSITE</h2>
    <p>
    est. 2022
    </p>
    <hr>
    <p>
      Hello and welcome!
      My name is Michal and this is my personal website.
      I am a software engineer from southern Poland.
      There's quite a lot here, as you can see bellow, but this does not include things like <a href="/contact">contact</a> or <a href="/mirror/userfriendly">mirrors of other pages</a>.
      You can jump to dedicated sections using the menu on the left (or, on top, if you surf the web using a mobile phone).
    </p>

    <p>
      Nothing here was created with the use of GenAI.
    </p>
<p>
    {{ range where .Site.RegularPages.ByDate.Reverse ".Params.nolist" "<>" true  }}
      {{$newDate := .PublishDate.Format "2006"}}

      {{ if not (eq $oldDate $newDate) }}
          {{ if not (eq $oldDate "aaa") }} </ul>{{ end }}
        <ul>
        <h3>{{ $newDate }}</h3>  
      {{ end }}

      <li>
        {{ .Section}}/<a href="{{.Permalink}}">{{ .Title }}</a>


      {{ $oldDate = $newDate }}
    {{ end }}
</p>
  </div>
</article>
{{ end }}