Adjust title

This commit is contained in:
Tanner Collin 2022-06-30 00:05:15 +00:00
parent 307e8349f3
commit e6589dc61c
5 changed files with 6 additions and 6 deletions

View File

@ -124,7 +124,7 @@ def story(sid):
@flask_app.route('/search') @flask_app.route('/search')
def index(): def index():
return render_template('index.html', return render_template('index.html',
title='Feed', title='QotNews',
url='news.t0.vc', url='news.t0.vc',
description='Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode', description='Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode',
robots='index', robots='index',
@ -153,7 +153,7 @@ def static_story(sid):
url = url.replace('www.', '') url = url.replace('www.', '')
return render_template('index.html', return render_template('index.html',
title=story['title'], title=story['title'] + ' | QotNews',
url=url, url=url,
description=description, description=description,
robots='noindex', robots='noindex',

View File

@ -67,7 +67,7 @@ class Article extends React.Component {
{story ? {story ?
<div className='article'> <div className='article'>
<Helmet> <Helmet>
<title>{story.title} - QotNews</title> <title>{story.title} | QotNews</title>
<meta name="robots" content="noindex" /> <meta name="robots" content="noindex" />
</Helmet> </Helmet>

View File

@ -115,7 +115,7 @@ class Article extends React.Component {
{story ? {story ?
<div className='article'> <div className='article'>
<Helmet> <Helmet>
<title>{story.title} - QotNews Comments</title> <title>{story.title} | QotNews</title>
<meta name="robots" content="noindex" /> <meta name="robots" content="noindex" />
</Helmet> </Helmet>

View File

@ -52,7 +52,7 @@ class Feed extends React.Component {
return ( return (
<div className='container'> <div className='container'>
<Helmet> <Helmet>
<title>Feed - QotNews</title> <title>QotNews</title>
<meta name="robots" content="index" /> <meta name="robots" content="index" />
</Helmet> </Helmet>
{error && <p>Connection error?</p>} {error && <p>Connection error?</p>}

View File

@ -56,7 +56,7 @@ class Results extends React.Component {
return ( return (
<div className='container'> <div className='container'>
<Helmet> <Helmet>
<title>Feed - QotNews</title> <title>Search Results | QotNews</title>
</Helmet> </Helmet>
{error && <p>Connection error?</p>} {error && <p>Connection error?</p>}
{stories ? {stories ?