Urara-Blog/src/lib/config/general.ts
2022-08-14 14:00:29 +08:00

219 lines
3.9 KiB
TypeScript

import type { ThemeConfig, HeadConfig, HeaderConfig, FooterConfig, DateConfig, FeedConfig } from '$lib/types/general'
export const theme: ThemeConfig = [
{
name: 'lemonade',
text: 'Light'
},
{
name: 'night',
text: 'Dark'
},
{
name: 'cupcake',
text: 'Cupcake'
},
{
name: 'bumblebee',
text: 'Bumblebee'
},
{
name: 'emerald',
text: 'Emerald'
},
{
name: 'corporate',
text: 'Corporate'
},
{
name: 'valentine',
text: 'Valentine'
},
{
name: 'synthwave',
text: 'Synthwave'
},
{
name: 'retro',
text: 'Retro'
},
{
name: 'cyberpunk',
text: 'Cyberpunk'
},
{
name: 'halloween',
text: 'Halloween'
},
{
name: 'garden',
text: 'Garden'
},
{
name: 'forest',
text: 'Forest'
},
{
name: 'aqua',
text: 'Aqua'
},
{
name: 'lofi',
text: 'Lo-Fi'
},
{
name: 'pastel',
text: 'Pastel'
},
{
name: 'fantasy',
text: 'Fantasy'
},
{
name: 'wirefream',
text: 'Wireframe'
},
{
name: 'black',
text: 'Black'
},
{
name: 'luxury',
text: 'Luxury'
},
{
name: 'dracula',
text: 'Dracula'
},
{
name: 'cmyk',
text: 'CMYK'
},
{
name: 'autumn',
text: 'Autumn'
},
{
name: 'business',
text: 'Business'
},
{
name: 'acid',
text: 'Acid'
},
// {
// name: 'lemonade',
// text: 'Lemonade'
// },
// {
// name: 'night',
// text: '🌃 Night'
// },
{
name: 'coffee',
text: 'Coffee'
},
{
name: 'winter',
text: 'Winter'
}
]
export const head: HeadConfig = {
custom: ({ dev }) =>
dev
? []
: [
// IndieAuth
'<link rel="authorization_endpoint" href="https://indieauth.com/auth">',
'<link rel="token_endpoint" href="https://tokens.indieauth.com/token">',
'<link rel="me" href="https://github.com/sevichecc" />',
// Umami Analytics
'<script data-cfasync="false" defer data-do-not-track="true" data-website-id="2403ea30-74ff-4ffa-8264-556b9f3b2897" src="https://hexoverc.vercel.app/umami.js"></script>',
// splitbee
'<script async data-cfasync="false" src="https://cdn.splitbee.io/sb.js"></script>',
// Block Baiduspider
'<meta name="baiduspider" content="noindex,noarchive">',
// Microsub
'<link rel="microsub" href="https://aperture.p3k.io/microsub/761">'
],
me: ['https://kongwoo.icu/@seviche']
}
export const header: HeaderConfig = {
search: {
provider: 'duckduckgo'
},
nav: [
{
text: 'Projects',
link: '/projects'
},
// {
// text: 'Notes',
// link: '/notes'
// },
{
text: 'Friends',
link: '/friends'
},
{
text: 'About',
link: '/about'
}
// ,
// {
// text: 'Notes',
// link: '/notes'
// }
]
}
export const footer: FooterConfig = {
nav: [
{
text: 'Feed',
link: '/atom.xml'
},
{
text: 'Pravicy',
link: '/privacy'
}
],
html: '<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>'
}
export const date: DateConfig = {
// toPublishedString: {
// locales: 'en-US',
// options: {
// year: 'numeric',
// weekday: 'short',
// month: 'short',
// day: 'numeric',
// timeZone: 'Asia/Shanghai'
// }
// },
// toUpdatedString: {
// locales: 'en-US',
// options: {
// year: 'numeric',
// weekday: 'short',
// month: 'short',
// day: 'numeric',
// timeZone: 'Asia/Shanghai'
// }
// },
locales: 'en-US',
options: {
year: 'numeric',
weekday: 'short',
month: 'short',
day: 'numeric',
timeZone: 'Asia/Shanghai'
}
}
export const feed: FeedConfig = {
hubs: ['https://pubsubhubbub.appspot.com', 'https://bridgy-fed.superfeedr.com']
}