Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/edavidaja/docter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/post/list.html')
-rw-r--r--layouts/post/list.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/layouts/post/list.html b/layouts/post/list.html
new file mode 100644
index 0000000..7ea5f30
--- /dev/null
+++ b/layouts/post/list.html
@@ -0,0 +1,16 @@
+{{ define "main" }}
+
+<div id="home">
+ <h2>Posts</h2>
+ <ul class="posts">
+ {{ $section := where $.Site.RegularPages "Section" "post"}}
+ {{ range $section }}
+ <li>
+ <a href="{{ .Page.Permalink }}">{{ .Title }}</a>
+ <span class="post-date">{{ .Date | dateFormat "Jan 2, 2006" }}</span>
+ </li>
+ {{ end }}
+ </ul>
+</div>
+
+{{end}} \ No newline at end of file