diff --git a/controllers/resources.js b/controllers/resources.js index 617f5492ba..b15d25ef6b 100644 --- a/controllers/resources.js +++ b/controllers/resources.js @@ -295,7 +295,7 @@ module.exports = { var metaImage = $("meta[property='og:image']"); var urlImage = metaImage.attr('content') ? metaImage.attr('content') : ''; var description = metaDescription.attr('content') ? metaDescription.attr('content') : ''; - result.title = $('title').text(); + result.title = $('title').text().length < 141 ? $('title').text() : $('title').text().slice(0, 137) + " ..."; result.image = urlImage; result.description = description; callback(null, result); diff --git a/views/stories/new-stories.jade b/views/stories/new-stories.jade index 97a6aa02d6..522db9edfd 100644 --- a/views/stories/new-stories.jade +++ b/views/stories/new-stories.jade @@ -40,6 +40,7 @@ "
" + "" + "discuss · " + + " · " + rank + (rank > 1 ? " points" : " point") + " · posted " + moment(data[i].timePosted).fromNow() + " by @" + data[i].author.username + " " +" " + diff --git a/views/stories/submit-story.jade b/views/stories/submit-story.jade index e8f1fd6801..6e9e8f8b7b 100644 --- a/views/stories/submit-story.jade +++ b/views/stories/submit-story.jade @@ -16,7 +16,7 @@ .col-xs-12.col-md-1 label.control-label.control-label-story-submission(for='name') Title .col-xs-12.col-md-11 - input#story-title.form-control(placeholder='Type a headline for your link here', name='Title', maxlength='140' autofocus) + input#story-title.form-control(placeholder='Type a headline for your link here', name='Title', maxlength='90' autofocus) .form-group .col-xs-12.col-md-1 label.control-label.control-label-story-submission(for='name') Description