diff options
| author | Reorx <novoreorx@gmail.com> | 2022-06-01 16:37:08 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-06-01 16:37:42 +0800 |
| commit | 4a545c4783222c0a8751cd0a3f1df21b2af1f492 (patch) | |
| tree | 7beee017923d20fc2d03f4adf8863fea339625c3 | |
| parent | 744a17a57594bec0880f6f5ee679c71f22044b44 (diff) | |
exampleSite: refactor config
| -rw-r--r-- | exampleSite/config.yml | 170 |
1 files changed, 91 insertions, 79 deletions
diff --git a/exampleSite/config.yml b/exampleSite/config.yml index 0b15102..78d5364 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -11,79 +11,6 @@ buildDrafts: false buildFuture: false buildExpired: false enableEmoji: true -# googleAnalytics: UA-123-45 - -minify: - disableXML: true - # minifyOutput: true - -languages: - en: - languageName: "English" - weight: 1 - menu: - main: - - name: Docs - url: /docs/ - weight: 1 - - name: Tags - url: /tags/ - weight: 4 - - name: Archive - url: /archives/ - weight: 5 - - name: Search - url: /search/ - weight: 10 - - name: "@Author" - url: "https://reorx.com" - params: - external: true - - zh: - languageName: ":cn:" - languageAltTitle: 中文 - weight: 2 - title: PaperModX - profileMode: - enabled: true - title: PaperModX - # imageUrl: "#" - # imageTitle: my image - # imageWidth: 120 - # imageHeight: 120 - subtitle: > - <p>Hugo 主题</p> - ☄️ 快速 | ☁️ 流畅 | 📖 可读性 | 📱 响应式 - buttons: - - name: 文档 - url: docs - - name: 标签 - url: tags - menu: - main: - - name: 文档 - url: docs - weight: 1 - - name: 标签 - url: tags/ - weight: 4 - - name: 归档 - url: archives - weight: 5 - - name: 搜索 - url: search/ - weight: 10 - - name: "@作者" - url: "https://reorx.com" - params: - external: true - -outputs: - home: - - HTML - - RSS - - JSON params: env: production # to enable google analytics, opengraph, twitter-cards and schema. @@ -94,11 +21,13 @@ params: - docs - posts disableAnchoredHeadings: true + images: ["cover.png"] defaultTheme: auto # disableThemeToggle: true ShowShareButtons: true ShowReadingTime: true + ShowWordCount: true # disableSpecial1stPost: true displayFullLangName: true ShowPostNavLinks: true @@ -107,10 +36,21 @@ params: ShowToc: true TocOpen: true TocSide: "right" - # DisableSmoothScroll: true EnableInstantClick: true - # comments: false - images: ["cover.png"] + EnableImageZoom: true + + commentSystems: + disqus: + shortname: reorx + remark42: + url: https://remark42.reorx.com + site: reorx.github.io + telegramWidget: + channel: reorx_share + accentColor: "9077e1" + limit: 20 + defaultCommentSystems: + remark42: true profileMode: enabled: false @@ -121,9 +61,9 @@ params: # imageHeight: 120 buttons: - name: Archives - url: archives + url: /archives/ - name: Tags - url: tags + url: /tags/ homeInfoParams: Title: "PaperModX" @@ -175,6 +115,78 @@ params: # minMatchCharLength: 0 # keys: ["title", "permalink", "summary", "content"] +minify: + disableXML: true + # minifyOutput: true + +languages: + en: + languageName: "English" + weight: 1 + menu: + main: + - name: Docs + url: /docs/ + weight: 1 + - name: Tags + url: /tags/ + weight: 4 + - name: Archive + url: /archives/ + weight: 5 + - name: Search + url: /search/ + weight: 10 + - name: "@Author" + url: "https://reorx.com" + params: + external: true + + zh: + languageName: ":cn:" + languageAltTitle: 中文 + weight: 2 + title: PaperModX + profileMode: + enabled: true + title: PaperModX + # imageUrl: "#" + # imageTitle: my image + # imageWidth: 120 + # imageHeight: 120 + subtitle: > + <p>Hugo 主题</p> + ☄️ 快速 | ☁️ 流畅 | 📖 可读性 | 📱 响应式 + buttons: + - name: 文档 + url: docs + - name: 标签 + url: tags + menu: + main: + - name: 文档 + url: docs + weight: 1 + - name: 标签 + url: tags/ + weight: 4 + - name: 归档 + url: archives + weight: 5 + - name: 搜索 + url: search/ + weight: 10 + - name: "@作者" + url: "https://reorx.com" + params: + external: true + +outputs: + home: + - HTML + - RSS + - JSON + taxonomies: category: categories tag: tags @@ -186,7 +198,7 @@ markup: unsafe: true highlight: style: dracula - lineNos: true + lineNos: false noClasses: false privacy: |
