feat: create config.ts

This commit is contained in:
OLIMINATOR 2023-01-06 21:06:35 +01:00
parent a4fac55ef8
commit c28b639061
2 changed files with 61 additions and 24 deletions

View file

@ -1,17 +1,17 @@
import { defineConfig } from "astro/config"; import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind"; import tailwind from '@astrojs/tailwind';
import sitemap from "@astrojs/sitemap"; import sitemap from '@astrojs/sitemap';
import image from "@astrojs/image"; import image from '@astrojs/image';
import vercel from "@astrojs/vercel/static"; import vercel from '@astrojs/vercel/static';
import compress from "astro-compress"; import compress from 'astro-compress';
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
//site: SITE.origin, //site: SITE.origin,
base: "/", base: '/',
trailingSlash: "never", trailingSlash: 'never',
output: "static", output: 'static',
integrations: [ integrations: [
tailwind(), tailwind(),
sitemap(), sitemap(),

37
src/config.ts Normal file
View file

@ -0,0 +1,37 @@
export const SITE = {
title: 'Oliminator Odkazy',
description: 'soon.',
url: 'https://odkazy.oliminator.net',
themeColor: '#FF8A00',
};
export const OPEN_GRAPH = {
image: {
src: 'soon',
alt: 'soon',
},
twitter: 'oliminator34',
};
export const BUTTONS = [
{
name: 'YouTube',
background: 'youtube',
href: '/',
},
{
name: 'Instagram',
background: 'twitch',
href: '/',
},
{
name: 'Instagram',
background: 'twitch',
href: '/',
},
{
name: 'Instagram',
background: 'twitch',
href: '/',
},
];