mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Add page title fallback, just in case
This commit is contained in:
parent
728ae7651b
commit
1ee97bc282
|
@ -8,7 +8,7 @@ import socialImageApi from '../images/social_api.jpg'
|
|||
import socialImageUniverse from '../images/social_universe.jpg'
|
||||
|
||||
function getPageTitle(title, sitename, slogan, sectionTitle) {
|
||||
if (sectionTitle) {
|
||||
if (sectionTitle && title) {
|
||||
return `${title} · ${sitename} ${sectionTitle}`
|
||||
}
|
||||
if (title) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user