summaryrefslogtreecommitdiff
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..a7f5392
--- /dev/null
+++ b/layouts/projects/list.html
@@ -0,0 +1,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 }}