aboutsummaryrefslogtreecommitdiff
path: root/layouts/projects/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/projects/list.html')
-rw-r--r--layouts/projects/list.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
new file mode 100644
index 0000000..1f9fc51
--- /dev/null
+++ b/layouts/projects/list.html
@@ -0,0 +1,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 }}