Refactor and add more configuration to src/config.mjs

This commit is contained in:
prototypa
2023-01-06 16:01:06 -05:00
parent ba2b6081ed
commit f6672ce070
8 changed files with 99 additions and 72 deletions

View File

@ -1,6 +1,6 @@
import defaultImage from './assets/images/default.png';
export const SITE = {
const CONFIG = {
name: 'AstroWind',
origin: 'https://astrowind.vercel.app',
@ -9,39 +9,42 @@ export const SITE = {
title: 'AstroWind — Your website with Astro + Tailwind CSS',
description: '🚀 AstroWind is a free and ready to start template to make your website using Astro and Tailwind CSS.',
defaultImage: defaultImage,
defaultTheme: "system", // "system" | "light" | "dark" | "light:only" | "dark:only"
defaultTheme: 'system', // Values: "system" | "light" | "dark" | "light:only" | "dark:only"
googleAnalyticsId: false, // or "G-XXXXXXXXXX",
googleSiteVerificationId: 'orcPxI47GSa-cRvY11tUe6iGg2IO_RPvnA1q95iEM3M',
};
export const BLOG = {
disabled: false,
postsPerPage: 4,
blog: {
disabled: false,
pathname: 'blog', // blog main path, you can change this to "articles" (/articles)
noindex: false,
},
postsPerPage: 4,
post: {
disabled: false,
pathname: '', // empty for /some-post, value for /pathname/some-post
noindex: false,
},
list: {
pathname: 'blog', // blog main path, you can change this to "articles" (/articles)
noindex: false,
disabled: false,
},
category: {
disabled: false,
pathname: 'category', // set empty to change from /category/some-category to /some-category
noindex: true,
},
post: {
pathname: '', // empty for /some-post, value for /pathname/some-post
noindex: false,
disabled: false,
},
tag: {
disabled: false,
pathname: 'tag', // set empty to change from /tag/some-tag to /some-tag
noindex: true,
category: {
pathname: 'category', // set empty to change from /category/some-category to /some-category
noindex: true,
disabled: false,
},
tag: {
pathname: 'tag', // set empty to change from /tag/some-tag to /some-tag
noindex: true,
disabled: false,
},
},
};
export const SITE = { ...CONFIG, blog: undefined };
export const BLOG = CONFIG.blog;