更新主题 #21

Merged
cxykevin merged 2 commits from :main into main 2024-08-25 17:42:58 +08:00
5 changed files with 29 additions and 6 deletions
Showing only changes of commit cadebaba9f - Show all commits

View File

@ -11,7 +11,9 @@ additional-css = [
"theme/css/mdui.css", "theme/css/mdui.css",
"theme/css/highlight.min.css", "theme/css/highlight.min.css",
"theme/css/page.css", "theme/css/page.css",
"theme/css/font.css",
"theme/font/icons.woff2", "theme/font/icons.woff2",
"theme/font/noto.otf",
] ]
additional-js = [ additional-js = [
"theme/js/mdui.global.js", "theme/js/mdui.global.js",

21
theme/css/font.css Normal file
View File

@ -0,0 +1,21 @@
@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: 300;
src: local("NotoSansCJK-Medium") url('../font/noto.otf') format('otf');
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 300;
src: local("SourceCodePro") url('../font/sourcecodepro.woff2') format('woff2');
}
body {
font-family: 'Noto Sans', sans-serif !important;
}
code {
font-family: 'Source Code Pro', 'Courier New', monospace !important;
}

BIN
theme/font/noto.otf Normal file

Binary file not shown.

Binary file not shown.

View File

@ -19,7 +19,7 @@
<!-- MDUI CSS&JS --> <!-- MDUI CSS&JS -->
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="renderer" content="webkit" /> <meta name="renderer" content="webkit" />
<link rel="stylesheet" href="{{ ../path_to_root }}theme/css/mdui.css"> <link rel="stylesheet" href="{{ ../path_to_root }}theme/css/mdui.css">
<script src="{{ ../path_to_root }}theme/js/mdui.global.js"></script> <script src="{{ ../path_to_root }}theme/js/mdui.global.js"></script>
@ -27,17 +27,16 @@
<!-- 搜索引擎描述 --> <!-- 搜索引擎描述 -->
<meta name="description" content="Study Area CN {{ description }}"> <meta name="description" content="Study Area CN {{ description }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<meta name="keywords" <meta name="keywords"
content="Study-area, study-area, study-area-cn Study Area CN, study area cn, 酷学园, 酷学园 CN , 酷!学园, netman, linux, mdbook, rockylinux"> content="Study-area, study-area, study-area-cn Study Area CN, study area cn, 酷学园, 酷学园 CN , 酷!学园, netman, linux, mdbook, rockylinux">
<!-- favicon --> <!-- favicon -->
{{#if favicon_svg}} {{#if favicon_svg}}
<link rel="icon" href="{{ path_to_root }}favicon.png"> <link rel="icon" href="{{ ../path_to_root }}favicon.png">
{{/if}} {{/if}}
{{#if favicon_png}} {{#if favicon_png}}
<link rel="shortcut icon" href="{{ path_to_root }}favicon.png"> <link rel="shortcut icon" href="{{ ../path_to_root }}favicon.png">
{{/if}} {{/if}}
{{#if print_enable}} {{#if print_enable}}
@ -48,14 +47,15 @@
<link rel="stylesheet" href="{{ ../path_to_root }}theme/css/highlight.min.css"> <link rel="stylesheet" href="{{ ../path_to_root }}theme/css/highlight.min.css">
<script src="{{ ../path_to_root }}theme/js/highlight.min.js"></script> <script src="{{ ../path_to_root }}theme/js/highlight.min.js"></script>
{{#if mathjax_support}} {{#if mathjax_support}}
<!-- MathJax --> <!-- MathJax -->
<script async src="{{ ../path_to_root }}theme/js/mathjax.js"></script> <script async src="{{ ../path_to_root }}theme/js/mathjax.js"></script>
{{/if}} {{/if}}
<link rel="stylesheet" href="{{ ../path_to_root }}theme/css/page.css"> <link rel="stylesheet" href="{{ ../path_to_root }}theme/css/page.css">
<!-- 自定义字体 -->
<link href="{{ ../path_to_root }}theme/css/font.css" rel="stylesheet">
</head> </head>
<body style="margin:0;padding:0;"> <body style="margin:0;padding:0;">