Skip to content
Snippets Groups Projects
Commit fec89ad7 authored by David Mendez's avatar David Mendez
Browse files

Eubopen: add metadata for all pages

parent 47e5c9f8
No related branches found
No related tags found
1 merge request!40Add basic metadata to all pages
...@@ -8,7 +8,44 @@ ...@@ -8,7 +8,44 @@
</template> </template>
<script> <script>
export default {} export default {
head() {
const titleText = `Accessibility`
const descriptionText =
'Read the accessibility statement for the EUbOPEN Portal.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
meta: [
{
hid: 'description',
name: 'description',
content: descriptionText,
},
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
}
</script> </script>
<style></style> <style></style>
<template> <template>
<div> <div>
<h1 class="font-weight-light">Acknoledgement</h1> <h1 class="font-weight-light">Acknowledgement</h1>
<v-divider /> <v-divider />
<br /> <br />
<p class="text-justify"> <p class="text-justify">
...@@ -72,6 +72,42 @@ export default { ...@@ -72,6 +72,42 @@ export default {
], ],
} }
}, },
head() {
const titleText = `Acknowledgement`
const descriptionText =
'Read the acknowledgement statement for the EUbOPEN Portal.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
meta: [
{
hid: 'description',
name: 'description',
content: descriptionText,
},
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
} }
</script> </script>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<script> <script>
import EBCompoundsBrowser from '~/web-components-submodule/components/common/Browsers/specific_browsers/compound/eubopen/EBCompoundsBrowser.vue' import EBCompoundsBrowser from '~/web-components-submodule/components/common/Browsers/specific_browsers/compound/eubopen/EBCompoundsBrowser.vue'
import EntityNames from '~/web-components-submodule/standardisation/EntityNames.js'
export default { export default {
components: { components: {
...@@ -15,6 +16,42 @@ export default { ...@@ -15,6 +16,42 @@ export default {
isEmbedded: false, isEmbedded: false,
} }
}, },
head() {
const titleText = `Explore all ${EntityNames.EubopenCompound.pluralEntityName}.`
const descriptionText =
'The EUbOPEN consortium is an Innovative Medicines Initiative (IMI) funded project to enable and unlock biology in the open.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
title: titleText,
meta: [
{
hid: 'description',
name: 'description',
content: descriptionText,
},
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
} }
</script> </script>
......
<template> <template>
<div> <div>
<h1 class="font-weight-light">Cookie statement</h1> <h1 class="font-weight-light">Cookie Statement</h1>
<v-divider /> <v-divider />
<br /> <br />
<p class="text-justify"> <p class="text-justify">
...@@ -52,7 +52,43 @@ ...@@ -52,7 +52,43 @@
</template> </template>
<script> <script>
export default {} export default {
head() {
const titleText = `Cookie Statement`
const descriptionText = 'Read the cookie statement for the EUbOPEN Portal.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
meta: [
{
hid: 'description',
name: 'description',
content: descriptionText,
},
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
}
</script> </script>
<style></style> <style></style>
...@@ -12,7 +12,44 @@ ...@@ -12,7 +12,44 @@
</template> </template>
<script> <script>
export default {} export default {
head() {
const titleText = `Disclaimer`
const descriptionText =
'Read the disclaimer statement for the EUbOPEN Portal.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
meta: [
{
hid: 'description',
name: 'description',
content: descriptionText,
},
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
}
</script> </script>
<style></style> <style></style>
...@@ -52,6 +52,37 @@ export default { ...@@ -52,6 +52,37 @@ export default {
Sponsors, Sponsors,
}, },
layout: 'default', layout: 'default',
head() {
const titleText = `Welcome to the EUbOPEN Portal`
const descriptionText =
'The EUbOPEN consortium is an Innovative Medicines Initiative (IMI) funded project to enable and unlock biology in the open.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
meta: [
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
computed: { computed: {
esProxyBaseUrl() { esProxyBaseUrl() {
return process.env.esProxyBaseUrl return process.env.esProxyBaseUrl
......
...@@ -17,7 +17,43 @@ ...@@ -17,7 +17,43 @@
</template> </template>
<script> <script>
export default {} export default {
head() {
const titleText = `Privacy Notice`
const descriptionText = 'Read the privacy notice for the EUbOPEN Portal.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
meta: [
{
hid: 'description',
name: 'description',
content: descriptionText,
},
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
}
</script> </script>
<style></style> <style></style>
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
</template> </template>
<script> <script>
import EntityNames from '~/web-components-submodule/standardisation/EntityNames.js'
import EBTargetsBrowser from '~/web-components-submodule/components/common/Browsers/specific_browsers/compound/eubopen/EBTargetsBrowser.vue' import EBTargetsBrowser from '~/web-components-submodule/components/common/Browsers/specific_browsers/compound/eubopen/EBTargetsBrowser.vue'
export default { export default {
components: { components: {
...@@ -14,6 +15,42 @@ export default { ...@@ -14,6 +15,42 @@ export default {
isEmbedded: false, isEmbedded: false,
} }
}, },
head() {
const titleText = `Explore all ${EntityNames.EubopenTarget.pluralEntityName}.`
const descriptionText =
'The EUbOPEN consortium is an Innovative Medicines Initiative (IMI) funded project to enable and unlock biology in the open.'
const canonicalURL =
`https://${process.env.primaryDomain}` + this.$route.path
const imgURL = `https://${
process.env.primaryDomain
}${require('~/static/img/logo.png')}`
return {
title: titleText,
meta: [
{
hid: 'description',
name: 'description',
content: descriptionText,
},
{ hid: 'og:title', name: 'og:title', content: titleText },
{
hid: 'og:description',
name: 'og:description',
content: descriptionText,
},
{ hid: 'og:type', name: 'og:type', content: 'object' },
{ hid: 'og:url', name: 'og:url', content: canonicalURL },
{ hid: 'og:image', name: 'og:image', content: imgURL },
],
link: [
{
rel: 'canonical',
href: canonicalURL,
},
],
}
},
computed: { computed: {
state() { state() {
return this.$route.params.state return this.$route.params.state
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment