You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
291 B
JavaScript
11 lines
291 B
JavaScript
8 years ago
|
export default function scorePageInLink(pageNum, isWp) {
|
||
|
// page in the link = bonus. Intentionally ignore wordpress because
|
||
|
// their ?p=123 link style gets caught by this even though it means
|
||
|
// separate documents entirely.
|
||
|
if (pageNum && !isWp) {
|
||
|
return 50;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|