mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-24 02:02:35 -04:00
feat(seo): lowercase keywords
This commit is contained in:
parent
be2cd38eea
commit
619deae438
@ -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…
x
Reference in New Issue
Block a user