summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/blog/list.html17
-rw-r--r--layouts/blog/single.html8
2 files changed, 25 insertions, 0 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
new file mode 100644
index 0000000..ed01b5f
--- /dev/null
+++ b/layouts/blog/list.html
@@ -0,0 +1,17 @@
+{{ define "main" }}
+<header class="blog__header">
+ <a href="/">/~/</a>: NaN
+</header>
+<article>
+ <ul class="posts">
+ {{ $pages := .Pages }}
+ {{ range $pages }}
+ <li class="post">
+ <a class="post__link" href="{{ .RelPermalink }}">
+ /{{ .Date.Format "2006.01.02" }}/: {{ .Title }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+</article>
+{{ end }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
new file mode 100644
index 0000000..675618c
--- /dev/null
+++ b/layouts/blog/single.html
@@ -0,0 +1,8 @@
+{{ define "main" }}
+<header class="blog__header">
+ <a href="/blog">/~/blog/</a>: {{ .Title }}
+</header>
+<article class="post__content">
+ {{ .Content }}
+</article>
+{{end}}