7d71834e05af — Eddie Barraco tip 4 years ago
Put title value in environment
2 files changed, 3 insertions(+), 1 deletions(-)

M cogito2/templates/base.html
M cogito2/templates/show.html
M cogito2/templates/base.html +1 -1
@@ 2,7 2,7 @@ 
 <html>
     <head>
         <meta charset="UTF-8">
-        <title>{% block title %}Welcome!{% endblock %}</title>
+        <title>{% block title %}{{ get_env('OWNER_NAME', 'XXX') }}'s blog{% endblock %}</title>
         <link href="{{ url_for('static', filename='css/blog.css') }}" rel="stylesheet"/>
         {% block stylesheets %}{% endblock %}
     </head>

          
M cogito2/templates/show.html +2 -0
@@ 1,5 1,7 @@ 
 {% extends "base.html" %}
 
+{% block title %}{{ article.get_title() }}{% endblock %}
+
 {% block body %}
     <h2><span>{{ article.get_title() }}</span></h2>
     <p class="date">