summaryrefslogtreecommitdiff
path: root/layouts/projects/list.html
blob: a7f539268533a93ec5bbbc62eda11e0b671570f9 (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
{{ define "main" }}

<h1>{{ .Title }}</h1>

{{ with .Content }}
{{ . }}
{{ end }}

<div class="projects">
  {{ range .Pages.ByDate.Reverse }}

  <article class="project">
    <h2>
      <a href="{{ .RelPermalink }}">
        {{ .Title }}
      </a>
    </h2>

    {{ with .Params.description }}
    <p>{{ . }}</p>
    {{ end }}

    {{ with .Params.tags }}
    <div class="tags">
      {{ range . }}
      <span>{{ . }}</span>
      {{ end }}
    </div>
    {{ end }}

    <a href="{{ .RelPermalink }}">
      Read more →
    </a>
  </article>
  <hr />

  {{ end }}
</div>

{{ end }}