From 003fda5f0a5b2820601e8d9ff511a667f3ad581d Mon Sep 17 00:00:00 2001 From: FFRaycoder Date: Sun, 7 Jun 2020 13:01:59 +0800 Subject: [PATCH] fix: correct productsans.ttf path --- assets/scss/main.scss | 4 ++-- configI18N/config.zh.toml | 2 +- exampleSite/config.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/scss/main.scss b/assets/scss/main.scss index a189a4c..d2e904c 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -8,8 +8,8 @@ Version: 2.0.1 */ @font-face { - font-family:Product Sans; - src:url(/fonts/productsans.ttf); + font-family: Product Sans; + src:url({{ "/fonts/productsans.ttf" | relURL }}); font-display:swap } .gray-mode { diff --git a/configI18N/config.zh.toml b/configI18N/config.zh.toml index 1ef5c88..fe3903d 100644 --- a/configI18N/config.zh.toml +++ b/configI18N/config.zh.toml @@ -90,7 +90,7 @@ paginate = 10 xHTML = false [markup.highlight] codeFences = true - guessSyntax = false + guessSyntax = true hl_Lines = "" lineNoStart = 1 lineNos = false diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 3dd4fe6..1c82ee4 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -90,7 +90,7 @@ paginate = 10 xHTML = false [markup.highlight] codeFences = true - guessSyntax = false + guessSyntax = true hl_Lines = "" lineNoStart = 1 lineNos = false