diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2013-12-03 21:26:46 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2013-12-03 21:26:46 +0100 |
commit | c6175f5fc78667221f17e23ee90f66bda72135a2 (patch) | |
tree | 17d2eff89680d7abb5aa971a7eebea76fb51f343 /pyaggr3g470r | |
parent | Minor improvements for the /search page. (diff) | |
download | newspipe-c6175f5fc78667221f17e23ee90f66bda72135a2.tar.gz newspipe-c6175f5fc78667221f17e23ee90f66bda72135a2.tar.bz2 newspipe-c6175f5fc78667221f17e23ee90f66bda72135a2.zip |
The title of the HTML page is now updated for /article and /feed pages.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/templates/layout.html | 2 | ||||
-rw-r--r-- | pyaggr3g470r/views.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 541c0ad8..d8f8790a 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -7,7 +7,7 @@ <meta name="description" content="pyAggr3g470r"> <meta name="author" content=""> - <title>pyAggr3g470r</title> + <title>{% if head_title %}{{ head_title }} - {% endif %}pyAggr3g470r</title> <!-- Bootstrap core CSS --> <link href="/static/css/bootstrap.css" rel="stylesheet"> diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index cdbc1a45..cf10d1c5 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -146,7 +146,7 @@ def feed(feed_id=None): articles = feed.articles top_words = utils.top_words(articles, n=50, size=int(word_size)) tag_cloud = utils.tag_cloud(top_words) - return render_template('feed.html', feed=feed, tag_cloud=tag_cloud) + return render_template('feed.html', head_title=feed.title, feed=feed, tag_cloud=tag_cloud) @app.route('/article/<article_id>', methods=['GET']) @login_required @@ -159,7 +159,7 @@ def article(article_id=None): if not article.readed: article.readed = True article.save() - return render_template('article.html', article=article) + return render_template('article.html', head_title=article.title, article=article) @app.route('/mark_as_read/', methods=['GET']) @login_required |