summaryrefslogtreecommitdiffstats
path: root/layouts/blog/list.html
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2024-02-28 02:39:07 +0200
committerAhmed Abdelhalim <[email protected]>2024-02-28 02:39:07 +0200
commitf4c77b94ec5da70ffd245e67e9407a113bd63298 (patch)
tree10021c777ce2133d4b2dbbc0219905a46e8c6a29 /layouts/blog/list.html
parent20c029c7fd7cd58ab0bcd33525e73b06d115f045 (diff)
Add blog layout
Diffstat (limited to 'layouts/blog/list.html')
-rw-r--r--layouts/blog/list.html17
1 files changed, 17 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 }}