mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 07:16:15 -04:00
feat(seo): lowercase keywords
This commit is contained in:
parent
be2cd38eea
commit
619deae438
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ export default class Tool extends Vue {
|
|||
public head() {
|
||||
const {title, description, keywords} = this.config()
|
||||
|
||||
const uniqueKeywords = [...new Set([...keywords, ...title.split(/\s+/)])]
|
||||
const uniqueKeywordsCleaned = [...new Set([...keywords, ...title.split(/\s+/)].map(s => s.trim().toLowerCase()))]
|
||||
|
||||
return {
|
||||
title,
|
||||
|
@ -24,7 +24,7 @@ export default class Tool extends Vue {
|
|||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
content: uniqueKeywords,
|
||||
content: uniqueKeywordsCleaned,
|
||||
hid: 'keywords'
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue