Fix lint warnings.

This commit is contained in:
Marcus Dansarie 2021-04-18 18:11:00 +02:00
parent a14216a107
commit 359c261abf
No known key found for this signature in database
GPG Key ID: C108000EC3E121E6
1 changed files with 3 additions and 4 deletions

View File

@ -2,10 +2,9 @@ module.exports = {
siteUrl: 'https://skolplattformen.org',
generateRobotsTxt: true,
transform: async (config, path) => {
console.log(path)
dailypages = ['/aktuellt', '/status', '/qa']
changefreq = dailypages.includes(path) ? 'daily' : 'weekly'
priority = config.priority
let dailypages = ['/aktuellt', '/status', '/qa']
let changefreq = dailypages.includes(path) ? 'daily' : 'weekly'
let priority = config.priority
if (path == '/') {
priority = 1.0
} else if (path == '/aktuellt') {