diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-15 14:21:34 +0100 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-15 14:21:34 +0100 |
| commit | 63ea67e4c3c8caa2cf0dc6d7c940981bd40b3974 (patch) | |
| tree | 9900794e80bd4413ceb4dad72cdfc3eeaf0d6c9b /luax/pages/blog.luax | |
| parent | d5c0555775ac835f75246a17b5e6f3ddc353d82b (diff) | |
all: move out from luax/
Diffstat (limited to 'luax/pages/blog.luax')
| -rw-r--r-- | luax/pages/blog.luax | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/luax/pages/blog.luax b/luax/pages/blog.luax deleted file mode 100644 index a729b63..0000000 --- a/luax/pages/blog.luax +++ /dev/null @@ -1,30 +0,0 @@ -local blogposts = require('blog.posts') - -return function() - local blogpost_html = {} - for _, post in ipairs(blogposts) do - blogpost_html[#blogpost_html + 1] = - <div class="blog-post"> - <div class="blog-post-header"> - <div class="blog-post-title"> - <a href={"/blog/" .. post.slug}> {$ post.title $} </a> - </div> - <div class="blog-post-date"> - {$ os.date('%Y-%m-%d', post.date) $} - </div> - </div> - <div class="blog-post-description"> - {$ post.description $} - </div> - </div> - end - return - <div class="main-info"> - <div class="main-info-title"> - Blog - </div> - <div class="blog-posts"> - {$ blogpost_html $} - </div> - </div> -end |
