From aa615856654a287b6dcf3ca2fb5c34f732e0fad6 Mon Sep 17 00:00:00 2001
From: taskylizard <75871323+taskylizard@users.noreply.github.com>
Date: Fri, 26 Jan 2024 16:57:58 +0000
Subject: [PATCH] feat(theme): better title and description
---
.github/add-headers.py | 8 ++++++--
.vitepress/config.mts | 7 +++++--
.vitepress/constants.ts | 9 ++++-----
3 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/.github/add-headers.py b/.github/add-headers.py
index 3b3e878b5..12ba0ff24 100644
--- a/.github/add-headers.py
+++ b/.github/add-headers.py
@@ -64,6 +64,10 @@ headers = {
"UnsafeSites.md": ["Unsafe Sites", "Unsafe/harmful sites to avoid."],
}
+title = '
'
+
def getHeader(page: str):
data = headers[page]
@@ -71,8 +75,8 @@ def getHeader(page: str):
header += f'title: "{data[0]}"\n'
header += f"description: {data[1]}\n"
header += "---\n"
- header += f"# {data[0]}\n"
- header += f"{data[1]}\n\n"
+ header += f"{title}{data[0]}\n"
+ header += f"{description}{data[1]}
\n\n"
return header
diff --git a/.vitepress/config.mts b/.vitepress/config.mts
index 097692c7c..5e62fa9da 100644
--- a/.vitepress/config.mts
+++ b/.vitepress/config.mts
@@ -87,6 +87,8 @@ export default defineConfig({
outline: 'deep',
logo: '/fmhy.ico',
nav: [
+ // @ts-expect-error
+ { text: 'Collection', items: sidebar },
{ text: 'Beginners Guide', link: '/beginners-guide' },
{ text: 'Glossary', link: 'https://rentry.org/The-Piracy-Glossary' },
{ text: 'Guides', link: 'https://rentry.co/fmhy-guides' },
@@ -95,10 +97,11 @@ export default defineConfig({
link: 'https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/backups'
},
{
- text: 'About',
+ text: 'Ecosystem',
items: [
{ text: 'Posts', link: '/posts' },
- { text: 'Feedback', link: '/feedback' }
+ { text: 'Feedback', link: '/feedback' },
+ { text: 'snowbin', link: 'https://pastes.fmhy.net' }
]
}
],
diff --git a/.vitepress/constants.ts b/.vitepress/constants.ts
index 7f67f2145..f6540d600 100644
--- a/.vitepress/constants.ts
+++ b/.vitepress/constants.ts
@@ -1,16 +1,15 @@
import type { DefaultTheme } from 'vitepress'
export const meta = {
- name: 'FreeMediaHeckYeah',
+ name: 'freemediaheckyeah',
description: 'The largest collection of free stuff on the internet!',
hostname: 'https://fmhy.net',
keywords: ['stream', 'movies', 'gaming', 'reading', 'anime']
}
export const commitRef = process.env.CF_PAGES
- ? `${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}`
+ ? `${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}`
: 'dev'
export const feedback = ``
@@ -55,7 +54,7 @@ export const socialLinks: DefaultTheme.SocialLink[] = [
}
]
-export const sidebar: DefaultTheme.Sidebar = [
+export const sidebar: DefaultTheme.Sidebar | DefaultTheme.NavItemWithLink[] = [
{ text: '📛 Adblocking / Privacy', link: '/adblockvpnguide' },
{ text: '🤖 Artificial Intelligence', link: '/ai' },
{ text: '📺 Movies / TV / Anime', link: '/videopiracyguide' },