Skip to content

Commit 036d6b9

Browse files
committedMay 31, 2021
updated SEO #36, added titles and description
1 parent 8758cb9 commit 036d6b9

File tree

10 files changed

+87
-23
lines changed

10 files changed

+87
-23
lines changed
 

‎package-lock.json

+9-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"lodash": "^4.17.21",
2020
"vue": "^2.6.12",
2121
"vue-izitoast": "^1.2.1",
22+
"vue-meta": "^2.4.0",
2223
"vue-moment": "^4.1.0",
2324
"vue-router": "^3.5.1",
2425
"vuetify": "^2.4.3",

‎public/index.html

+49-21
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,72 @@
22
<html lang="en">
33
<head>
44
<!-- Global site tag (gtag.js) - Google Analytics -->
5-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-149299578-1"></script>
5+
<script
6+
async
7+
src="https://www.googletagmanager.com/gtag/js?id=UA-149299578-1"
8+
></script>
69
<script>
710
window.dataLayer = window.dataLayer || [];
8-
function gtag(){dataLayer.push(arguments);}
9-
gtag('js', new Date());
11+
function gtag() {
12+
dataLayer.push(arguments);
13+
}
14+
gtag("js", new Date());
1015

11-
gtag('config', 'UA-149299578-1');
16+
gtag("config", "UA-149299578-1");
1217
</script>
1318

1419
<!-- Matomo -->
1520
<script type="text/javascript">
1621
var _paq = window._paq || [];
1722
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
18-
_paq.push(['trackPageView']);
19-
_paq.push(['enableLinkTracking']);
23+
_paq.push(["trackPageView"]);
24+
_paq.push(["enableLinkTracking"]);
2025
(function() {
21-
var u="https://geocollections.info/statistikat/";
22-
_paq.push(['setTrackerUrl', u+'matomo.php']);
23-
_paq.push(['setSiteId', '24']);
24-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
25-
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
26+
var u = "https://geocollections.info/statistikat/";
27+
_paq.push(["setTrackerUrl", u + "matomo.php"]);
28+
_paq.push(["setSiteId", "24"]);
29+
var d = document,
30+
g = d.createElement("script"),
31+
s = d.getElementsByTagName("script")[0];
32+
g.type = "text/javascript";
33+
g.async = true;
34+
g.defer = true;
35+
g.src = u + "matomo.js";
36+
s.parentNode.insertBefore(g, s);
2637
})();
2738
</script>
2839
<!-- End Matomo Code -->
2940

30-
<meta charset="utf-8">
31-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
32-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
33-
<meta name="theme-color" content="#0097A7">
34-
<meta name="apple-mobile-web-app-status-bar-style" content="#0097A7">
35-
<meta name="description" content="SARV-DOI is a data repository that assigns DOI identifiers to various geoscientific data sets, images, text and other digital information of permanent value. It is part of the Estonian Geocollections Information System and member of the DataCite Estonia national consortium.">
36-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
37-
<title>SARV DOI</title>
38-
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">-->
41+
<meta charset="utf-8" />
42+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
43+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
44+
<meta name="theme-color" content="#0097A7" />
45+
<meta name="apple-mobile-web-app-status-bar-style" content="#0097A7" />
46+
<meta
47+
name="description"
48+
content="SARV-DOI is a data repository that assigns DOI identifiers to various geoscientific data sets, images, text and other digital information of permanent value. It is part of the Estonian Geocollections Information System and member of the DataCite Estonia national consortium."
49+
/>
50+
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
51+
<title>Geoscience Data Repository | SARV·DOI</title>
52+
53+
<meta property="og:url" content="https://doi.geocollections.info/" />
54+
<meta property="og:type" content="website" />
55+
<meta property="og:title" content="Geoscience Data Repository" />
56+
<meta
57+
property="og:description"
58+
content="SARV-DOI is a data repository that assigns DOI identifiers to various geoscientific data sets, images, text and other digital information of permanent value. It is part of the Estonian Geocollections Information System and member of the DataCite Estonia national consortium."
59+
/>
60+
<meta
61+
property="og:image"
62+
content="https://files.geocollections.info/img/doi/header.jpg"
63+
/>
3964
</head>
4065
<body>
4166
<noscript>
42-
<strong>We're sorry but SARV DOI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
67+
<strong
68+
>We're sorry but SARV DOI doesn't work properly without JavaScript
69+
enabled. Please enable it to continue.</strong
70+
>
4371
</noscript>
4472
<div id="app"></div>
4573
<!-- built files will be auto injected -->

‎src/App.vue

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export default {
1717
components: {
1818
AppHeader,
1919
AppFooter
20+
},
21+
metaInfo: {
22+
title: "Geoscience Data Repository",
23+
titleTemplate: "%s | SARV·DOI"
2024
}
2125
};
2226
</script>

‎src/components/doi/Doi.vue

+12
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,18 @@ import EgfFileDownload from "../partial/EgfFileDownload";
498498
export default {
499499
name: "Doi",
500500
components: { EgfFileDownload, FilePreview, Map },
501+
metaInfo() {
502+
let identifier,
503+
description = "";
504+
if (this.doi.doi) {
505+
identifier = `DOI: ${this.doi.doi[0].identifier}`;
506+
description = this.doi.doi[0].title;
507+
}
508+
return {
509+
title: identifier,
510+
description: description
511+
};
512+
},
501513
data: () => ({
502514
egfUrl: "https://fond.egt.ee/fond/egf/",
503515
showGeolocationsTable: false,

‎src/main.js

+2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import router from "./router";
44
import vuetify from "./plugins/vuetify";
55
import store from "./store";
66
import VueIziToast from "vue-izitoast";
7+
import VueMeta from "vue-meta";
78
import "@fortawesome/fontawesome-free/css/all.css";
89
import "izitoast/dist/css/iziToast.min.css";
910

1011
Vue.config.productionTip = false;
1112

1213
Vue.use(require("vue-moment"));
1314
Vue.use(VueIziToast);
15+
Vue.use(VueMeta);
1416

1517
new Vue({
1618
router,

‎src/views/About.vue

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ import { mapActions, mapState } from "vuex";
5353
5454
export default {
5555
name: "About",
56+
metaInfo: {
57+
title: "About"
58+
},
5659
created() {
5760
this.getAboutPageInfo();
5861
},

‎src/views/DoiHowTo.vue

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ import { mapActions, mapState } from "vuex";
5353
5454
export default {
5555
name: "DoiHowTo",
56+
metaInfo: {
57+
title: "How-To"
58+
},
5659
created() {
5760
this.getDoiHowToInfo();
5861
},

‎src/views/Dois.vue

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ import ListModuleCore from "../components/partial/ListModuleCore";
1818
1919
export default {
2020
name: "Dois",
21+
metaInfo: {
22+
title: "DOIs"
23+
},
2124
components: {
2225
ListModuleCore
2326
},

‎vue.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
productionSourceMap: false,
66
// EDGE doesn't work otherwise
77
transpileDependencies: ["vuetify"],
8+
parallel: process.env.CI ? +process.env.CIRCLE_NODE_TOTAL : undefined,
89
pluginOptions: {
910
sitemap: {
1011
productionOnly: true,

0 commit comments

Comments
 (0)
Please sign in to comment.