diff --git a/index.html b/index.html index 8e514e2..e5f61f7 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ $list3{ limit = 2 }[[

$title

]]
-$list3{ limit = 2 } +$each{list3{ limit = 2 }, "post"}[[$post]] $render{"templates/wares"} diff --git a/site.moon b/site.moon index 128f81a..775ad4b 100644 --- a/site.moon +++ b/site.moon @@ -143,7 +143,7 @@ list3 = (args={}, has_block) => else common.fill_ignoring_pre template, vals - unless has_block then return table.concat result + unless has_block then return result -- use in templates -- $list2{[[

$title

]], limit = 2}