aboutsummaryrefslogtreecommitdiff
path: root/layouts/blog
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/blog')
-rw-r--r--layouts/blog/list.html8
-rw-r--r--layouts/blog/single.html7
2 files changed, 15 insertions, 0 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
new file mode 100644
index 0000000..63388b7
--- /dev/null
+++ b/layouts/blog/list.html
@@ -0,0 +1,8 @@
+{{define "main"}}
+{{.Content}}
+<ul>
+{{ range .Pages }}
+<li>{{.Date.Format "2006-01-02"}} | <a href="{{.Permalink}}">{{.Title}}</a></li>
+{{ end }}
+</ul>
+{{ end }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
new file mode 100644
index 0000000..6a9f636
--- /dev/null
+++ b/layouts/blog/single.html
@@ -0,0 +1,7 @@
+{{define "main"}}
+<header>
+<h1 class="title">{{.Title}}</h1>
+<p class="subtitle">posted on {{.PublishDate.Format "Jan 02, 2006"}}</p>
+</header>
+{{ .Content }}
+{{ end }}