feat(theme): better title and description
This commit is contained in:
parent
0f4ca16ccc
commit
aa61585665
8
.github/add-headers.py
vendored
8
.github/add-headers.py
vendored
@ -64,6 +64,10 @@ headers = {
|
|||||||
"UnsafeSites.md": ["Unsafe Sites", "Unsafe/harmful sites to avoid."],
|
"UnsafeSites.md": ["Unsafe Sites", "Unsafe/harmful sites to avoid."],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
title = '<div class="space-y-2 not-prose"><h1 class="text-4xl font-extrabold tracking-tight lg:text-5xl lg:leading-[3.5rem]">'
|
||||||
|
|
||||||
|
description = '<p class="text-gray-500 dark:text-gray-400">'
|
||||||
|
|
||||||
|
|
||||||
def getHeader(page: str):
|
def getHeader(page: str):
|
||||||
data = headers[page]
|
data = headers[page]
|
||||||
@ -71,8 +75,8 @@ def getHeader(page: str):
|
|||||||
header += f'title: "{data[0]}"\n'
|
header += f'title: "{data[0]}"\n'
|
||||||
header += f"description: {data[1]}\n"
|
header += f"description: {data[1]}\n"
|
||||||
header += "---\n"
|
header += "---\n"
|
||||||
header += f"# {data[0]}\n"
|
header += f"{title}{data[0]}</h1>\n"
|
||||||
header += f"{data[1]}\n\n"
|
header += f"{description}{data[1]}</p></div>\n\n"
|
||||||
return header
|
return header
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,6 +87,8 @@ export default defineConfig({
|
|||||||
outline: 'deep',
|
outline: 'deep',
|
||||||
logo: '/fmhy.ico',
|
logo: '/fmhy.ico',
|
||||||
nav: [
|
nav: [
|
||||||
|
// @ts-expect-error
|
||||||
|
{ text: 'Collection', items: sidebar },
|
||||||
{ text: 'Beginners Guide', link: '/beginners-guide' },
|
{ text: 'Beginners Guide', link: '/beginners-guide' },
|
||||||
{ text: 'Glossary', link: 'https://rentry.org/The-Piracy-Glossary' },
|
{ text: 'Glossary', link: 'https://rentry.org/The-Piracy-Glossary' },
|
||||||
{ text: 'Guides', link: 'https://rentry.co/fmhy-guides' },
|
{ text: 'Guides', link: 'https://rentry.co/fmhy-guides' },
|
||||||
@ -95,10 +97,11 @@ export default defineConfig({
|
|||||||
link: 'https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/backups'
|
link: 'https://www.reddit.com/r/FREEMEDIAHECKYEAH/wiki/backups'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'About',
|
text: 'Ecosystem',
|
||||||
items: [
|
items: [
|
||||||
{ text: 'Posts', link: '/posts' },
|
{ text: 'Posts', link: '/posts' },
|
||||||
{ text: 'Feedback', link: '/feedback' }
|
{ text: 'Feedback', link: '/feedback' },
|
||||||
|
{ text: 'snowbin', link: 'https://pastes.fmhy.net' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
import type { DefaultTheme } from 'vitepress'
|
import type { DefaultTheme } from 'vitepress'
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
name: 'FreeMediaHeckYeah',
|
name: 'freemediaheckyeah',
|
||||||
description: 'The largest collection of free stuff on the internet!',
|
description: 'The largest collection of free stuff on the internet!',
|
||||||
hostname: 'https://fmhy.net',
|
hostname: 'https://fmhy.net',
|
||||||
keywords: ['stream', 'movies', 'gaming', 'reading', 'anime']
|
keywords: ['stream', 'movies', 'gaming', 'reading', 'anime']
|
||||||
}
|
}
|
||||||
|
|
||||||
export const commitRef = process.env.CF_PAGES
|
export const commitRef = process.env.CF_PAGES
|
||||||
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${
|
? `<a href="https://github.com/fmhy/FMHYEdit/commit/${process.env.CF_PAGES_COMMIT_SHA
|
||||||
process.env.CF_PAGES_COMMIT_SHA
|
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
||||||
}">${process.env.CF_PAGES_COMMIT_SHA.slice(0, 8)}</a>`
|
|
||||||
: 'dev'
|
: 'dev'
|
||||||
|
|
||||||
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤️</a>`
|
export const feedback = `<a href="/feedback" class="feedback-footer">Made with ❤️</a>`
|
||||||
@ -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: '📛 Adblocking / Privacy', link: '/adblockvpnguide' },
|
||||||
{ text: '🤖 Artificial Intelligence', link: '/ai' },
|
{ text: '🤖 Artificial Intelligence', link: '/ai' },
|
||||||
{ text: '📺 Movies / TV / Anime', link: '/videopiracyguide' },
|
{ text: '📺 Movies / TV / Anime', link: '/videopiracyguide' },
|
||||||
|
Loading…
Reference in New Issue
Block a user