|
1 | 1 | import type { |
2 | | - ExpressiveCodeConfig, |
3 | | - LicenseConfig, |
4 | | - NavBarConfig, |
5 | | - ProfileConfig, |
6 | | - SiteConfig, |
| 2 | + ExpressiveCodeConfig, |
| 3 | + LicenseConfig, |
| 4 | + NavBarConfig, |
| 5 | + ProfileConfig, |
| 6 | + SiteConfig, |
7 | 7 | } from "./types/config"; |
8 | 8 | import { LinkPreset } from "./types/config"; |
9 | 9 |
|
10 | 10 | export const siteConfig: SiteConfig = { |
11 | | - title: "iftype", |
12 | | - subtitle: "blog", |
13 | | - lang: "ko", // Language code, e.g. 'en', 'zh_CN', 'ja', etc. |
14 | | - themeColor: { |
15 | | - hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345 |
16 | | - fixed: false, // Hide the theme color picker for visitors |
17 | | - }, |
18 | | - banner: { |
19 | | - enable: false, |
20 | | - src: "assets/images/demo-banner.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/' |
21 | | - position: "center", // Equivalent to object-position, only supports 'top', 'center', 'bottom'. 'center' by default |
22 | | - credit: { |
23 | | - enable: false, // Display the credit text of the banner image |
24 | | - text: "", // Credit text to be displayed |
25 | | - url: "", // (Optional) URL link to the original artwork or artist's page |
26 | | - }, |
27 | | - }, |
28 | | - toc: { |
29 | | - enable: true, // Display the table of contents on the right side of the post |
30 | | - depth: 2, // Maximum heading depth to show in the table, from 1 to 3 |
31 | | - }, |
32 | | - favicon: [ |
33 | | - // Leave this array empty to use the default favicon |
34 | | - // { |
35 | | - // src: '/favicon/icon.png', // Path of the favicon, relative to the /public directory |
36 | | - // theme: 'light', // (Optional) Either 'light' or 'dark', set only if you have different favicons for light and dark mode |
37 | | - // sizes: '32x32', // (Optional) Size of the favicon, set only if you have favicons of different sizes |
38 | | - // } |
39 | | - ], |
| 11 | + title: "iftype", |
| 12 | + subtitle: "blog", |
| 13 | + lang: "ko", // Language code, e.g. 'en', 'zh_CN', 'ja', etc. |
| 14 | + themeColor: { |
| 15 | + hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345 |
| 16 | + fixed: false, // Hide the theme color picker for visitors |
| 17 | + }, |
| 18 | + banner: { |
| 19 | + enable: false, |
| 20 | + src: "assets/images/demo-banner.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/' |
| 21 | + position: "center", // Equivalent to object-position, only supports 'top', 'center', 'bottom'. 'center' by default |
| 22 | + credit: { |
| 23 | + enable: false, // Display the credit text of the banner image |
| 24 | + text: "", // Credit text to be displayed |
| 25 | + url: "", // (Optional) URL link to the original artwork or artist's page |
| 26 | + }, |
| 27 | + }, |
| 28 | + toc: { |
| 29 | + enable: true, // Display the table of contents on the right side of the post |
| 30 | + depth: 2, // Maximum heading depth to show in the table, from 1 to 3 |
| 31 | + }, |
| 32 | + favicon: [ |
| 33 | + // Leave this array empty to use the default favicon |
| 34 | + // { |
| 35 | + // src: '/favicon/icon.png', // Path of the favicon, relative to the /public directory |
| 36 | + // theme: 'light', // (Optional) Either 'light' or 'dark', set only if you have different favicons for light and dark mode |
| 37 | + // sizes: '32x32', // (Optional) Size of the favicon, set only if you have favicons of different sizes |
| 38 | + // } |
| 39 | + ], |
40 | 40 | }; |
41 | 41 |
|
42 | 42 | export const navBarConfig: NavBarConfig = { |
43 | | - links: [ |
44 | | - LinkPreset.Home, |
45 | | - LinkPreset.Archive, |
46 | | - LinkPreset.About, |
47 | | - { |
48 | | - name: "GitHub", |
49 | | - url: "https://github.com/iftype/iftype.github.io", // Internal links should not include the base path, as it is automatically added |
50 | | - external: true, // Show an external link icon and will open in a new tab |
51 | | - }, |
52 | | - ], |
| 43 | + links: [ |
| 44 | + LinkPreset.Home, |
| 45 | + LinkPreset.Archive, |
| 46 | + LinkPreset.About, |
| 47 | + { |
| 48 | + name: "GitHub", |
| 49 | + url: "https://github.com/iftype/iftype.github.io", // Internal links should not include the base path, as it is automatically added |
| 50 | + external: true, // Show an external link icon and will open in a new tab |
| 51 | + }, |
| 52 | + ], |
53 | 53 | }; |
54 | 54 |
|
55 | 55 | export const profileConfig: ProfileConfig = { |
56 | | - avatar: "assets/images/profile.jpg", // Relative to the /src directory. Relative to the /public directory if it starts with '/' |
57 | | - name: "iftype", |
58 | | - bio: "FE 초보의 기록 블로그", |
59 | | - links: [ |
60 | | - // { |
61 | | - // name: "Twitter", |
62 | | - // icon: "fa6-brands:twitter", // Visit https://icones.js.org/ for icon codes |
63 | | - // // You will need to install the corresponding icon set if it's not already included |
64 | | - // // `pnpm add @iconify-json/<icon-set-name>` |
65 | | - // url: "https://twitter.com", |
66 | | - // }, |
67 | | - { |
68 | | - name: "GitHub", |
69 | | - icon: "fa6-brands:github", |
70 | | - url: "https://github.com/iftype", |
71 | | - }, |
72 | | - ], |
| 56 | + avatar: "assets/images/profile.jpg", // Relative to the /src directory. Relative to the /public directory if it starts with '/' |
| 57 | + name: "iftype", |
| 58 | + bio: "FE 초보의 기록 블로그", |
| 59 | + links: [ |
| 60 | + // { |
| 61 | + // name: "Twitter", |
| 62 | + // icon: "fa6-brands:twitter", // Visit https://icones.js.org/ for icon codes |
| 63 | + // // You will need to install the corresponding icon set if it's not already included |
| 64 | + // // `pnpm add @iconify-json/<icon-set-name>` |
| 65 | + // url: "https://twitter.com", |
| 66 | + // }, |
| 67 | + { |
| 68 | + name: "GitHub", |
| 69 | + icon: "fa6-brands:github", |
| 70 | + url: "https://github.com/iftype", |
| 71 | + }, |
| 72 | + ], |
73 | 73 | }; |
74 | 74 |
|
75 | 75 | export const licenseConfig: LicenseConfig = { |
76 | | - enable: true, |
77 | | - name: "CC BY-NC-SA 4.0", |
78 | | - url: "https://creativecommons.org/licenses/by-nc-sa/4.0/", |
| 76 | + enable: true, |
| 77 | + name: "CC BY-NC-SA 4.0", |
| 78 | + url: "https://creativecommons.org/licenses/by-nc-sa/4.0/", |
79 | 79 | }; |
80 | 80 |
|
81 | 81 | export const expressiveCodeConfig: ExpressiveCodeConfig = { |
82 | | - // Note: Some styles (such as background color) are being overridden, see the astro.config.mjs file. |
83 | | - // Please select a dark theme, as this blog theme currently only supports dark background color |
84 | | - theme: "github-dark", |
| 82 | + // Note: Some styles (such as background color) are being overridden, see the astro.config.mjs file. |
| 83 | + // Please select a dark theme, as this blog theme currently only supports dark background color |
| 84 | + theme: "github-dark", |
85 | 85 | }; |
0 commit comments