WIP
This commit is contained in:
parent
76f99322f7
commit
f13e5e947c
10
site.moon
10
site.moon
@ -114,8 +114,16 @@ sitegen.create =>
|
||||
for path, target in pairs files
|
||||
id = extract_id path
|
||||
|
||||
d = extract_date target
|
||||
d = d\gsub("%-", "%%-") .. "%-"
|
||||
p d
|
||||
e = target\gsub(d, "")
|
||||
p e
|
||||
-- p target\gsub(extract_date(target), "")
|
||||
|
||||
add path,
|
||||
target: Path.join Path.basepath(target), id -- TODO reformat target
|
||||
target: e
|
||||
-- target: target\gsub, "/%d%d%[.][%w%-]+$", id -- TODO reformat target
|
||||
template: name
|
||||
is_a: name
|
||||
publish_date: publish_date path
|
||||
|
Loading…
x
Reference in New Issue
Block a user