refactor(template): content_title can be rendered in base

!8
This commit is contained in:
2024-05-19 07:18:12 +09:30
parent 5273b58afb
commit 191244ed40
2 changed files with 1 additions and 3 deletions

View File

@ -46,7 +46,7 @@
{% include 'navigation.html.j2' %}
</nav>
<section>
<h2>{% block title %}Page Title{% endblock %}{% block content_header_icon %}<span title="View History" id="content_header_icon">H</span>{% endblock %}</h2>
<h2>{% block title %}{{ content_title }}{% endblock %}{% block content_header_icon %}<span title="View History" id="content_header_icon">H</span>{% endblock %}</h2>
<article>
{% block body%}{% endblock %}
</article>

View File

@ -1,7 +1,5 @@
{% extends 'base.html.j2' %}
{% block title %}{{ content_title }}{% endblock %}
{% block body%}
<form method="post">