summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..45c8631
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,22 @@
+{{ define "head" }}
+<link rel="stylesheet" href='{{ "css/list.css" | absURL }}'>
+{{ end }}
+
+{{ define "main" }}
+{{ if .Content }}
+<main id="main" class="post">
+ <article class="content">
+ {{ .Content }}
+ </article>
+{{ else }}
+<main id="main">
+ <ul>
+ {{ range .Pages }}
+ <li>
+ <a class="link" href="{{ .RelPermalink }}">{{ .Title }} <i class="item-date"> --- {{ .PublishDate.Format "January 2, 2006"}}</i></a>
+ </li>
+ {{ end }}
+ </ul>
+{{ end}}
+</main>
+{{ end }}