1
0

Blog: Do not include hidden posts in list limit

This commit is contained in:
Ryan Fox 2021-11-15 00:03:05 -08:00
parent ae29fb604f
commit c9f100c6d8
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E

View File

@ -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