(blog) replace hardcoded link to /blog with configured value

This commit is contained in:
Valentyne Stigloher 2024-06-06 16:37:32 +02:00
parent f26a75dec2
commit 08721e96fb

View File

@ -77,7 +77,7 @@ export default {
generateLink(slug) {
return this.shortcuts[slug] !== undefined && !(this.$config.blog.keepFullPath || []).includes(slug)
? `/${this.shortcuts[slug]}`
: `/blog/${slug}`;
: `/${this.$config.links.blogRoute}/${slug}`;
},
},
};