From d0c5eb63cc36ebcdb7f0c3daf3ed8af2d2e9d809 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sat, 30 Nov 2024 10:31:36 +0800 Subject: perf(theme): use google font --- themes/yinyang/assets/css/index.css | 10 ++++------ themes/yinyang/layouts/partials/head/css.html | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 19 deletions(-) (limited to 'themes') diff --git a/themes/yinyang/assets/css/index.css b/themes/yinyang/assets/css/index.css index 66682fea..abcb5899 100644 --- a/themes/yinyang/assets/css/index.css +++ b/themes/yinyang/assets/css/index.css @@ -14,9 +14,7 @@ /* fonts */ --mono-font-family: "Courier New", Courier, "Menlo", "Monaco", Consolas, "Liberation Mono", "Lucida Console", monospace; - --serif-font-family: STZhongsong, STSong, "Noto Serif CJK", "Noto Serif SC", PMingLiu, - SimSun, "WenQuanYi Bitmap Song", "Times New Roman", Times, serif, - "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + --serif-font-family: "Noto Serif SC", serif; /* waline */ --waline-font-size: 20px; @@ -524,8 +522,8 @@ a:hover { /* blog links */ div.blog-links { - display: flex; - flex-wrap: wrap; + display: flex; + flex-wrap: wrap; gap: 1rem; } @@ -590,4 +588,4 @@ html.is-changing .transition-fade article { html.is-animating .transition-fade article { opacity: 0; -} \ No newline at end of file +} diff --git a/themes/yinyang/layouts/partials/head/css.html b/themes/yinyang/layouts/partials/head/css.html index 68d82a23..5622a117 100644 --- a/themes/yinyang/layouts/partials/head/css.html +++ b/themes/yinyang/layouts/partials/head/css.html @@ -1,7 +1,15 @@ - -{{- if .Site.Params.staticPrefix -}} - -{{- end -}} + +{{ with resources.Get "css/index.css" | minify }} + +{{ end }} +{{ with resources.Get "css/flexboxgrid-6.3.1.min.css" | minify }} + +{{ end }} + + + + + - -{{ with resources.Get "css/index.css" | minify }} - -{{ end }} -{{ with resources.Get "css/flexboxgrid-6.3.1.min.css" | minify }} - -{{ end }} - {{ range .Site.Params.extraCSSFiles -}} -{{- end }} \ No newline at end of file +{{- end }} -- cgit v1.2.3