Compare commits
No commits in common. "e6589dc61c7965e3da4359922d8ceee6310095ef" and "04cd56daa801c9ca74e9e1d81186fd35fb154bcb" have entirely different histories.
e6589dc61c
...
04cd56daa8
|
@ -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='QotNews',
|
title='Feed',
|
||||||
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'] + ' | QotNews',
|
title=story['title'],
|
||||||
url=url,
|
url=url,
|
||||||
description=description,
|
description=description,
|
||||||
robots='noindex',
|
robots='noindex',
|
||||||
|
|
|
@ -56,21 +56,7 @@ class App extends React.Component {
|
||||||
<Router>
|
<Router>
|
||||||
<div className='container menu'>
|
<div className='container menu'>
|
||||||
<p>
|
<p>
|
||||||
<Switch>
|
<Link to='/'>QotNews - Feed</Link>
|
||||||
<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>
|
<span className='theme'>Theme: <a href='#' onClick={() => this.light()}>Light</a> - <a href='#' onClick={() => this.dark()}>Dark</a></span>
|
||||||
<br />
|
<br />
|
||||||
<span className='slogan'>Hacker News, Reddit, Lobsters, and Tildes articles rendered in reader mode.</span>
|
<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 ?
|
{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>
|
||||||
|
|
||||||
<h1>{story.title}</h1>
|
<h1>{story.title}</h1>
|
||||||
|
|
|
@ -115,8 +115,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 Comments</title>
|
||||||
<meta name="robots" content="noindex" />
|
|
||||||
</Helmet>
|
</Helmet>
|
||||||
|
|
||||||
<h1>{story.title}</h1>
|
<h1>{story.title}</h1>
|
||||||
|
|
|
@ -52,8 +52,8 @@ class Feed extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div className='container'>
|
<div className='container'>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>QotNews</title>
|
<title>Feed - QotNews</title>
|
||||||
<meta name="robots" content="index" />
|
<meta name="robots" content="index">
|
||||||
</Helmet>
|
</Helmet>
|
||||||
{error && <p>Connection error?</p>}
|
{error && <p>Connection error?</p>}
|
||||||
{stories ?
|
{stories ?
|
||||||
|
|
|
@ -56,7 +56,7 @@ class Results extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div className='container'>
|
<div className='container'>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>Search Results | QotNews</title>
|
<title>Feed - QotNews</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
{error && <p>Connection error?</p>}
|
{error && <p>Connection error?</p>}
|
||||||
{stories ?
|
{stories ?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user