Blog: Do not include hidden posts in list limit
This commit is contained in:
parent
ae29fb604f
commit
c9f100c6d8
@ -17,7 +17,7 @@ def gen_list(files, ext, limit=-1, mini=False):
|
||||
if "visibility" not in md.Meta or md.Meta["visibility"] == "hidden":
|
||||
md.Meta["template"] = "post_preview" if not mini else "post_preview_mini"
|
||||
items += template(escape_braces(html), "blog/"+post[:-3]+ext, ext, md.Meta)
|
||||
i += 1
|
||||
i += 1
|
||||
if limit >= 0 and i >= limit:
|
||||
break;
|
||||
return items
|
||||
|
Loading…
Reference in New Issue
Block a user