diff --git a/assets/img/avatar.png b/assets/img/avatar.png index d90352c..b78870f 100644 Binary files a/assets/img/avatar.png and b/assets/img/avatar.png differ diff --git a/assets/img/favicon.ico b/assets/img/favicon.ico new file mode 100644 index 0000000..0775421 Binary files /dev/null and b/assets/img/favicon.ico differ diff --git a/assets/jsconfig.json b/assets/jsconfig.json index 040177a..377218c 100644 --- a/assets/jsconfig.json +++ b/assets/jsconfig.json @@ -1,12 +1,10 @@ { - "compilerOptions": { - "baseUrl": ".", - "paths": { - "*": [ - "*" - ] - }, - "lib": ["es2020", "dom"], - "jsx": "preserve" - } + "compilerOptions": { + "baseUrl": ".", + "paths": { + "*": [ + "*" + ] + } + } } \ No newline at end of file diff --git a/config.yaml b/config.yaml index b1a0bff..fcebcee 100644 --- a/config.yaml +++ b/config.yaml @@ -3,20 +3,83 @@ module: extended: true min: "0.87.0" + # GA Tracking ID + googleAnalytics: G-WPFE7HNMC5 + + cloudflareAnalytics: e008b4ed1119475183d684683841ba5e + + # Theme i18n support + # Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw + DefaultContentLanguage: en + + # Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko] + # This will make .Summary and .WordCount behave correctly for CJK languages. + hasCJKLanguage: [zh-cn zh-hk ja] + ### Custom menu +### See https://docs.stack.jimmycai.com/configuration/custom-menu.html +### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter +menu: + main: [] + + social: + - identifier: github + name: GitHub + url: https://github.com/ous50 + params: + icon: brand-github + + - identifier: twitter + name: Twitter + url: https://twitter.com/ousfifty + params: + icon: brand-twitter + + +related: + includeNewer: true + threshold: 60 + toLower: false + indices: + - name: tags + weight: 100 + + - name: categories + weight: 200 + +markup: + goldmark: + renderer: + ## Set to true if you have HTML content inside Markdown + unsafe: true + tableOfContents: + endLevel: 4 + ordered: true + startLevel: 2 + highlight: + noClasses: false + codeFences: true + guessSyntax: true + lineNoStart: 1 + lineNos: true + lineNumbersInTable: true + tabWidth: 4 + params: mainSections: - post + - search + - tags featuredImageField: image - rssFullContent: true - favicon: + rssFullContent: false + favicon: img/favicon.ico footer: - since: - customText: + since: 2021 + customText: OwO dateFormat: - published: Jan 02, 2006 - lastUpdated: Jan 02, 2006 15:04 MST + published: Jan 02, 2006 15:04 HKT + lastUpdated: Jan 02, 2006 15:04 HKT sidebar: compact: false @@ -28,24 +91,23 @@ params: src: img/avatar.png article: - headingAnchor: false - math: false + math: true toc: true readingTime: true license: - enabled: false + enabled: true default: Licensed under CC BY-NC-SA 4.0 comments: - enabled: false - provider: disqus + enabled: true + provider: disqusjs disqusjs: - shortname: - apiUrl: - apiKey: - admin: - adminLabel: + shortname: ousfifty + apiUrl: https://disqus.skk.moe/disqus/ + apiKey: KCir2w9VCAOu1FenHGVqTZERzhy9zLTtFZIRxMCp8YQrD5sJiHGKg6CvWa27I1ta + admin: ousfifty + adminLabel: Author utterances: repo: @@ -123,7 +185,6 @@ params: opengraph: twitter: - # Your Twitter username site: # Available values: summary, summary_large_image @@ -147,3 +208,11 @@ params: enabled: true content: enabled: true + + + + + +permalinks: + post: /p/:slug/ + page: /:slug/ diff --git a/debug.sh b/debug.sh index 4d1312e..3203c7b 100755 --- a/debug.sh +++ b/debug.sh @@ -1 +1 @@ -cd exampleSite && hugo server --gc --themesDir=../.. \ No newline at end of file +cd exampleSite && hugo server --gc --themesDir=../../.. diff --git a/i18n/en.yaml b/i18n/en.yaml index fb07328..e3a489f 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -30,8 +30,8 @@ article: other: Last updated on readingTime: - one: "{{ .Count }} minute read" - other: "{{ .Count }} minute read" + one: "{{ .Count }} minute reading time " + other: "{{ .Count }} minutes reading time" notFound: title: diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index da39c8f..26b0086 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -4,12 +4,17 @@ toggleMenu: darkMode: other: 暗色模式 + list: - page: "{{ .Count }} 个页面" + page: + other: "{{ .Count }} 页" - section: 章节 + section: + other: 章节 - subsection: 子章节 + subsection: + one: 子章节 + other: 子章节 article: back: diff --git a/images/avatar.png b/images/avatar.png new file mode 100644 index 0000000..b78870f Binary files /dev/null and b/images/avatar.png differ