zcx
parent
67ee1d54f0
commit
3fe6816d43
|
@ -258,7 +258,7 @@ def front_all(v, sub=None):
|
|||
g.db.commit()
|
||||
|
||||
if request.headers.get("Authorization"): return {"data": [x.json for x in posts], "next_exists": next_exists}
|
||||
return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page, ccmode=ccmode, sub=sub)
|
||||
return render_template("home.html", v=v, listing=posts, next_exists=next_exists, sort=sort, t=t, page=page, ccmode=ccmode, sub=sub, home=True)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -272,7 +272,7 @@
|
|||
{% endblock %}
|
||||
|
||||
</div>
|
||||
{% if request.path in ('/', '/logged_out', '/logged_out/') or sub %}
|
||||
{% if home %}
|
||||
{% block sidebar %}
|
||||
{% include "sidebar_" + SITE_NAME + ".html" %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue