Skip to content

Commit

Permalink
Merge pull request #170 from matsn0w/feat/seo
Browse files Browse the repository at this point in the history
feat: add seo meta tags
  • Loading branch information
matsn0w authored Nov 21, 2023
2 parents 59631d7 + d66dea1 commit a204656
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
12 changes: 11 additions & 1 deletion web/pages/configurator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,21 @@ import { resetVcfConfiguration } from "~/composables/vcfConfiguration";
import LocalStorageButton from "~/components/LocalStorageButton.vue";
import { compareVersions } from "compare-versions";

const url = useRequestURL();
const config = useRuntimeConfig();

useHead({
title: "MISS-ELS VCF Configurator",
});

const config = useRuntimeConfig();
useSeoMeta({
ogSiteName: "MISS-ELS",
title: "MISS-ELS VCF Configurator",
ogTitle: "MISS-ELS VCF Configurator",
ogDescription:
"Using our VCF Configurator, you can easily generate configuration files for your vehicles.",
ogImage: `${url.origin}/images/MISS-ELS.png`,
});

const isVcfSchemaVersionUpToDate = computed(() => {
return (
Expand Down
13 changes: 12 additions & 1 deletion web/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
</template>

<script setup lang="ts">
const url = useRequestURL();
useSeoMeta({
ogSiteName: "MISS-ELS",
title: "MISS-ELS - server sided sirens for FiveM",
ogTitle: "MISS-ELS - server sided sirens for FiveM",
ogDescription:
"Server-sided ELS for FiveM with custom patterns per vehicle, custom sirens, indicator control and more!",
ogImage: `${url.origin}/images/MISS-ELS.png`,
});
definePageMeta({
layout: "fullscreen",
});
Expand Down Expand Up @@ -52,7 +63,7 @@ const viewRelease = async () => {

<style>
.background {
background-image: url("~/assets/images/MISS-ELS.png");
background-image: url("/images/MISS-ELS.png");
background-size: cover;
background-position: center;
}
Expand Down
File renamed without changes

0 comments on commit a204656

Please sign in to comment.