diff options
author | He Yeshuang <yeshuanghe@gmail.com> | 2021-10-26 17:12:03 +0300 |
---|---|---|
committer | He Yeshuang <yeshuanghe@gmail.com> | 2021-10-26 17:12:03 +0300 |
commit | 67002e833a4baafe0a872494c70161108f3d2b48 (patch) | |
tree | dedea0f07780a20277fc3317515bb1d2a89f196e /layouts | |
parent | b33a79045cc5eafeefd9d8a65a9900c62d1f1bc7 (diff) |
prepare for varible font for someday
Diffstat (limited to 'layouts')
-rwxr-xr-x | layouts/_default/baseof.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cd857a0..d2de1c4 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -57,6 +57,7 @@ pangu.spacingPage(); }); </script> + {{end}} <!-- @font-face for Chinese --> {{ if .Site.Params.useChineseFonts}} <style type="text/css" media="screen, print"> @@ -67,7 +68,15 @@ src: url('{{ ( printf "%s%s" .Site.Params.bannerFont ".woff2") | absURL }}') format('woff2'), url('{{ ( printf "%s%s" .Site.Params.bannerFont ".woff") | absURL }}') format('woff'); } - + /* For varible font usage sometimes */ + /* + @font-face { + font-family: 'Source Han Serif CN Variable'; + src: url('{{"fonts/SourceHanSerifCN-VF.otf.woff2" | absURL }}') format('woff2'); + font-weight: 1 999; + font-style: normal; + font-display: swap; + } */ /* noto-serif-sc-300 - latin_chinese-simplified */ @font-face { font-family: 'Noto Serif CJK SC'; @@ -107,7 +116,6 @@ /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } </style> - {{end}} {{ end }} </head> |