diff options
| -rw-r--r-- | themes/yinyang/assets/css/index.css | 10 | ||||
| -rw-r--r-- | themes/yinyang/layouts/partials/head/css.html | 26 |
2 files changed, 17 insertions, 19 deletions
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 @@ -<!-- prefetches --> -{{- if .Site.Params.staticPrefix -}} -<link rel="dns-prefetch" href="{{ .Site.Params.staticPrefix }}" /> -{{- end -}} +<!-- theme css --> +{{ with resources.Get "css/index.css" | minify }} +<style>{{ .Content | safeCSS }}</style> +{{ end }} +{{ with resources.Get "css/flexboxgrid-6.3.1.min.css" | minify }} +<style>{{ .Content | safeCSS }}</style> +{{ end }} + +<!-- Google Fonts --> +<link rel="preconnect" href="https://fonts.googleapis.com"> +<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> +<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200..900&display=swap" rel="stylesheet"> <!-- waline --> <link @@ -16,15 +24,7 @@ rel="stylesheet" href="https://unpkg.com/@fancyapps/ui@5.0.36/dist/fancybox/fancybox.css" /> -<!-- theme css --> -{{ with resources.Get "css/index.css" | minify }} -<style>{{ .Content | safeCSS }}</style> -{{ end }} -{{ with resources.Get "css/flexboxgrid-6.3.1.min.css" | minify }} -<style>{{ .Content | safeCSS }}</style> -{{ end }} - <!-- Extra --> {{ range .Site.Params.extraCSSFiles -}} <link rel="stylesheet" href="{{ $.Site.Params.staticPrefix }}{{ . | relURL }}"> -{{- end }}
\ No newline at end of file +{{- end }} |
