aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/templates/layout.html2
-rw-r--r--pyaggr3g470r/views.py4
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
bgstack15