mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
fix: seo
This commit is contained in:
parent
5dd132340e
commit
31592426a8
@ -54,7 +54,8 @@ module.exports = {
|
||||
selector: ($, pathname) => {
|
||||
let description = '';
|
||||
if (pathname !== '/') {
|
||||
description = ($('section.markdown p').text() || '').slice(0, 50);
|
||||
const desc = ($('section.markdown p').text() || '');
|
||||
description = desc.length > 50 ? `${desc.slice(0, 50)}...` : desc;
|
||||
}
|
||||
console.log('description', description);
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user