From e13ccb9ec18fbfb9e99f5137a8ed129209326484 Mon Sep 17 00:00:00 2001 From: Yanzheng Sun Date: Mon, 29 Jan 2024 17:40:52 +0800 Subject: [PATCH] [+] Added math support for "keep_in_touch" page --- config/_default/{hugo.yaml => config.yaml} | 0 config/_default/markup.yaml | 17 +++++++++++++++++ config/_default/params.yaml | 2 +- content/en/keep_in_touch.md | 5 +++-- content/zh-cn/keep_in_touch.md | 5 +++-- 5 files changed, 24 insertions(+), 5 deletions(-) rename config/_default/{hugo.yaml => config.yaml} (100%) create mode 100644 config/_default/markup.yaml diff --git a/config/_default/hugo.yaml b/config/_default/config.yaml similarity index 100% rename from config/_default/hugo.yaml rename to config/_default/config.yaml diff --git a/config/_default/markup.yaml b/config/_default/markup.yaml new file mode 100644 index 0000000..8a8bb25 --- /dev/null +++ b/config/_default/markup.yaml @@ -0,0 +1,17 @@ +goldmark: + renderer: + unsafe: true + +tableOfContents: + endLevel: 4 + ordered: true + startLevel: 2 + +highlight: + noClasses: false + codeFences: true + guessSyntax: true + lineNoStart: 1 + lineNos: true + lineNumbersInTable: true + tabWidth: 4 \ No newline at end of file diff --git a/config/_default/params.yaml b/config/_default/params.yaml index 604ae48..084f562 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -18,7 +18,7 @@ sidebar: src: https://cdn.sunyz.net/avatar@512x512.png article: - math: true + math: false readingTime: true license: enabled: true diff --git a/content/en/keep_in_touch.md b/content/en/keep_in_touch.md index 4eb9f89..4e927b4 100644 --- a/content/en/keep_in_touch.md +++ b/content/en/keep_in_touch.md @@ -1,15 +1,16 @@ --- title: Keep in Touch date: 2024-01-28 +math: true --- ### Conditions 1. You (and your website) must **NOT** infringe on the copyrights of others. 2. Your website is operational most of the time. -3. No **FREE** domain suffixes[^*] nor **non-ASCII** domain suffixes acceptable. +3. No **FREE** domain suffixes$^*$ nor **non-ASCII** domain suffixes acceptable. -[^*] domains registered on freenom.com, and/or subdomains excluded from the [list](https://publicsuffix.org/list/public_suffix_list.dat). +$^*$ domains registered on freenom.com, and/or subdomains excluded from the [list](https://publicsuffix.org/list/public_suffix_list.dat). ### My datas diff --git a/content/zh-cn/keep_in_touch.md b/content/zh-cn/keep_in_touch.md index 2ebc69f..d4b4b8c 100644 --- a/content/zh-cn/keep_in_touch.md +++ b/content/zh-cn/keep_in_touch.md @@ -1,15 +1,16 @@ --- title: 串个门 date: 2024-01-28 +math: true --- ### 条件 1. 您(与您的网站)不得侵犯他人版权。 2. 您的网站多数时候都能正常访问。 -3. 不接受 **免费** 域名后缀[^*] 或 **non-ASCII** 域名后缀。 +3. 不接受 **免费** 域名后缀$^*$ 或 **non-ASCII** 域名后缀。 -[^*] 特指于 freenom.com 注册的域名, 与/或 不在 [此列表](https://publicsuffix.org/list/public_suffix_list.dat) 中的子域名。 +$^*$ 特指于 freenom.com 注册的域名, 与/或 不在 [此列表](https://publicsuffix.org/list/public_suffix_list.dat) 中的子域名。 ### 我的信息