Add page object with top-level routes

This commit is contained in:
Nick Pegg 2017-10-07 19:33:16 -07:00
parent 687b378a8c
commit e69c47e2c4
3 changed files with 82 additions and 21 deletions

View file

@ -48,7 +48,6 @@ class Article extends Component {
}
meta() {
// TODO: Fill this in with real metadata.
// Also should this be hidden for pages? That will require some CSS tweaks
let time_text = "Posted"
if (this.props.is_page) {
@ -65,7 +64,7 @@ class Article extends Component {
tags() {
let tags = this.props.article.tags;
if (tags.length === 0) {
if (!tags || tags.length === 0) {
return;
} else {
return (