Skip to content

Commit

Permalink
SEO: add "unhead" for meta; add title, heading, & description
Browse files Browse the repository at this point in the history
  • Loading branch information
rlxdev committed Jan 27, 2025
1 parent d03a63d commit ba16320
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/cvePurpleVFavicon.svg">
<title>CVE Website</title>
<link rel="canonical" href="https://cve.org">
<script src="https://cmp.osano.com/AzyhULTdPkqmy4aDN/46057d56-0263-4cca-abac-9adddada4f3b/osano.js"></script>
</head>
<body class="has-navbar-fixed-top">
<h1 hidden>Common vulnerabilities and Exposures (CVE)</h1>
<noscript>
<strong>We're sorry but the CVE Website doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
Expand Down
161 changes: 161 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/vue-fontawesome": "^3.0.5",
"@unhead/vue": "^1.11.18",
"axios": "^1.6.5",
"bulma": "^0.9.4",
"bulma-timeline": "^3.0.5",
Expand Down
7 changes: 7 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import NotificationBannerModule from './components/NotificationBannerModule.vue'
import FoooterModule from './components/FooterModule.vue';
import NotFound from './views/NotFound.vue';
import { usePartnerStore } from '@/stores/partners';
import { useSeoMeta } from '@unhead/vue';
export default {
components: {
Expand All @@ -35,6 +36,12 @@ export default {
},
beforeMount() {
usePartnerStore().populatePartnerShortLongNameMap();
useSeoMeta({
title: 'CVE: Common Vulnerabilities and Exposures',
description: 'At cve.org, we provide the authoritative '
+ 'reference method for publicly known information-security '
+ 'vulnerabilities and exposures'
});
}
}
</script>
Expand Down
4 changes: 3 additions & 1 deletion src/components/HomeModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
</div>
<div class="column cve-partnership-right-column">
<figure class="image">
<img src="@/assets/images/cvePartnershipGraphic.svg" class="cve-partnership-img" alt=""/>
<img src="@/assets/images/cvePartnershipGraphic.svg"
class="cve-partnership-img"
alt="CVE Partnership Graphic"/>
</figure>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

import { createApp } from 'vue';
import { createHead, VueHeadMixin } from '@unhead/vue';
import { createPinia } from 'pinia';
import VueGtag from 'vue-gtag';
import LoadScript from 'vue-plugin-load-script';
Expand Down Expand Up @@ -31,11 +32,14 @@ library.add(


const app = createApp(App);
const head = createHead();
const pinia = createPinia();
pinia.use(({ store }) => {
store.router = router;
});
app.use(pinia);
app.use(head);
app.mixin(VueHeadMixin);

usePartnerStore().populatePartnerCounts();

Expand Down

0 comments on commit ba16320

Please sign in to comment.