Use variable to set title on base template instead of block
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
{% set page_title = ('Replies' if comments_info['is_replies'] else 'Comments page ' + comments_info['page_number']) %}
|
||||
{% extends "base.html" %}
|
||||
{% import "comments.html" as comments %}
|
||||
|
||||
{% block page_title %}{{ 'Replies' if comments_info['is_replies'] else 'Comments page ' + comments_info['page_number'] }}{% endblock %}
|
||||
|
||||
|
||||
{% block style %}
|
||||
main{
|
||||
display:grid;
|
||||
|
||||
Reference in New Issue
Block a user