aboutsummaryrefslogtreecommitdiff
path: root/luax/pages/blogpost.luax
diff options
context:
space:
mode:
Diffstat (limited to 'luax/pages/blogpost.luax')
-rw-r--r--luax/pages/blogpost.luax23
1 files changed, 0 insertions, 23 deletions
diff --git a/luax/pages/blogpost.luax b/luax/pages/blogpost.luax
deleted file mode 100644
index e7d7b86..0000000
--- a/luax/pages/blogpost.luax
+++ /dev/null
@@ -1,23 +0,0 @@
-local blog_cache = require('blog.cache')
-
-return function(props)
- local post = props.attrs.post
- local content = blog_cache(post)
- return
- <div>
- <div class="post">
- <div class="main-info">
- <div class="main-info-title">
- {$ post.title $}
- </div>
- <div class="post-date">
- {$ os.date('%Y-%m-%d', post.date) $}
- </div>
- <div class="post-description">
- {$ post.description $}
- </div>
- <div class="post-content">{$ content $}</div>
- </div>
- </div>
- </div>
-end