Skip to content

Commit cdffb9c

Browse files
committed
change main font
1 parent 686811b commit cdffb9c

File tree

5 files changed

+11
-27
lines changed

5 files changed

+11
-27
lines changed

includes/tasks/rollup.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ const cp = require('child_process');
22

33
/** @param {import("hexo")} hexo */
44
module.exports = function (hexo) {
5-
if (hexo.env?.cmd?.startsWith('n')) { return; }
5+
if (hexo.env?.cmd?.startsWith('n')) {
6+
return;
7+
}
68
hexo.log.info('building js');
79
cp.execSync('yarn build', { cwd: './themes/Anatolo', stdio: 'inherit' });
810
hexo.log.info('build successful!');

layout/partial/head.pug

+7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ link(rel="stylesheet", href=url_for("css/insight.css"))
3131
link(rel="stylesheet", href=url_for("css/search.css"))
3232
link(rel="alternate", type="application/atom+xml", title="ATOM 1.0", href="/atom.xml")
3333

34+
link(rel="preconnect", href="https://fonts.googleapis.com")
35+
link(rel="preconnect", href="https://fonts.gstatic.com", crossorigin)
36+
link(
37+
href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap",
38+
rel="stylesheet"
39+
)
40+
3441
script(src=url_for("js_complied/bundle.js"))
3542
if theme.Baidutongji
3643
script(src=url_for("js/baidu-tongji.js"))

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616
"@rollup/plugin-typescript": "^11.1.6",
1717
"hexo-renderer-pug": "^0.0.5",
1818
"hexo-renderer-stylus": "^0.2.3",
19-
"jquery": "^3.7.1",
2019
"rollup": "^4.21.2",
2120
"typescript": "^5.5.4"
2221
},
2322
"devDependencies": {
2423
"@prettier/plugin-pug": "^3.0.0",
25-
"@types/jquery": "^3.5.30",
2624
"eslint": "^9.4.0",
27-
"eventemitter3": "^5.0.1",
2825
"fuse.js": "^7.0.0",
2926
"prettier": "^3.3.1",
3027
"stylus-supremacy": "^2.17.5"

source/css/style.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ html[id='theme-dark-mode'] img
1515

1616
body
1717
color: var(--primary-high)
18-
font-family: Helvetica, Arial, 'PingHei', 'PingFang SC', Helvetica, 'Work Sans', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif
18+
font-family: 'Open Sans', Helvetica, Arial, 'PingHei', 'PingFang SC', Helvetica, 'Work Sans', 'Hiragino Sans GB', 'Microsoft YaHei', SimSun, sans-serif
1919
font-size: 15px
2020
width: 100%
2121
margin: 0 auto 30px auto

yarn.lock

-22
Original file line numberDiff line numberDiff line change
@@ -295,23 +295,11 @@
295295
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4"
296296
integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==
297297

298-
"@types/jquery@^3.5.30":
299-
version "3.5.30"
300-
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.30.tgz#888d584cbf844d3df56834b69925085038fd80f7"
301-
integrity sha512-nbWKkkyb919DOUxjmRVk8vwtDb0/k8FKncmUKFi+NY+QXqWltooxTrswvz4LspQwxvLdvzBN1TImr6cw3aQx2A==
302-
dependencies:
303-
"@types/sizzle" "*"
304-
305298
306299
version "1.20.2"
307300
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975"
308301
integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==
309302

310-
"@types/sizzle@*":
311-
version "2.3.8"
312-
resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.8.tgz#518609aefb797da19bf222feb199e8f653ff7627"
313-
integrity sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==
314-
315303
acorn-globals@^3.0.0:
316304
version "3.1.0"
317305
resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf"
@@ -863,11 +851,6 @@ esutils@^2.0.2:
863851
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
864852
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
865853

866-
eventemitter3@^5.0.1:
867-
version "5.0.1"
868-
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4"
869-
integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==
870-
871854
fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
872855
version "3.1.3"
873856
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
@@ -1287,11 +1270,6 @@ jackspeak@^3.1.2:
12871270
optionalDependencies:
12881271
"@pkgjs/parseargs" "^0.11.0"
12891272

1290-
jquery@^3.7.1:
1291-
version "3.7.1"
1292-
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.7.1.tgz#083ef98927c9a6a74d05a6af02806566d16274de"
1293-
integrity sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==
1294-
12951273
js-stringify@^1.0.1:
12961274
version "1.0.2"
12971275
resolved "https://registry.yarnpkg.com/js-stringify/-/js-stringify-1.0.2.tgz#1736fddfd9724f28a3682adc6230ae7e4e9679db"

0 commit comments

Comments
 (0)