add awsm theme

This commit is contained in:
polv committed 2020-12-15 20:00:14 +07:00
1 parent 7039b10df2
commit e397c9ae1e
15 files changed
+117 -115

No files matched your search

+12 -1
View File
@@ -18,7 +18,15 @@ const config = async (): Promise<NuxtConfig> => {
content: theme.description || '',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/media/favicon.ico' }],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/media/favicon.ico' },
{
rel: 'stylesheet',
href: theme.awsm
? `https://unpkg.com/awsm.css/dist/awsm_theme_${theme.awsm}.min.css`
: 'https://unpkg.com/awsm.css/dist/awsm.min.css',
},
],
},
// Global CSS (https://go.nuxtjs.dev/config-css)
@@ -47,6 +55,9 @@ const config = async (): Promise<NuxtConfig> => {
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {},
env: {
THEME: JSON.stringify(theme),
},
}
}