summaryrefslogtreecommitdiff
path: root/:w
diff options
context:
space:
mode:
Diffstat (limited to ':w')
-rw-r--r--:w17
1 files changed, 17 insertions, 0 deletions
diff --git a/:w b/:w
new file mode 100644
index 0000000..3992a20
--- /dev/null
+++ b/:w
@@ -0,0 +1,17 @@
+{{ define "main" }}
+{{- range where .Pages "Params.category" "blog"}}
+ <article class="list">
+ <a href="{{ .Page.Permalink }}">
+ {{ .Page.Title }}
+ </a>
+ ({{ .PublishDate.Format "January 2nd, 2006" }})
+ <div>
+ {{ .Page.Summary }}
+ </div>
+ {{- if .Page.Truncated }}
+ <a href="{{ .Page.Permalink }}">More</a>
+ </div>
+ {{ end }}
+ </article>
+ {{ end }}
+{{ end }}