aboutsummaryrefslogtreecommitdiff
path: root/layouts/projects/list.html
blob: 1f9fc51cc9ee64469d21ed93a3305471bd8b83d5 (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" }}
<content>
  {{ if .Data.Singular }}
  <h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
  <small>
    <a href="{{ "blog" | relURL }}">Remove filter</a>
  </small>
  {{ end }}
  <ul class="blog-posts">
    {{ range .Pages }}
    <li>
      <a href="{{ .Params.Link }}">
        {{ .Title }} - &nbsp;
      </a>
        <i> {{ .Description }}</i>
    </li>
    {{ else }}
    <li>
      No posts yet
    </li>
    {{ end }}
  </ul>
  <small>
    <div>
      {{ $currentSection := .Section }}
      {{ range $tag, $taxonomy := .Site.Taxonomies.tags }}
        {{  $count:= 0 }}
        {{ range $taxonomy.Pages }}
          {{ if eq .Section $currentSection }}
            {{ $count = add $count 1 }}
          {{ end }}
        {{ end }}
        {{ if gt $count 0 }}
        <a href="{{ $taxonomy.Page.Permalink }}">#{{ $taxonomy.Page.Title }}</a>&nbsp;
        {{ end }}
      {{ end }}
    </div>
  </small>
</content>
{{ end }}