Skip to content

Commit

Permalink
website: Add structure data for SEO
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <[email protected]>
  • Loading branch information
Rem01Gaming committed Nov 19, 2024
1 parent 69cdb9c commit 655a58e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions website/docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Encore Tweaks",
description: "The Encore Tweaks Magisk Module is here to boost your device gaming performances but also keep battery life on normal usage",
description: "A powerful performance magisk module featuring advanced App Monitoring, universal SoC support, and a WebUI for seamless configuration with KernelSU.",
ignoreDeadLinks: true,

sitemap: {
Expand All @@ -24,7 +24,6 @@ export default defineConfig({
pageData.frontmatter.head.push(['link', { rel: "canonical", href: canonicalUrl }])
pageData.frontmatter.head.push(['meta', { name: "hostname", content: "encore.rem01gaming.dev"}])
pageData.frontmatter.head.push(['meta', { name: "expected-hostname", content: "encore.rem01gaming.dev"}])
pageData.frontmatter.head.push(['meta', { name: "author", content: "Rem01Gaming"}])
pageData.frontmatter.head.push(['meta', { name: "keywords", content: "Encore Tweaks, Encore Tweak, Magisk Module, performance module, Magisk, Gaming, Android, Module magisk, gaming performance" }])
pageData.frontmatter.head.push(['meta', { property: "og:type", content: "website"}])
pageData.frontmatter.head.push(['meta', { property: "og:title", content: pageData.frontmatter.layout === 'home' ? pageData.title : `${pageData.title} | Encore Tweaks` }])
Expand All @@ -37,6 +36,21 @@ export default defineConfig({
pageData.frontmatter.head.push(['meta', { property: "twitter:image", content: ogImage }])
pageData.frontmatter.head.push(['meta', { property: "twitter:title", content: pageData.frontmatter.layout === 'home' ? pageData.title : `${pageData.title} | Encore Tweaks` }])
pageData.frontmatter.head.push(['meta', { property: "twitter:description", content: pageData.description }])

// Add structured data for the home page only
if (pageData.relativePath === 'index.md') {
pageData.frontmatter.head.push([
'script',
{ type: "application/ld+json" },
JSON.stringify({
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Encore Tweaks",
"alternateName": "Encore Tweak",
"url": "https://encore.rem01gaming.dev/"
})
]);
}
},

themeConfig: {
Expand Down
4 changes: 2 additions & 2 deletions website/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Encore Tweaks Magisk Module: Special performance module for your device"
description: "The Encore Tweaks Magisk Module is here to boost your device gaming performance but also keeping battery life on normal usage"
title: "Encore Tweaks"
description: "A powerful performance module featuring advanced App Monitoring, universal SoC support, and a WebUI for seamless configuration with KernelSU."
layout: home

hero:
Expand Down

0 comments on commit 655a58e

Please sign in to comment.