Compare commits
2 Commits
04cd56daa8
...
e6589dc61c
Author | SHA1 | Date | |
---|---|---|---|
e6589dc61c | |||
307e8349f3 |
|
@ -124,7 +124,7 @@ def story(sid):
|
|||
@flask_app.route('/search')
|
||||
def index():
|
||||
return render_template('index.html',
|
||||
title='Feed',
|
||||
title='QotNews',
|
||||
url='news.t0.vc',
|
||||
description='Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode',
|
||||
robots='index',
|
||||
|
@ -153,7 +153,7 @@ def static_story(sid):
|
|||
url = url.replace('www.', '')
|
||||
|
||||
return render_template('index.html',
|
||||
title=story['title'],
|
||||
title=story['title'] + ' | QotNews',
|
||||
url=url,
|
||||
description=description,
|
||||
robots='noindex',
|
||||
|
|
|
@ -56,7 +56,21 @@ class App extends React.Component {
|
|||
<Router>
|
||||
<div className='container menu'>
|
||||
<p>
|
||||
<Link to='/'>QotNews - Feed</Link>
|
||||
<Switch>
|
||||
<Route path='/' exact>
|
||||
<Link to='/'>QotNews - Feed</Link>
|
||||
</Route>
|
||||
<Route path='/search'>
|
||||
<Link to='/'>QotNews - Search</Link>
|
||||
</Route>
|
||||
<Route path='/:id' exact>
|
||||
<Link to='/'>QotNews - Article</Link>
|
||||
</Route>
|
||||
<Route path='/:id/c'>
|
||||
<Link to='/'>QotNews - Comments</Link>
|
||||
</Route>
|
||||
</Switch>
|
||||
|
||||
<span className='theme'>Theme: <a href='#' onClick={() => this.light()}>Light</a> - <a href='#' onClick={() => this.dark()}>Dark</a></span>
|
||||
<br />
|
||||
<span className='slogan'>Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode.</span>
|
||||
|
|
|
@ -67,8 +67,8 @@ class Article extends React.Component {
|
|||
{story ?
|
||||
<div className='article'>
|
||||
<Helmet>
|
||||
<title>{story.title} - QotNews</title>
|
||||
<meta name="robots" content="noindex">
|
||||
<title>{story.title} | QotNews</title>
|
||||
<meta name="robots" content="noindex" />
|
||||
</Helmet>
|
||||
|
||||
<h1>{story.title}</h1>
|
||||
|
|
|
@ -115,7 +115,8 @@ class Article extends React.Component {
|
|||
{story ?
|
||||
<div className='article'>
|
||||
<Helmet>
|
||||
<title>{story.title} - QotNews Comments</title>
|
||||
<title>{story.title} | QotNews</title>
|
||||
<meta name="robots" content="noindex" />
|
||||
</Helmet>
|
||||
|
||||
<h1>{story.title}</h1>
|
||||
|
|
|
@ -52,8 +52,8 @@ class Feed extends React.Component {
|
|||
return (
|
||||
<div className='container'>
|
||||
<Helmet>
|
||||
<title>Feed - QotNews</title>
|
||||
<meta name="robots" content="index">
|
||||
<title>QotNews</title>
|
||||
<meta name="robots" content="index" />
|
||||
</Helmet>
|
||||
{error && <p>Connection error?</p>}
|
||||
{stories ?
|
||||
|
|
|
@ -56,7 +56,7 @@ class Results extends React.Component {
|
|||
return (
|
||||
<div className='container'>
|
||||
<Helmet>
|
||||
<title>Feed - QotNews</title>
|
||||
<title>Search Results | QotNews</title>
|
||||
</Helmet>
|
||||
{error && <p>Connection error?</p>}
|
||||
{stories ?
|
||||
|
|
Loading…
Reference in New Issue
Block a user