Skip to content

Commit e943034

Browse files
authored
Merge pull request #3445 from CVEProject/rl-3391-unhead-seo
SEO Changes to INT (#3391)
2 parents e5dd64a + e0a0f61 commit e943034

File tree

7 files changed

+186
-2
lines changed

7 files changed

+186
-2
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" type="image/x-icon" href="/cvePurpleVFavicon.svg">
8-
<title>CVE Website</title>
8+
<link rel="canonical" href="https://cve.org">
99
<script src="https://cmp.osano.com/AzyhULTdPkqmy4aDN/46057d56-0263-4cca-abac-9adddada4f3b/osano.js"></script>
1010
</head>
1111
<body class="has-navbar-fixed-top">
12+
<h1 hidden>Common vulnerabilities and Exposures (CVE)</h1>
1213
<noscript>
1314
<strong>We're sorry but the CVE Website doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
1415
</noscript>

package-lock.json

Lines changed: 161 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"@fortawesome/free-regular-svg-icons": "^6.5.1",
2222
"@fortawesome/free-solid-svg-icons": "^6.5.1",
2323
"@fortawesome/vue-fontawesome": "^3.0.5",
24+
"@unhead/vue": "^1.11.18",
2425
"axios": "^1.6.5",
2526
"bulma": "^0.9.4",
2627
"bulma-timeline": "^3.0.5",

public/robots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
User-agent: *
2+
Disallow: /*.pdf$
3+
Disallow: /*.jpg$
4+
Disallow: /*.png$
5+
Disallow: /*.svg$
6+
Disallow: /*.css$
7+
Disallow: /images/
8+
Disallow: /Resources/

src/App.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import NotificationBannerModule from './components/NotificationBannerModule.vue'
2020
import FoooterModule from './components/FooterModule.vue';
2121
import NotFound from './views/NotFound.vue';
2222
import { usePartnerStore } from '@/stores/partners';
23+
import { useSeoMeta } from '@unhead/vue';
2324
2425
export default {
2526
components: {
@@ -35,6 +36,12 @@ export default {
3536
},
3637
beforeMount() {
3738
usePartnerStore().populatePartnerShortLongNameMap();
39+
useSeoMeta({
40+
title: 'CVE: Common Vulnerabilities and Exposures',
41+
description: 'At cve.org, we provide the authoritative '
42+
+ 'reference method for publicly known information-security '
43+
+ 'vulnerabilities and exposures'
44+
});
3845
}
3946
}
4047
</script>

src/components/HomeModule.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
</div>
2222
<div class="column cve-partnership-right-column">
2323
<figure class="image">
24-
<img src="@/assets/images/cvePartnershipGraphic.svg" class="cve-partnership-img" alt=""/>
24+
<img src="@/assets/images/cvePartnershipGraphic.svg"
25+
class="cve-partnership-img"
26+
alt="CVE Partnership Graphic"/>
2527
</figure>
2628
</div>
2729
</div>

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
import { createApp } from 'vue';
3+
import { createHead, VueHeadMixin } from '@unhead/vue';
34
import { createPinia } from 'pinia';
45
import VueGtag from 'vue-gtag';
56
import LoadScript from 'vue-plugin-load-script';
@@ -31,11 +32,14 @@ library.add(
3132

3233

3334
const app = createApp(App);
35+
const head = createHead();
3436
const pinia = createPinia();
3537
pinia.use(({ store }) => {
3638
store.router = router;
3739
});
3840
app.use(pinia);
41+
app.use(head);
42+
app.mixin(VueHeadMixin);
3943

4044
usePartnerStore().populatePartnerCounts();
4145

0 commit comments

Comments
 (0)