diff options
author | FFRaycoder <nn_201312@163.com> | 2020-06-26 05:57:11 +0300 |
---|---|---|
committer | FFRaycoder <nn_201312@163.com> | 2020-06-26 05:57:11 +0300 |
commit | 2b6c354202f8aeeb5496889c7cfd579178d99fdd (patch) | |
tree | 9fefc3e8cb7a54431cd92b0b46b2ad0ff5738c17 | |
parent | 003fda5f0a5b2820601e8d9ff511a667f3ad581d (diff) |
fix
-rw-r--r-- | assets/scss/main.scss | 4 | ||||
-rw-r--r-- | configI18N/config.zh.toml | 10 | ||||
-rw-r--r-- | exampleSite/config.toml | 10 | ||||
-rw-r--r-- | layouts/partials/components/post/toc.html | 16 |
4 files changed, 9 insertions, 31 deletions
diff --git a/assets/scss/main.scss b/assets/scss/main.scss index d2e904c..a189a4c 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" | relURL }});
+ font-family:Product Sans;
+ src:url(/fonts/productsans.ttf);
font-display:swap
}
.gray-mode {
diff --git a/configI18N/config.zh.toml b/configI18N/config.zh.toml index fe3903d..705d017 100644 --- a/configI18N/config.zh.toml +++ b/configI18N/config.zh.toml @@ -90,14 +90,10 @@ paginate = 10 xHTML = false [markup.highlight] codeFences = true - guessSyntax = true - hl_Lines = "" - lineNoStart = 1 + guessSyntax = false lineNos = false - lineNumbersInTable = true - noClasses = true - style = "monokai" - tabWidth = 4 + lineNumbersInTable = false + noClasses = false [markup.tableOfContents] startLevel = 2 endLevel = 6 diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1c82ee4..eb5e662 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -90,14 +90,10 @@ paginate = 10 xHTML = false [markup.highlight] codeFences = true - guessSyntax = true - hl_Lines = "" - lineNoStart = 1 + guessSyntax = false lineNos = false - lineNumbersInTable = true - noClasses = true - style = "monokai" - tabWidth = 4 + lineNumbersInTable = false + noClasses = false [markup.tableOfContents] startLevel = 2 endLevel = 6 diff --git a/layouts/partials/components/post/toc.html b/layouts/partials/components/post/toc.html index 7599abb..191519f 100644 --- a/layouts/partials/components/post/toc.html +++ b/layouts/partials/components/post/toc.html @@ -16,21 +16,7 @@ </h4>
</div>
<ul id="article-index" class="index-ul">
- {{ range $headers }}
- {{ $header := . }}
- {{ range first 1 (findRE $re $header 1) }}
- {{ range findRE $renum . 1 }}
- {{ $next_heading := (cond (eq $h1_n 0) (sub (int .) 1 ) (int . ) ) }}
- {{ $anchorId := (replaceRE ".* id=\"(.*?)\".*" "$1" $header ) }}
- <a href="#{{ $anchorId }}">
- <li style="padding-left:23px" class="">
- <i class="ri-checkbox-blank-circle-line"></i>
- {{ $header | plainify | htmlUnescape }}
- </li>
- </a>
- {{ end }}
- {{ end }}
- {{ end }}
+ {{ .TableOfContents }}
</ul>
</div>
{{ end }}
|