Skip to content

Commit

Permalink
feat ✨: 修改英文显示字体
Browse files Browse the repository at this point in the history
引入新的英文字体 Ligconsolata-Regular, 替换原先的字体
  • Loading branch information
Tricker39 committed Apr 30, 2024
1 parent 40ebd93 commit 03cc009
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ const baseUrl = process.env.NODE_ENV === 'production' ? '/programming-knowledge'
export default defineConfig({
base: `${baseUrl}/`,
srcDir: 'docs',
lang: 'zh',
lang: 'zh',
lastUpdated: true,
title: '前端编程基础知识',
description: '人之为学,不可自小,又不可自大',
cleanUrls: true,


head: [
['link', { rel: 'icon', href: `${baseUrl}/favicon.ico` }],
['link', { rel: 'shortcut icon', href: `${baseUrl}/favicon.ico` }],
Expand Down Expand Up @@ -106,7 +105,8 @@ export default defineConfig({
items: [
{ text: '路过图床', link: 'https://imgse.com' },
{ text: '聚合图床', link: 'https://www.superbed.cn' },
{ text: 'gitmind 思维导图', link: 'https://gitmind.cn' },
{ text: 'zhimap 思维导图', link: 'https://zhimap.com' },
{ text: 'KIMI AI', link: 'https://kimi.moonshot.cn/' },
{ text: 'Alien GPT', link: 'https://chat.waixingyun.cn/#/home' },
{ text: '文心一言', link: 'https://yiyan.baidu.com/' },
{ text: '韩小韩 API 接口', link: 'https://api.vvhan.com/?utm_source=xinquji' },
Expand Down
6 changes: 5 additions & 1 deletion .vitepress/theme/custom.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
* {
cursor: none !important;
}
@font-face {
font-family: 'Ligconsolata';
src: url('/fonts/Ligconsolata-Regular.ttf');
}
@font-face {
font-family: 'OperatorMonoLig';
src: url('/fonts/OperatorMonoLig-Book.otf');
Expand Down Expand Up @@ -37,7 +41,7 @@
--vp-code-copy-code-active-text: var(--vp-c-text-light-2);
--vp-nav-bg: rgba(255, 255, 255, 0.3);

--vp-font-family-mono: 'OperatorMonoLig', 'LXGWWenKai', ui-monospace, SFMono-Regular, 'SF Mono',
--vp-font-family-mono: 'Ligconsolata', 'LXGWWenKai', ui-monospace, SFMono-Regular, 'SF Mono',
Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
// --vp-font-family-base: '扁桃体', 'OperatorMonoLig', 'Chinese Quotes', 'Inter var', 'Inter',
// ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Expand Down
Binary file added docs/public/fonts/Ligconsolata-Regular.ttf
Binary file not shown.

0 comments on commit 03cc009

Please sign in to comment.