Skip to content

Commit 4523d2b

Browse files
committed
chore: reorganize assets and set up manifests
1 parent a1f4598 commit 4523d2b

22 files changed

+118
-23
lines changed

docs/.vuepress/config.ts

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,47 @@ import { navbar, sidebar } from './configs'
77
const config: UserConfig<DefaultThemeOptions> = {
88
base: '/',
99

10-
head: [['link', { rel: 'icon', href: `/logo.png` }]],
10+
head: [
11+
[
12+
'link',
13+
{
14+
rel: 'icon',
15+
type: 'image/png',
16+
sizes: '16x16',
17+
href: `/images/icons/favicon-16x16.png`,
18+
},
19+
],
20+
[
21+
'link',
22+
{
23+
rel: 'icon',
24+
type: 'image/png',
25+
sizes: '32x32',
26+
href: `/images/icons/favicon-32x32.png`,
27+
},
28+
],
29+
['link', { rel: 'manifest', href: '/manifest.webmanifest' }],
30+
['meta', { name: 'application-name', content: 'VuePress' }],
31+
['meta', { name: 'apple-mobile-web-app-title', content: 'VuePress' }],
32+
[
33+
'meta',
34+
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black' },
35+
],
36+
[
37+
'link',
38+
{ rel: 'apple-touch-icon', href: `/images/icons/apple-touch-icon.png` },
39+
],
40+
[
41+
'link',
42+
{
43+
rel: 'mask-icon',
44+
href: '/images/icons/safari-pinned-tab.svg',
45+
color: '#3eaf7c',
46+
},
47+
],
48+
['meta', { name: 'msapplication-TileColor', content: '#3eaf7c' }],
49+
['meta', { name: 'theme-color', content: '#3eaf7c' }],
50+
],
1151

1252
// site-level locales config
1353
locales: {
@@ -24,7 +64,7 @@ const config: UserConfig<DefaultThemeOptions> = {
2464
},
2565

2666
themeConfig: {
27-
logo: '/hero.png',
67+
logo: '/images/hero.png',
2868

2969
repo: 'vuepress/vuepress-next',
3070

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square150x150logo src="/images/icons/mstile-150x150.png"/>
6+
<TileColor>#ffffff</TileColor>
7+
</tile>
8+
</msapplication>
9+
</browserconfig>

docs/.vuepress/public/favicon.ico

14.7 KB
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)