Add images

This commit is contained in:
BruceChen 2022-11-02 21:49:54 +08:00
parent e5529eead9
commit be9a8b9a66
25 changed files with 84 additions and 35 deletions

View file

@ -1,8 +1,32 @@
import type { HeadConfig } from '@vuepress/core'
export const head: HeadConfig[] = [
["meta", { name: "theme-color", content: "#3eaf7c" }],
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black" }],
["link", { rel: "icon", href: "../../favicon.ico" }],
export const headConfig: HeadConfig[] = [
[
'link',
{
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: `/images/icons/favicon-16x16.png`,
},
],
[
'link',
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: `/images/icons/favicon-32x32.png`,
},
],
['link', { rel: 'manifest', href: '/manifest.webmanifest' }],
['meta', { name: 'application-name', content: 'MCC Doc' }],
['meta', { name: 'apple-mobile-web-app-title', content: 'MCC Doc' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
[
'link',
{ rel: 'apple-touch-icon', href: `/images/icons/apple-touch-icon.png` },
],
['meta', { name: 'msapplication-TileColor', content: '#3eaf7c' }],
['meta', { name: 'theme-color', content: '#3eaf7c' }],
]

View file

@ -1,14 +1,14 @@
import type { SiteLocaleData } from '@vuepress/shared'
import type { DefaultThemeLocaleData } from '@vuepress/theme-default'
import { head } from '../head.js'
import { headConfig } from '../head.js'
const Translation = require('../../translations/$LanguageCode$.json')
export const mainConfig_$LanguageCodeEscaped$: SiteLocaleData = {
export const mainConfig_$LanguageCodeEscaped$ = {
lang: '$LanguageCode$',
title: Translation.title,
description: Translation.description,
head: head
head: headConfig
}
export const defaultThemeConfig_$LanguageCodeEscaped$: DefaultThemeLocaleData = {

View file

@ -1,15 +1,15 @@
/* This file is automatically generated by "gen_configs.py" */
import type { SiteLocaleData } from '@vuepress/shared'
import type { DefaultThemeLocaleData } from '@vuepress/theme-default'
import { head } from '../head.js'
import { headConfig } from '../head.js'
const Translation = require('../../translations/en.json')
export const mainConfig_en: SiteLocaleData = {
export const mainConfig_en = {
lang: 'en',
title: Translation.title,
description: Translation.description,
head: head
head: headConfig
}
export const defaultThemeConfig_en: DefaultThemeLocaleData = {

View file

@ -1,15 +1,15 @@
/* This file is automatically generated by "gen_configs.py" */
import type { SiteLocaleData } from '@vuepress/shared'
import type { DefaultThemeLocaleData } from '@vuepress/theme-default'
import { head } from '../head.js'
import { headConfig } from '../head.js'
const Translation = require('../../translations/zh-Hans.json')
export const mainConfig_zh_Hans: SiteLocaleData = {
export const mainConfig_zh_Hans = {
lang: 'zh-Hans',
title: Translation.title,
description: Translation.description,
head: head
head: headConfig
}
export const defaultThemeConfig_zh_Hans: DefaultThemeLocaleData = {