Skip to content

Commit

Permalink
Add news_keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
anagh-p committed May 26, 2017
1 parent 9ccd299 commit b4b0cd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quintype/Seo/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ protected function getKeywords($params = []){
}
$keywords = implode($keywordsArray, ',');
}
return $keywords;
}
return $keywords;
}

protected function getFacebookData($key){
Expand Down
1 change: 1 addition & 0 deletions src/Quintype/Seo/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function prepareTags() {
'title' => trim($this->getPageTitle()),
'description' => trim($this->getDescription()),
'keywords' => trim($this->getKeywords()),
'news_keywords' => trim($this->getKeywords()),
'og' => [
'title' => trim($this->getTitle()),
'description' => trim($this->getDescription())
Expand Down
1 change: 1 addition & 0 deletions src/Quintype/Seo/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function prepareTags() {
'title' => trim($this->getPageTitle()),
'description' => trim($this->getDescription()),
'keywords' => trim($this->getKeywords()),
'news_keywords' => trim($this->getKeywords()),
'og' => [
'title' => trim($this->getTitle()),
'description' => trim($this->getDescription())
Expand Down
1 change: 1 addition & 0 deletions src/Quintype/Seo/Story.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function prepareTags()
'title' => trim($this->getTitle()),
'description' => trim($this->getDescription()),
'keywords' => trim($this->getKeywords(["stories" => $this->story])),
'news_keywords' => trim($this->getKeywords(["stories" => $this->story])),
'section' => trim($this->getSectionName()),
'image_src' => $this->getHeroImageUrl(),
'og' => $this->getOgAttributes(),
Expand Down

0 comments on commit b4b0cd5

Please sign in to comment.