mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 00:43:50 +01:00
(enhance) fonts in mainland china
This commit is contained in:
parent
11a3800b1a
commit
c555a762c9
8
app.vue
8
app.vue
@ -76,8 +76,14 @@ const head = useLocaleHead({
|
||||
* fonts.googleapis.com → fonts.googleapis.cn
|
||||
**/
|
||||
const cnHead = (locale.value === 'cn') ? [
|
||||
{ rel: 'preconnect', href: 'https://fonts.googleapis.cn' },
|
||||
{ rel: 'preconnect', href: 'https://fonts.gstatic.cn' },
|
||||
{ rel: 'stylesheet', href: 'https://fonts.googleapis.cn/css2?family=Capriola&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap' }
|
||||
] : [];
|
||||
] : [
|
||||
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
||||
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
|
||||
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Capriola&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap' },
|
||||
];
|
||||
|
||||
useHead((): Record<string, any> => ({
|
||||
htmlAttrs: {
|
||||
|
@ -40,9 +40,6 @@ export default defineNuxtConfig({
|
||||
app: {
|
||||
head: {
|
||||
link: [
|
||||
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
||||
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
|
||||
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Capriola&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap' },
|
||||
{ rel: 'stylesheet', href: '/fonts/fonts.css' },
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user