satelito

Static [web] site (or page) generator (ssg) made with Lua script.
git clone git://soucy.cc/satelito.git
Log | Files | Refs | README

commit 2772719d5267c2d401534574aa42d85555067039
parent 051bc31e847c9824750283efe86fa9279c387264
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri,  9 Apr 2021 14:38:18 -0400

Delete the list module file

Diffstat:
Dsatelito/list.lua | 35-----------------------------------
1 file changed, 0 insertions(+), 35 deletions(-)

diff --git a/satelito/list.lua b/satelito/list.lua @@ -1,35 +0,0 @@ --- @module list -local list = {} --- -local inspect = require 'inspect' -local dirtree = require 'satelito.dirtree' -local file = require 'satelito.file' -local lume = require 'satelito.lib.lume.lume' -local markdown = require 'discount' -- lua-discount -local model = require 'satelito.model' - -function list.build(filepath) - local _list = {} - - do - if file.is_index(filepath) then - local dirname = file.get_dirname(filepath) - - for child in dirtree.get(dirname) do - if child - and file.is_markdown(child) - and not file.is_index(child) - then - local child_content = { content = assert(markdown(file.read(child))) } - local child_parameters = assert(model.get(child)) - - _list[#_list+1] = lume.extend({}, child_content, child_parameters) - end - end - end - end - - return _list -end - -return list