Skip to content
Snippets Groups Projects
Commit 99cef5ac authored by Henrik Askjer's avatar Henrik Askjer
Browse files

add no robots meta if no results

parent 1c54610f
No related branches found
No related tags found
No related merge requests found
......@@ -393,6 +393,9 @@ export default {
}
},
metaInfo() {
if (this.no_results) {
return {meta: [{name: "robots", content: 'none'}]}
}
let q = ""
if (this.$route.query.q) {
q = this.$route.query.q + " - "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment