Skip to content

Commit

Permalink
Fallback when the page title is blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
anagh-p committed Sep 8, 2016
1 parent 83ce0d1 commit 415dc39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Quintype/Seo/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ function tags() {

protected function getPageTitle(){
if(isset($this->seoMetadata['page-title'])){
return $this->seoMetadata['page-title'];
if($this->seoMetadata['page-title']==''){
return $this->section . " - " . $this->config['title'];
}else{
return $this->seoMetadata['page-title'];
}
} else {
return $this->section . " - " . $this->config['title'];
}
Expand Down

0 comments on commit 415dc39

Please sign in to comment.