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 @@
</template>
<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>
<style></style>
<template>
<div>
<h1 class="font-weight-light">Acknoledgement</h1>
<h1 class="font-weight-light">Acknowledgement</h1>
<v-divider />
<br />
<p class="text-justify">
......@@ -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>
......
......@@ -4,6 +4,7 @@
<script>
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 {
components: {
......@@ -15,6 +16,42 @@ export default {
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>
......
<template>
<div>
<h1 class="font-weight-light">Cookie statement</h1>
<h1 class="font-weight-light">Cookie Statement</h1>
<v-divider />
<br />
<p class="text-justify">
......@@ -52,7 +52,43 @@
</template>
<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>
<style></style>
......@@ -12,7 +12,44 @@
</template>
<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>
<style></style>
......@@ -52,6 +52,37 @@ export default {
Sponsors,
},
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: {
esProxyBaseUrl() {
return process.env.esProxyBaseUrl
......
......@@ -17,7 +17,43 @@
</template>
<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>
<style></style>
......@@ -3,6 +3,7 @@
</template>
<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'
export default {
components: {
......@@ -14,6 +15,42 @@ export default {
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: {
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