summaryrefslogtreecommitdiff
path: root/layouts/section.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/section.html')
-rw-r--r--layouts/section.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/section.html b/layouts/section.html
new file mode 100644
index 0000000..84557c3
--- /dev/null
+++ b/layouts/section.html
@@ -0,0 +1,17 @@
+{{ define "main" }}
+<div class="list">
+ <h2>{{ .Title }}</h2>
+ {{ .Content }}
+ <ul>
+ {{ $pages := .Pages }}
+ {{ $pages = .Site.RegularPages }}
+ {{ range (where $pages "Section" "==" .Section ) }}
+ <li>
+ <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
+ <span class="date"> Published on {{ .Date.Format "2006/01/02" }}</span>
+ <span class="summary"> {{ .Summary }} </span>
+ </li>
+ {{ end }}
+ </ul>
+</div>
+{{ end }}