mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-05 19:06:37 +02:00
🐛 fix(map): custom sitemap config
This commit is contained in:
@@ -43,10 +43,28 @@ const config: Config = {
|
||||
theme: {
|
||||
customCss: './src/css/custom.css',
|
||||
},
|
||||
sitemap: false, // Disable the default sitemap plugin from the preset
|
||||
} satisfies Preset.Options,
|
||||
],
|
||||
],
|
||||
|
||||
plugins: [
|
||||
[
|
||||
'@docusaurus/plugin-sitemap',
|
||||
{
|
||||
changefreq: 'weekly',
|
||||
priority: 0.5,
|
||||
filename: 'sitemap.xml',
|
||||
ignorePatterns: ['/tags/**'],
|
||||
createSitemapItems: async (params) => {
|
||||
const {defaultCreateSitemapItems, ...rest} = params;
|
||||
const items = await defaultCreateSitemapItems(rest);
|
||||
return items.filter((item) => !item.url.includes('/page/'));
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
themeConfig: {
|
||||
image: 'img/snigdhaos-og.png', // Social media preview image
|
||||
navbar: {
|
||||
@@ -69,37 +87,35 @@ const config: Config = {
|
||||
},
|
||||
footer: {
|
||||
style: 'dark',
|
||||
// Remove all footer links
|
||||
links: [],
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Snigdha OS. Powered by Tonmoy Infrastructure.`,
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Snigdha OS. Powered by TONMOY INFRASTRUCTURE™.`,
|
||||
},
|
||||
prism: {
|
||||
theme: prismThemes.github,
|
||||
darkTheme: prismThemes.dracula,
|
||||
},
|
||||
// SEO Configuration
|
||||
metaTags: [
|
||||
{
|
||||
name: 'description',
|
||||
content: 'Snigdha OS is a lightweight, highly customizable Arch-based Linux distribution for general use and penetration testing.'
|
||||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
content: 'Snigdha OS, lightweight Linux, Arch Linux, Linux distribution, penetration testing, cybersecurity, customizable OS, open-source OS, lightweight operating system'
|
||||
},
|
||||
{
|
||||
property: 'og:image',
|
||||
content: 'img/snigdhaos-og.png' // Social media preview image
|
||||
},
|
||||
{
|
||||
property: 'og:title',
|
||||
content: 'Documentation | SNIGDHA OS'
|
||||
},
|
||||
{
|
||||
property: 'og:description',
|
||||
content: 'Official documentation for Snigdha OS, a lightweight Linux distribution based on Arch Linux and designed for customization and penetration testing.'
|
||||
},
|
||||
],
|
||||
metaTags: [
|
||||
{
|
||||
name: 'description',
|
||||
content: 'Snigdha OS is a lightweight, highly customizable Arch-based Linux distribution for general use and penetration testing.',
|
||||
},
|
||||
{
|
||||
name: 'keywords',
|
||||
content: 'Snigdha OS, lightweight Linux, Arch Linux, Linux distribution, penetration testing, cybersecurity, customizable OS, open-source OS, lightweight operating system',
|
||||
},
|
||||
{
|
||||
property: 'og:image',
|
||||
content: 'img/snigdhaos-og.png', // Social media preview image
|
||||
},
|
||||
{
|
||||
property: 'og:title',
|
||||
content: 'Documentation | SNIGDHA OS',
|
||||
},
|
||||
{
|
||||
property: 'og:description',
|
||||
content: 'Official documentation for Snigdha OS, a lightweight Linux distribution based on Arch Linux and designed for customization and penetration testing.',
|
||||
},
|
||||
],
|
||||
} satisfies Preset.ThemeConfig,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user