From 94044d2ecc0320149e382b873d443c09f303aecc Mon Sep 17 00:00:00 2001 From: JinhangZhu Date: Fri, 10 Jul 2020 17:35:27 +0100 Subject: [PATCH] first commit --- .gitignore | 4 + .gitmodules | 3 + README.md | 9 + archetypes/default.md | 17 + assets/scss/custom/_custom.scss | 130 + config.toml | 1317 +++++ content/JinhangZhu_CV_CN.pdf | Bin 0 -> 728900 bytes content/JinhangZhu_CV_EN.pdf | Bin 0 -> 99729 bytes content/about/_index.md | 26 + ...thedral-The-place-where-my-mind-resides.md | 47 + .../life/British-Museum-Troy-Exhibition.md | 46 + .../How-to-write-a-formal-email-in-English.md | 210 + ...12\350\257\276\346\204\237\345\217\227.md" | 38 + ...12\350\257\276\346\204\237\345\217\227.md" | 35 + ...41\346\213\233\347\273\217\345\216\206.md" | 310 + ...23\345\215\241\345\220\215\345\275\225.md" | 65 + ...54\347\253\213\346\200\235\346\203\263.md" | 34 + .../life/\351\243\237\347\224\250Hugo.md" | 62 + content/projects/_index.md | 31 + content/reviews/_index.md | 340 ++ content/tech/C-Building-Process.md | 368 ++ ...from-Supervisely-JSON-to-Darknet-Format.md | 410 ++ .../D-H-Conventions-for-Forward-Kinematics.md | 300 + ...07\344\270\200\350\207\264\346\200\247.md" | 141 + ...-a-Decision-Tree-in-Python-From-Scratch.md | 1119 ++++ ...-Inverse-Kinematics-via-Neural-Networks.md | 208 + ...13\345\206\231\346\225\260\345\255\227.md" | 381 ++ ...02\344\275\225\345\267\245\344\275\234.md" | 486 ++ ...46\344\271\240\346\226\271\346\263\225.md" | 363 ++ ...Hand-detection-using-multiple-proposals.md | 68 + content/tech/Review-MTCNN.md | 334 ++ content/tech/Review-YOLOv1.md | 53 + content/tech/Review-YOLOv2.md | 118 + content/tech/Review-YOLOv3.md | 211 + ...ng-Ordinary-Differential-Equations-ODEs.md | 314 + content/tech/Style-Guide-for-Python-Code.md | 170 + ...03\345\244\247\350\266\205\347\256\227.md" | 102 + ...72\345\231\250\345\255\246\344\271\240.md" | 26 + ...30\346\215\242\347\237\251\351\230\265.md" | 139 + ...250\345\255\246\344\271\240Check sheet.md" | 192 + ...272\345\255\246\347\232\204Singularity.md" | 449 ++ ...74\210C-\344\270\216Python\357\274\211.md" | 219 + data/SVG.toml | 92 + data/Socials.toml | 41 + deploy.sh | 22 + gulpfile.js | 30 + layouts/partials/script.html | 62 + netlify.toml | 18 + package-lock.json | 5205 +++++++++++++++++ static/CNAME | 1 + static/favicon.ico | Bin 0 -> 15086 bytes static/fonts/glyph-correction.eot | Bin 0 -> 2226 bytes static/fonts/glyph-correction.ttf | Bin 0 -> 1972 bytes static/fonts/glyph-correction.woff | Bin 0 -> 2048 bytes static/fonts/glyph-correction.woff2 | Bin 0 -> 788 bytes static/icons/android-chrome-192x192.png | Bin 0 -> 9517 bytes static/icons/android-chrome-512x512.png | Bin 0 -> 32322 bytes static/icons/apple-touch-icon.png | Bin 0 -> 8849 bytes static/icons/mstile-150x150.png | Bin 0 -> 5331 bytes static/icons/safari-pinned-tab.svg | 276 + static/manifest.json | 16 + sw-template.js | 108 + themes/meme/CHANGELOG.md | 673 +++ themes/meme/LICENSE | 20 + themes/meme/README.md | 159 + themes/meme/README.zh-cn.md | 159 + themes/meme/assets/js/back-to-top.js | 12 + themes/meme/assets/js/comments.js | 10 + themes/meme/assets/js/copy.js | 78 + themes/meme/assets/js/custom.js | 0 themes/meme/assets/js/dark-mode.js | 123 + themes/meme/assets/js/force-https.js | 6 + themes/meme/assets/js/header.js | 8 + themes/meme/assets/js/lunr-search.js | 201 + themes/meme/assets/js/main.js | 24 + themes/meme/assets/js/multilingual.js | 15 + themes/meme/assets/js/nav-toggle.js | 99 + themes/meme/assets/scss/base/_base.scss | 111 + .../assets/scss/base/_data-attributes.scss | 82 + .../assets/scss/base/_emphasis-point.scss | 9 + .../meme/assets/scss/base/_font-family.scss | 64 + .../assets/scss/base/_glyph-correction.scss | 11 + themes/meme/assets/scss/base/_indent.scss | 60 + themes/meme/assets/scss/base/_max-width.scss | 1 + themes/meme/assets/scss/base/_responsive.scss | 154 + themes/meme/assets/scss/base/_supports.scss | 7 + .../assets/scss/components/_back-to-top.scss | 27 + .../assets/scss/components/_comments.scss | 16 + .../assets/scss/components/_highlight.scss | 99 + .../components/_minimal-footer-about.scss | 23 + .../scss/components/_minimal-footer.scss | 27 + .../assets/scss/components/_multilingual.scss | 31 + .../assets/scss/components/_nav-toggle.scss | 63 + .../scss/components/_post-copyright.scss | 18 + .../assets/scss/components/_post-gitinfo.scss | 34 + .../assets/scss/components/_post-meta.scss | 28 + .../assets/scss/components/_post-nav.scss | 19 + .../assets/scss/components/_post-share.scss | 110 + .../assets/scss/components/_post-tags.scss | 17 + .../scss/components/_related-posts.scss | 27 + .../meme/assets/scss/components/_search.scss | 54 + .../meme/assets/scss/components/_socials.scss | 22 + .../scss/components/_theme-switcher.scss | 20 + .../scss/components/_updated-badge.scss | 12 + themes/meme/assets/scss/custom/_custom.scss | 0 themes/meme/assets/scss/layout/_footer.scss | 45 + themes/meme/assets/scss/layout/_header.scss | 87 + themes/meme/assets/scss/layout/_list.scss | 92 + themes/meme/assets/scss/layout/_menu.scss | 52 + themes/meme/assets/scss/layout/_single.scss | 259 + themes/meme/assets/scss/main.scss | 473 ++ themes/meme/assets/scss/pages/_404.scss | 64 + .../meme/assets/scss/pages/_home-footage.scss | 97 + .../meme/assets/scss/pages/_home-poetry.scss | 30 + .../meme/assets/scss/pages/_home-posts.scss | 35 + themes/meme/assets/scss/pages/_tag-cloud.scss | 8 + .../assets/scss/pages/_tree-categories.scss | 44 + themes/meme/assets/scss/themes/_dark.scss | 54 + themes/meme/assets/scss/themes/_light.scss | 50 + .../assets/scss/third-party/_busuanzi.scss | 12 + .../assets/scss/third-party/_medium-zoom.scss | 3 + .../scss/third-party/_sw-notification.scss | 22 + themes/meme/assets/scss/utils/_functions.scss | 31 + themes/meme/assets/scss/utils/_mixins.scss | 21 + themes/meme/config-examples/en/config.toml | 1328 +++++ themes/meme/config-examples/zh-cn/config.toml | 1301 ++++ themes/meme/data/ChineseZodiac.toml | 12 + themes/meme/data/SVG.toml | 88 + themes/meme/data/Socials.toml | 41 + themes/meme/exampleSite/config.toml | 1 + themes/meme/i18n/de.toml | 174 + themes/meme/i18n/en.toml | 174 + themes/meme/i18n/my.toml | 174 + themes/meme/i18n/no.toml | 174 + themes/meme/i18n/pt-br.toml | 174 + themes/meme/i18n/zh.toml | 166 + themes/meme/images/screenshot.png | Bin 0 -> 170233 bytes themes/meme/images/tn.png | Bin 0 -> 85870 bytes themes/meme/layouts/404.html | 26 + themes/meme/layouts/_default/baseof.html | 20 + themes/meme/layouts/_default/list.html | 93 + themes/meme/layouts/_default/single.html | 3 + themes/meme/layouts/index.html | 18 + themes/meme/layouts/index.searchindex.json | 28 + themes/meme/layouts/index.sectionsatom.xml | 92 + themes/meme/layouts/index.sectionsrss.xml | 86 + .../partials/components/back-to-top.html | 5 + .../layouts/partials/components/comments.html | 21 + .../partials/components/dark-mode.html | 9 + .../components/minimal-footer-about.html | 26 + .../partials/components/minimal-footer.html | 96 + .../partials/components/multilingual.html | 25 + .../partials/components/nav-toggle.html | 5 + .../partials/components/post-copyright.html | 29 + .../partials/components/post-gitinfo.html | 56 + .../partials/components/post-meta.html | 86 + .../layouts/partials/components/post-nav.html | 25 + .../partials/components/post-share.html | 120 + .../partials/components/post-tags.html | 15 + .../components/post-updated-badge.html | 12 + .../partials/components/related-posts.html | 15 + .../layouts/partials/components/search.html | 18 + .../layouts/partials/components/socials.html | 13 + .../meme/layouts/partials/custom/content.html | 0 .../meme/layouts/partials/custom/footer.html | 0 themes/meme/layouts/partials/custom/head.html | 0 .../meme/layouts/partials/custom/header.html | 0 .../layouts/partials/custom/post-meta.html | 0 .../meme/layouts/partials/custom/script.html | 0 themes/meme/layouts/partials/footer.html | 79 + themes/meme/layouts/partials/head.html | 112 + themes/meme/layouts/partials/header.html | 26 + themes/meme/layouts/partials/menu.html | 52 + .../layouts/partials/pages/home-footage.html | 37 + .../layouts/partials/pages/home-poetry.html | 16 + .../layouts/partials/pages/home-posts.html | 37 + themes/meme/layouts/partials/pages/post.html | 68 + .../layouts/partials/pages/tag-cloud.html | 30 + .../meme/layouts/partials/pages/taxonomy.html | 23 + .../partials/pages/tree-categories.html | 92 + .../layouts/partials/pages/tree-sections.html | 79 + themes/meme/layouts/partials/script.html | 59 + themes/meme/layouts/partials/style.html | 10 + .../partials/third-party/busuanzi.html | 5 + .../layouts/partials/third-party/disqus.html | 27 + .../third-party/google-adsense-auto.html | 6 + .../third-party/google-adsense-unit.html | 6 + .../partials/third-party/google-adsense.html | 1 + .../third-party/google-analytics.html | 24 + .../partials/third-party/instant-page.html | 1 + .../layouts/partials/third-party/katex.html | 48 + .../partials/third-party/lunr-search.html | 13 + .../layouts/partials/third-party/mathjax.html | 30 + .../partials/third-party/medium-zoom.html | 7 + .../layouts/partials/third-party/mermaid.html | 20 + .../third-party/qrcode-generator.html | 10 + .../layouts/partials/third-party/script.html | 47 + .../partials/third-party/service-worker.html | 29 + .../partials/third-party/smooth-scroll.html | 8 + .../partials/third-party/utterances.html | 36 + .../layouts/partials/third-party/valine.html | 45 + .../meme/layouts/partials/utils/author.html | 48 + .../partials/utils/auto-detect-images.html | 11 + .../meme/layouts/partials/utils/content.html | 187 + .../partials/utils/data-attributes.html | 29 + themes/meme/layouts/partials/utils/date.html | 13 + themes/meme/layouts/partials/utils/icon.html | 6 + .../meme/layouts/partials/utils/images.html | 28 + .../meme/layouts/partials/utils/json-ld.html | 151 + .../partials/utils/limit-tree-posts.html | 29 + .../layouts/partials/utils/list-item.html | 29 + .../partials/utils/make-links-absolute.html | 7 + .../layouts/partials/utils/markdownify.html | 30 + .../layouts/partials/utils/open-graph.html | 44 + .../layouts/partials/utils/relative-url.html | 12 + .../meme/layouts/partials/utils/summary.html | 11 + themes/meme/layouts/partials/utils/title.html | 29 + themes/meme/layouts/partials/utils/toc.html | 27 + .../layouts/partials/utils/tree-sections.html | 23 + .../layouts/partials/utils/twitter-cards.html | 21 + .../layouts/partials/utils/updated-badge.html | 3 + themes/meme/layouts/section/categories.html | 3 + .../meme/layouts/taxonomy/category.terms.html | 7 + themes/meme/layouts/taxonomy/tag.terms.html | 7 + themes/meme/layouts/taxonomy/terms.html | 3 + themes/meme/static/favicon.ico | Bin 0 -> 15086 bytes themes/meme/static/fonts/glyph-correction.eot | Bin 0 -> 2226 bytes themes/meme/static/fonts/glyph-correction.ttf | Bin 0 -> 1972 bytes .../meme/static/fonts/glyph-correction.woff | Bin 0 -> 2048 bytes .../meme/static/fonts/glyph-correction.woff2 | Bin 0 -> 788 bytes .../static/icons/android-chrome-512x512.png | Bin 0 -> 23287 bytes themes/meme/static/icons/apple-touch-icon.png | Bin 0 -> 3714 bytes themes/meme/static/icons/mstile-150x150.png | Bin 0 -> 4330 bytes .../meme/static/icons/safari-pinned-tab.svg | 77 + themes/meme/static/manifest.json | 16 + themes/meme/theme.toml | 15 + 236 files changed, 25676 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 README.md create mode 100644 archetypes/default.md create mode 100644 assets/scss/custom/_custom.scss create mode 100644 config.toml create mode 100644 content/JinhangZhu_CV_CN.pdf create mode 100644 content/JinhangZhu_CV_EN.pdf create mode 100644 content/about/_index.md create mode 100644 content/life/Bristol-Cathedral-The-place-where-my-mind-resides.md create mode 100644 content/life/British-Museum-Troy-Exhibition.md create mode 100644 content/life/How-to-write-a-formal-email-in-English.md create mode 100644 "content/life/RRP\357\274\210\344\270\212\357\274\211\344\270\212\350\257\276\346\204\237\345\217\227.md" create mode 100644 "content/life/TCRAS\350\257\276\347\250\213\344\270\212\350\257\276\346\204\237\345\217\227.md" create mode 100644 "content/life/\345\215\216\344\270\2722019\346\240\241\346\213\233\347\273\217\345\216\206.md" create mode 100644 "content/life/\345\215\232\347\211\251\351\246\206\346\211\223\345\215\241\345\220\215\345\275\225.md" create mode 100644 "content/life/\346\210\221\346\234\211\346\262\241\346\234\211\347\213\254\347\253\213\346\200\235\346\203\263.md" create mode 100644 "content/life/\351\243\237\347\224\250Hugo.md" create mode 100644 content/projects/_index.md create mode 100644 content/reviews/_index.md create mode 100644 content/tech/C-Building-Process.md create mode 100644 content/tech/Conversion-from-Supervisely-JSON-to-Darknet-Format.md create mode 100644 content/tech/D-H-Conventions-for-Forward-Kinematics.md create mode 100644 "content/tech/DH\345\222\214\345\207\240\344\275\225\346\263\225\350\256\241\347\256\227\345\235\220\346\240\207\344\270\200\350\207\264\346\200\247.md" create mode 100644 content/tech/Develop-a-Decision-Tree-in-Python-From-Scratch.md create mode 100644 content/tech/Investigate-the-Inverse-Kinematics-via-Neural-Networks.md create mode 100644 "content/tech/NNDL-1\357\274\232\344\275\277\347\224\250\347\245\236\347\273\217\347\275\221\347\273\234\350\257\206\345\210\253\346\211\213\345\206\231\346\225\260\345\255\227.md" create mode 100644 "content/tech/NNDL-2\357\274\232\345\217\215\345\220\221\344\274\240\346\222\255\347\256\227\346\263\225\345\246\202\344\275\225\345\267\245\344\275\234.md" create mode 100644 "content/tech/NNDL-3\357\274\232\346\224\271\350\277\233\347\245\236\347\273\217\347\275\221\347\273\234\347\232\204\345\255\246\344\271\240\346\226\271\346\263\225.md" create mode 100644 content/tech/Review-Hand-detection-using-multiple-proposals.md create mode 100644 content/tech/Review-MTCNN.md create mode 100644 content/tech/Review-YOLOv1.md create mode 100644 content/tech/Review-YOLOv2.md create mode 100644 content/tech/Review-YOLOv3.md create mode 100644 content/tech/Solving-Ordinary-Differential-Equations-ODEs.md create mode 100644 content/tech/Style-Guide-for-Python-Code.md create mode 100644 "content/tech/\344\273\216Google Colab\345\210\260\345\270\203\345\244\247\350\266\205\347\256\227.md" create mode 100644 "content/tech/\345\217\215\346\200\235\346\210\221\345\246\202\344\275\225\345\255\246\344\271\240\346\234\272\345\231\250\345\255\246\344\271\240.md" create mode 100644 "content/tech/\346\216\250\345\257\274\351\275\220\346\254\241\345\217\230\346\215\242\347\237\251\351\230\265.md" create mode 100644 "content/tech/\346\234\272\345\231\250\345\255\246\344\271\240Check sheet.md" create mode 100644 "content/tech/\347\220\206\350\247\243\346\234\272\345\231\250\344\272\272\345\255\246\347\232\204Singularity.md" create mode 100644 "content/tech/\347\261\273\344\270\216\345\257\271\350\261\241\357\274\210C-\344\270\216Python\357\274\211.md" create mode 100644 data/SVG.toml create mode 100644 data/Socials.toml create mode 100644 deploy.sh create mode 100644 gulpfile.js create mode 100644 layouts/partials/script.html create mode 100644 netlify.toml create mode 100644 package-lock.json create mode 100644 static/CNAME create mode 100644 static/favicon.ico create mode 100644 static/fonts/glyph-correction.eot create mode 100644 static/fonts/glyph-correction.ttf create mode 100644 static/fonts/glyph-correction.woff create mode 100644 static/fonts/glyph-correction.woff2 create mode 100644 static/icons/android-chrome-192x192.png create mode 100644 static/icons/android-chrome-512x512.png create mode 100644 static/icons/apple-touch-icon.png create mode 100644 static/icons/mstile-150x150.png create mode 100644 static/icons/safari-pinned-tab.svg create mode 100644 static/manifest.json create mode 100644 sw-template.js create mode 100644 themes/meme/CHANGELOG.md create mode 100644 themes/meme/LICENSE create mode 100644 themes/meme/README.md create mode 100644 themes/meme/README.zh-cn.md create mode 100644 themes/meme/assets/js/back-to-top.js create mode 100644 themes/meme/assets/js/comments.js create mode 100644 themes/meme/assets/js/copy.js create mode 100644 themes/meme/assets/js/custom.js create mode 100644 themes/meme/assets/js/dark-mode.js create mode 100644 themes/meme/assets/js/force-https.js create mode 100644 themes/meme/assets/js/header.js create mode 100644 themes/meme/assets/js/lunr-search.js create mode 100644 themes/meme/assets/js/main.js create mode 100644 themes/meme/assets/js/multilingual.js create mode 100644 themes/meme/assets/js/nav-toggle.js create mode 100644 themes/meme/assets/scss/base/_base.scss create mode 100644 themes/meme/assets/scss/base/_data-attributes.scss create mode 100644 themes/meme/assets/scss/base/_emphasis-point.scss create mode 100644 themes/meme/assets/scss/base/_font-family.scss create mode 100644 themes/meme/assets/scss/base/_glyph-correction.scss create mode 100644 themes/meme/assets/scss/base/_indent.scss create mode 100644 themes/meme/assets/scss/base/_max-width.scss create mode 100644 themes/meme/assets/scss/base/_responsive.scss create mode 100644 themes/meme/assets/scss/base/_supports.scss create mode 100644 themes/meme/assets/scss/components/_back-to-top.scss create mode 100644 themes/meme/assets/scss/components/_comments.scss create mode 100644 themes/meme/assets/scss/components/_highlight.scss create mode 100644 themes/meme/assets/scss/components/_minimal-footer-about.scss create mode 100644 themes/meme/assets/scss/components/_minimal-footer.scss create mode 100644 themes/meme/assets/scss/components/_multilingual.scss create mode 100644 themes/meme/assets/scss/components/_nav-toggle.scss create mode 100644 themes/meme/assets/scss/components/_post-copyright.scss create mode 100644 themes/meme/assets/scss/components/_post-gitinfo.scss create mode 100644 themes/meme/assets/scss/components/_post-meta.scss create mode 100644 themes/meme/assets/scss/components/_post-nav.scss create mode 100644 themes/meme/assets/scss/components/_post-share.scss create mode 100644 themes/meme/assets/scss/components/_post-tags.scss create mode 100644 themes/meme/assets/scss/components/_related-posts.scss create mode 100644 themes/meme/assets/scss/components/_search.scss create mode 100644 themes/meme/assets/scss/components/_socials.scss create mode 100644 themes/meme/assets/scss/components/_theme-switcher.scss create mode 100644 themes/meme/assets/scss/components/_updated-badge.scss create mode 100644 themes/meme/assets/scss/custom/_custom.scss create mode 100644 themes/meme/assets/scss/layout/_footer.scss create mode 100644 themes/meme/assets/scss/layout/_header.scss create mode 100644 themes/meme/assets/scss/layout/_list.scss create mode 100644 themes/meme/assets/scss/layout/_menu.scss create mode 100644 themes/meme/assets/scss/layout/_single.scss create mode 100644 themes/meme/assets/scss/main.scss create mode 100644 themes/meme/assets/scss/pages/_404.scss create mode 100644 themes/meme/assets/scss/pages/_home-footage.scss create mode 100644 themes/meme/assets/scss/pages/_home-poetry.scss create mode 100644 themes/meme/assets/scss/pages/_home-posts.scss create mode 100644 themes/meme/assets/scss/pages/_tag-cloud.scss create mode 100644 themes/meme/assets/scss/pages/_tree-categories.scss create mode 100644 themes/meme/assets/scss/themes/_dark.scss create mode 100644 themes/meme/assets/scss/themes/_light.scss create mode 100644 themes/meme/assets/scss/third-party/_busuanzi.scss create mode 100644 themes/meme/assets/scss/third-party/_medium-zoom.scss create mode 100644 themes/meme/assets/scss/third-party/_sw-notification.scss create mode 100644 themes/meme/assets/scss/utils/_functions.scss create mode 100644 themes/meme/assets/scss/utils/_mixins.scss create mode 100644 themes/meme/config-examples/en/config.toml create mode 100644 themes/meme/config-examples/zh-cn/config.toml create mode 100644 themes/meme/data/ChineseZodiac.toml create mode 100644 themes/meme/data/SVG.toml create mode 100644 themes/meme/data/Socials.toml create mode 100644 themes/meme/exampleSite/config.toml create mode 100644 themes/meme/i18n/de.toml create mode 100644 themes/meme/i18n/en.toml create mode 100644 themes/meme/i18n/my.toml create mode 100644 themes/meme/i18n/no.toml create mode 100644 themes/meme/i18n/pt-br.toml create mode 100644 themes/meme/i18n/zh.toml create mode 100644 themes/meme/images/screenshot.png create mode 100644 themes/meme/images/tn.png create mode 100644 themes/meme/layouts/404.html create mode 100644 themes/meme/layouts/_default/baseof.html create mode 100644 themes/meme/layouts/_default/list.html create mode 100644 themes/meme/layouts/_default/single.html create mode 100644 themes/meme/layouts/index.html create mode 100644 themes/meme/layouts/index.searchindex.json create mode 100644 themes/meme/layouts/index.sectionsatom.xml create mode 100644 themes/meme/layouts/index.sectionsrss.xml create mode 100644 themes/meme/layouts/partials/components/back-to-top.html create mode 100644 themes/meme/layouts/partials/components/comments.html create mode 100644 themes/meme/layouts/partials/components/dark-mode.html create mode 100644 themes/meme/layouts/partials/components/minimal-footer-about.html create mode 100644 themes/meme/layouts/partials/components/minimal-footer.html create mode 100644 themes/meme/layouts/partials/components/multilingual.html create mode 100644 themes/meme/layouts/partials/components/nav-toggle.html create mode 100644 themes/meme/layouts/partials/components/post-copyright.html create mode 100644 themes/meme/layouts/partials/components/post-gitinfo.html create mode 100644 themes/meme/layouts/partials/components/post-meta.html create mode 100644 themes/meme/layouts/partials/components/post-nav.html create mode 100644 themes/meme/layouts/partials/components/post-share.html create mode 100644 themes/meme/layouts/partials/components/post-tags.html create mode 100644 themes/meme/layouts/partials/components/post-updated-badge.html create mode 100644 themes/meme/layouts/partials/components/related-posts.html create mode 100644 themes/meme/layouts/partials/components/search.html create mode 100644 themes/meme/layouts/partials/components/socials.html create mode 100644 themes/meme/layouts/partials/custom/content.html create mode 100644 themes/meme/layouts/partials/custom/footer.html create mode 100644 themes/meme/layouts/partials/custom/head.html create mode 100644 themes/meme/layouts/partials/custom/header.html create mode 100644 themes/meme/layouts/partials/custom/post-meta.html create mode 100644 themes/meme/layouts/partials/custom/script.html create mode 100644 themes/meme/layouts/partials/footer.html create mode 100644 themes/meme/layouts/partials/head.html create mode 100644 themes/meme/layouts/partials/header.html create mode 100644 themes/meme/layouts/partials/menu.html create mode 100644 themes/meme/layouts/partials/pages/home-footage.html create mode 100644 themes/meme/layouts/partials/pages/home-poetry.html create mode 100644 themes/meme/layouts/partials/pages/home-posts.html create mode 100644 themes/meme/layouts/partials/pages/post.html create mode 100644 themes/meme/layouts/partials/pages/tag-cloud.html create mode 100644 themes/meme/layouts/partials/pages/taxonomy.html create mode 100644 themes/meme/layouts/partials/pages/tree-categories.html create mode 100644 themes/meme/layouts/partials/pages/tree-sections.html create mode 100644 themes/meme/layouts/partials/script.html create mode 100644 themes/meme/layouts/partials/style.html create mode 100644 themes/meme/layouts/partials/third-party/busuanzi.html create mode 100644 themes/meme/layouts/partials/third-party/disqus.html create mode 100644 themes/meme/layouts/partials/third-party/google-adsense-auto.html create mode 100644 themes/meme/layouts/partials/third-party/google-adsense-unit.html create mode 100644 themes/meme/layouts/partials/third-party/google-adsense.html create mode 100644 themes/meme/layouts/partials/third-party/google-analytics.html create mode 100644 themes/meme/layouts/partials/third-party/instant-page.html create mode 100644 themes/meme/layouts/partials/third-party/katex.html create mode 100644 themes/meme/layouts/partials/third-party/lunr-search.html create mode 100644 themes/meme/layouts/partials/third-party/mathjax.html create mode 100644 themes/meme/layouts/partials/third-party/medium-zoom.html create mode 100644 themes/meme/layouts/partials/third-party/mermaid.html create mode 100644 themes/meme/layouts/partials/third-party/qrcode-generator.html create mode 100644 themes/meme/layouts/partials/third-party/script.html create mode 100644 themes/meme/layouts/partials/third-party/service-worker.html create mode 100644 themes/meme/layouts/partials/third-party/smooth-scroll.html create mode 100644 themes/meme/layouts/partials/third-party/utterances.html create mode 100644 themes/meme/layouts/partials/third-party/valine.html create mode 100644 themes/meme/layouts/partials/utils/author.html create mode 100644 themes/meme/layouts/partials/utils/auto-detect-images.html create mode 100644 themes/meme/layouts/partials/utils/content.html create mode 100644 themes/meme/layouts/partials/utils/data-attributes.html create mode 100644 themes/meme/layouts/partials/utils/date.html create mode 100644 themes/meme/layouts/partials/utils/icon.html create mode 100644 themes/meme/layouts/partials/utils/images.html create mode 100644 themes/meme/layouts/partials/utils/json-ld.html create mode 100644 themes/meme/layouts/partials/utils/limit-tree-posts.html create mode 100644 themes/meme/layouts/partials/utils/list-item.html create mode 100644 themes/meme/layouts/partials/utils/make-links-absolute.html create mode 100644 themes/meme/layouts/partials/utils/markdownify.html create mode 100644 themes/meme/layouts/partials/utils/open-graph.html create mode 100644 themes/meme/layouts/partials/utils/relative-url.html create mode 100644 themes/meme/layouts/partials/utils/summary.html create mode 100644 themes/meme/layouts/partials/utils/title.html create mode 100644 themes/meme/layouts/partials/utils/toc.html create mode 100644 themes/meme/layouts/partials/utils/tree-sections.html create mode 100644 themes/meme/layouts/partials/utils/twitter-cards.html create mode 100644 themes/meme/layouts/partials/utils/updated-badge.html create mode 100644 themes/meme/layouts/section/categories.html create mode 100644 themes/meme/layouts/taxonomy/category.terms.html create mode 100644 themes/meme/layouts/taxonomy/tag.terms.html create mode 100644 themes/meme/layouts/taxonomy/terms.html create mode 100644 themes/meme/static/favicon.ico create mode 100644 themes/meme/static/fonts/glyph-correction.eot create mode 100644 themes/meme/static/fonts/glyph-correction.ttf create mode 100644 themes/meme/static/fonts/glyph-correction.woff create mode 100644 themes/meme/static/fonts/glyph-correction.woff2 create mode 100644 themes/meme/static/icons/android-chrome-512x512.png create mode 100644 themes/meme/static/icons/apple-touch-icon.png create mode 100644 themes/meme/static/icons/mstile-150x150.png create mode 100644 themes/meme/static/icons/safari-pinned-tab.svg create mode 100644 themes/meme/static/manifest.json create mode 100644 themes/meme/theme.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1e71f3d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +public/ +resources/ +.env \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4f8e090 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/meme"] + path = themes/meme + url = https://github.com/reuixiy/hugo-theme-meme.git \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b676a9 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# jinhang.work + +at [jinhang.work](https://jinhang.work/). + +[![Generator is Hugo](https://img.shields.io/badge/Generator%20is-Hugo-ff4088?&logo=hugo)](https://github.com/gohugoio/hugo) +[![Theme is MemE](https://img.shields.io/badge/Theme%20is-MemE-2a6df4)](https://github.com/reuixiy/hugo-theme-meme) +[![Source on GitHub](https://img.shields.io/badge/Source%20on-GitHub-181717?&logo=github)](https://github.com/JinhangZhu/jinhangzhu.github.io) + + diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..3c1feb8 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,17 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +subtitle: "" +date: {{ .Date }} +categories: [] +tags: [] +slug: "" +toc: false +displayCopyright: false +dropCap: true +mermaid: false +comments: true +--- + + + + \ No newline at end of file diff --git a/assets/scss/custom/_custom.scss b/assets/scss/custom/_custom.scss new file mode 100644 index 0000000..cf1db29 --- /dev/null +++ b/assets/scss/custom/_custom.scss @@ -0,0 +1,130 @@ +/* Global variables*/ +:root { + --global-font-family: "glyph-correction", "Amstelvar", "Noto Serif SC", serif; + --mark-color: #ee5253; + --button-color: #42cc8c; +} + +/* Styling from the author */ +body { + font-family: var(--global-font-family); +} + +.viva-la-vida { + margin-top: 50px; + text-align: center; + font-family: "Cinzel Decorative", serif !important; + background-image: linear-gradient( + 90deg, + #a166ab 0, + #a166ab 40%, + #ef4e7b 45%, + #f37055 50%, + #ef4e7b 55%, + #a166ab 60%, + #a166ab 100% + ); + background-size: cover; + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +.nav { + font-size: 1em; +} + +.brand { + font-weight: 600; + line-height: 2; + font-size: 1.3em; +} + +.home .poetry { + padding: 10em 1em; +} + +.tag-cloud-item { + font-family: "Cinzel", serif; +} + +.list-title { + font-family: "Cinzel Decorative", cursive; +} + +.post-subtitle { + font-size: 1.1em; + text-align: center; + font-weight: 300; + margin-top: -0.618em; +} + +.sticker { + width: 30%; + height: 30%; +} + +.caption { + margin-bottom: 2em; +} + +/* External styling to add new features */ +// button +// https://codemyui.com/pure-css-gradient-button-hover-effect/ +.btn { + flex: 1 1 auto; + margin: 10px; + padding: 18px; + text-align: center; + text-transform: uppercase; + transition: 0.5s; + background-size: 200% auto; + color: white; + font-family: "Cinzel Decorative", serif; + text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); + box-shadow: 0 0 10px #eee; + border-radius: 10px; +} + +/* Demo Stuff End -> */ + +/* <- Magic Stuff Start */ + +.btn:hover { + background-position: right center; /* change the direction of the change here */ +} + +.btn-1 { + background-image: linear-gradient(to right, #f6d365 0%, #fda085 51%, #f6d365 100%); +} + +.btn-2 { + background-image: linear-gradient(to right, #fbc2eb 0%, #a6c1ee 51%, #fbc2eb 100%); +} + +.btn-3 { + background-image: linear-gradient(to right, #84fab0 0%, #8fd3f4 51%, #84fab0 100%); +} + +.btn-4 { + background-image: linear-gradient(to right, #a1c4fd 0%, #c2e9fb 51%, #a1c4fd 100%); +} + +.btn-5 { + background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 51%, #ffecd2 100%); +} + +/* Magic Stuff End -> */ + +// mark +.mark { + text-decoration: none; + border-bottom: 2px solid var(--mark-color); + box-shadow: inset 0 -0.25px 0 var(--mark-color); + color: inherit; + transition: background 0.1s cubic-bezier(0.33, 0.66, 0.66, 1); +} + +.mark:hover { + color: white; + background: var(--mark-color); +} diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..b86fed9 --- /dev/null +++ b/config.toml @@ -0,0 +1,1317 @@ +########################################## +# 站点配置 + +baseURL = "https://jinhang.work/" +title = "Jinhang" +languageCode = "zh-CN" +hasCJKLanguage = true +# 版权信息(支持 Markdown) +copyright = "[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh)" + +# 主题选择 +theme = "meme" + +# `hugo new` 新建文章自动打开的文本编辑器 +newContentEditor = "" + +# i18n +defaultContentLanguage = "zh" +defaultContentLanguageInSubdir = false + +# 是否复数化列表页面的标题 +pluralizeListTitles = false + +# 摘要的字数限制 +summaryLength = 42 + +# 是否开启 GitHub 风格的 Emoji 书写方式 +enableEmoji = true + +# 脚注的返回链接中的文本 +footnoteReturnLinkContents = "↩" + +# 是否启用 Git 版本信息 +enableGitInfo = false + +# 是否生成 robots.txt 文件 +enableRobotsTXT = true + +# 每一分页的文章数(仅对「文章摘要」首页布局有效) +paginate = 8 + +# URL 相关 +disablePathToLower = false +relativeURLs = false +uglyURLs = false + +# URL 结构 +[permalinks] + categories = "/categories/:slug/" + tags = "/tags/:slug/" + +# 类别 +[taxonomies] + category = "categories" + tag = "tags" + +# 修改时间 +[frontmatter] + lastmod = ["lastmod", ":git", ":fileModTime", ":default"] + +# Markdown 渲染器 +[markup] + defaultMarkdownHandler = "goldmark" + [markup.goldmark] + [markup.goldmark.extensions] + definitionList = true + footnote = true + linkify = true + strikethrough = true + table = true + taskList = true + typographer = false + [markup.goldmark.parser] + attribute = true + autoHeadingID = true + autoHeadingIDType = "github" + [markup.goldmark.renderer] + hardWraps = false + unsafe = true + xHTML = false + [markup.highlight] + codeFences = true + guessSyntax = false + lineNos = true + lineNumbersInTable = true + noClasses = false + [markup.tableOfContents] + startLevel = 2 + endLevel = 6 + ordered = true + +# 作者信息 +[author] + # 名字 + name = "Jinhang" + # 邮箱 + email = "jinhang.d.zhu@gmail.com" + # 座右铭或简介 + motto = "Carpe Diem" + # 头像 + avatar = "/icons/apple-touch-icon.png" + # 网站(默认值:baseURL) + website = "https://jinhang.work/" + # 推特 + # twitter = "reuixiy" + +# 相关文章 +[related] + threshold = 80 + includeNewer = true + toLower = true + [[related.indices]] + name = "categories" + weight = 100 + [[related.indices]] + name = "tags" + weight = 95 + [[related.indices]] + name = "date" + weight = 10 + pattern = "2006" + +# Atom 文件格式的媒体类型 +[mediaTypes."application/atom+xml"] + suffixes = ["xml"] + +# MemE 主题自定义的 Atom 模板 +[outputFormats.SectionsAtom] + mediaType = "application/atom+xml" + baseName = "atom" + +# MemE 主题自定义的 RSS 模板 +[outputFormats.SectionsRSS] + mediaType = "application/rss+xml" + baseName = "rss" + +# lunr.js 的搜索索引 +# [outputFormats.SearchIndex] +# mediaType = "application/json" +# baseName = "search" + +# Hugo 的输出控制 +[outputs] + page = ["HTML"] + # home = ["HTML", "SectionsAtom", "SectionsRSS", "SearchIndex"] + home = ["HTML", "SectionsAtom", "SectionsRSS"] + section = ["HTML"] + # 类别 + taxonomyTerm = ["HTML"] + # 类别项 + taxonomy = ["HTML"] + # 说明:https://github.com/gohugoio/hugo/issues/4528#issuecomment-508488859 + +# RSS & Atom 文章数限制 +[services.rss] + limit = -1 + + + +########################################## +# 菜单配置 + +# MemE 主题支持以下四种菜单: +# 1. main 顶栏下方(居中布局)或里面(弹性 +# 布局)的菜单栏 +# 2. home 首页的底部链接(适用于「诗意 +# 人生」和「视频片段」布局) +# 3. socials 社交栏(关于页面的极简页脚) +# 4. links 链接栏(关于页面的极简页脚) + +# 菜单内的配置说明如下: +# url 链接地址 +# name 文本(留空("")则无) +# weight 位置 +# pre 内链(internal)或外链(external) +# post 图标(留空("")则无) +# identifier 图标的 Class 名 +# (对于弹性布局的顶栏有三个特殊 +# 的值:`theme-switcher`、 +# `lang-switcher`、`search`) + +[menu] + ## 菜单栏 + # [[menu.main]] + # url = "/" + # name = "首页" + # weight = 1 + # pre = "internal" + # post = "home" + [[menu.main]] + url = "/reviews" + name = "目标检测" + weight = 1 + pre = "internal" + # post = "home" + # [[menu.main]] + # url = "/projects" + # name = "作业" + # weight = 2 + # pre = "internal" + [[menu.main]] + url = "/tech/" + name = "技术" + weight = 2 + pre = "internal" + # post = "archive" + [[menu.main]] + url = "/life/" + name = "生活" + weight = 3 + pre = "internal" + [[menu.main]] + url = "/categories/" + name = "分类" + weight = 4 + pre = "internal" + # post = "th" + [[menu.main]] + url = "/tags/" + name = "标签" + weight = 5 + pre = "internal" + # post = "tags" + [[menu.main]] + url = "/about/" + name = "关于" + weight = 6 + pre = "internal" + # post = "user-circle" + [[menu.main]] + weight = 7 + identifier = "theme-switcher" + [[menu.main]] + weight = 8 + identifier = "lang-switcher" + # [[menu.main]] + # weight = 8 + # identifier = "search" + # post = "search" + + + +########################################## +# 主题配置 + +[params] + ###################################### + # 顶栏 + + # 是否开启 + enableHeader = true + + # 是否在首页显示 + displayHeaderInHome = true + # 说明:对弹性布局的顶栏无效 + + # 背景 + headerBackground = "linear-gradient(90deg, #f795331a 0, #f370551a 15%, #ef4e7b1a 30%, #a166ab1a 44%, #5073b81a 58%, #1098ad1a 72%, #07b39b1a 86%, #6dba821a 100%)" + # 说明:https://developer.mozilla.org/zh-CN/docs/Web/CSS/background + + # 顶栏布局 + headerLayout = "flex" + # 说明:居中布局(center)或弹性布局(flex) + + # 在窄视图下隐藏菜单栏并显示一个按钮? + enableNavToggle = true + + navHeight = "10em" + # 说明:菜单栏展开时的高度 + + + ###################################### + # 品牌栏(在顶栏内) + + # 是否使用 SVG 图片 + siteBrandSVG = true + # 如果是,请将你的 SVG 放到 `SVG.toml` 文 + # 件内,并配置以下项。单位:px。 + siteBrandSVGWidth = 150 + siteBrandSVGHeight = 80 + siteBrandSVGFill = "var(--color-contrast-high)" + # 如果否,则会使用你的站点标题作为默认值,并 + # 以文字的形式显示,下方可配置字号和字色。字 + # 体请到底部的字体部分配置。单位:em。 + siteBrandFontSize = 1.3 + siteBrandFontColor = "var(--color-contrast-high)" + + + ###################################### + # 菜单栏 + + # 是否开启 + enableMenu = true + # 说明:对弹性布局的顶栏无效 + + # 是否在首页显示 + displayMenuInHome = true + # 说明:对弹性布局的顶栏无效 + + # 是否按文章分区高亮当前菜单项 + activeInSection = false + # 说明:如果开启,那么当某一文章的分区名是某 + # 一菜单项中的 `url` 时,该文章页面中 + # 的该菜单项也会被高亮 + + + ###################################### + # 首页布局 + + # MemE 主题有以下四种首页布局: + # 1. poetry 诗意人生 + # 2. footage 视频片段 + # 3. posts 文章摘要 + # 4. page 普通页面 + + homeLayout = "posts" + + ## 「诗意人生」 + # 诗句,支持 Markdown + homePoetry = ["Hello", "world"] + # 底部链接的内间距,单位:em + homeLinksPadding = 1 + + ## 「视频片段」 + homePoster = "" + homeVideoWebm = "" + homeVideoMp4 = "" + homeLogo = "" + homeLogoLink = "" + homeTitle = "" + homeMotto = "" + homeDescription = "" + homeKeywords = "" + homeLinksDelimiter = "" + + + ###################################### + # 站点信息 + + # 站点的 LOGO + siteLogo = "/icons/apple-touch-icon.png" + # 说明:用于 JSON-LD、Open Graph + + # 站点的描述 + siteDescription = "MemE 是一个强大且可高度定制的 GoHugo 博客主题,专为个人博客设计。" + # 说明:用于 HTML 的头部元数据、JSON-LD、 + # Open Graph、Atom、RSS + + # 站点的创建时间 + siteCreatedTime = "2019-09-07T20:17:43+00:00" + # 注意:请保持此格式,更改数字 + + # 站点的推特帐号 + # siteTwitter = "reuixiy" + # 说明:用于 Twitter Cards + + + ###################################### + # 分类方式 + + # MemE 主题支持以下两种分类方式: + # 1. sections 分区 + # 2. categories 部类 + # 其中,分区是基于站点的 content 目录下的 + # 文件夹和子文件夹;部类是基于文章的 Front + # Matter。分类即树状分类,Hexo 是基于文章 + # 的 Front Matter,Hugo 则是基于文件系统 + # 的结构。由于设计理念的不同,导致了 Hexo + # 与 Hugo 的这个差异,故在此设计这个选项, + # 以对从 Hexo 过来的用户友好。但是请注意: + # Hugo 中无法完全实现基于 Front Matter + # 的树状分类,故如需保留树状分类,建议适应 + # Hugo 的设计理念——分区。 + + categoryBy = "categories" + # 注意:如果你设置为 `sections`,请务必将 + # 此配置文件中的类别(taxonomies)中 + # 的 `categories` 删除,不然分类页 + # 面会失效。同时,你还需要自己新建一个 + # `content/categories/_index.md` + # 文件。 + + + ###################################### + # 分类页面 + + # 是否开启树状布局 + enableTree = true + # 注意:如果你设置 categoryBy 为 + # `sections`,则无法关闭树状布局 + + # 是否显示文章标题 + displayPosts = true + + # 是否显示每一分类下的文章数 + displayPostsCount = true + + # 设置一个非负数来限制每一分类下展示的文章数 + limitPostsLimit = -1 + + + ###################################### + # 标签页面 + + # 是否开启标签云 + enableTagCloud = true + # 字号单位 + fontUnit = "em" + # 最大字号 + largestFontSize = 2.5 + # 最小字号 + smallestFontSize = 1 + + + ###################################### + # 列表页面 + + # 宽度 + listWidth = 36 + # 说明:如果留空(""),则用 42 作为默认值 + # 单位:em + + # 是否显示列表标题 + displayListTitle = true + + # 日期的格式 + listDateFormat = "1 月 2 日" + # 注意:请遵循格式 https://gohugo.io/functions/format/ + + # 日期的位置 + listDatePosition = "right" + # 说明:left(左边)或 right(右边) + + # 是否按月份分隔列表 + groupByMonth = false + + # 是否开启十二生肖 + chineseZodiac = true + + # 是否翻译年份(仅对年份标题有效) + i18nYear = true + # 是否翻译月份(仅对月份标题有效) + i18nMonth = true + + + ###################################### + # 类别列表页面 + + # 说明:对于分类页面,你可以设置 `enableTree` + # 为 false 以得到一个普通的类别列表页 + # 面;对于标签页面,你可以设置 + # `enableTagCloud` 为 false 以得到 + # 一个普通的类别列表页面。 + + # 是否显示每一类别项下的文章数 + displayTaxonomyTermCount = true + + # 设置一个非负数来限制每一类别项下展示的文章数 + limitEntriesLimit = -1 + + + ###################################### + # 文章分区范围 + + # 说明:分区的名字即站点的 content 目录下 + # 的文件夹的名字。 + + mainSections = ["tech", "life"] + + + ###################################### + # Atom & RSS + + # 是否包括全文内容 + includeContent = true + # 说明:如果否,则只会包含文章的摘要。关于摘 + # 要,Hugo 能按你设置的字数限制自动截 + # 取,你也可以在文章中通过 + # ``(没有空格)手动控制, + # 或者在文章的 Front Matter 中通过 + # `summary` 手动指定。其中,应用的优 + # 先级顺序:手动指定 > 手动控制 > 自 + # 动截取。还需要注意的是,在 MemE 主 + # 题自定义的 Atom 和 RSS 的模板中, + # 有一个比手动指定更高的优先级—— + # Front Matter 中的 `description`。 + + + ###################################### + # 深色模式 + + # 是否开启 + enableDarkMode = true + + # 默认模式 + defaultTheme = "light" + # 说明:light(浅色模式)或 dark(深色模式) + + # 是否隐藏模式切换开关 + hideThemeToggle = false + # 是否在首页隐藏模式切换开关 + hideThemeToggleInHome = false + # 说明:如果开启了深色模式,即使你隐藏了开关, + # 你的读者依然可能以深色模式阅读你的博 + # 客,如果该读者的系统设置为深色模式的 + # 话。类似,如果你开启深色模式并将默认 + # 模式修改为它,即使你隐藏开关,你的读 + # 者依然可能以浅色模式模式阅读你的博客。 + + + ###################################### + # 网页应用 + + # 说明:前往 https://realfavicongenerator.net/ + # 生成相关图标和文件,下载后解压,仅保留 + # android-chrome-512x512.png、 + # apple-touch-icon.png、 + # mstile-150x150.png、 + # safari-pinned-tab.svg、favicon.ico、 + # site.webmanifest 这些文件,删除其余。 + # 然后将这些文件移动到 ~/blog/static/icons/ + # 目录下,再将 favicon.ico、site.webmanifest + # 移动到 ~/blog/static/ 目录下, + # 最后将 site.webmanifest 重命名为 + # manifest.json,并检查和修改相关内容 + # (图标的路径)。 + + themeColor = "#fff" + themeColorDark = "#16171d" + safariMaskColor = "#2a6df4" + msApplicationTileColor = "#fff" + + + ###################################### + # 网页头部元数据、搜索引擎优化(SEO)、社交网络发现 + + jsonLD = true + openGraph = true + twitterCards = true + # 注意:如果你设置 twitterCards 为 `true`, + # 请务必开启 openGraph。否则,网页的 + # Twitter Cards 信息将会不完整。 + + # 是否自动探测图片 + autoDetectImages = true + # 说明:建议开启,否则,你必须在文章的 Front + # Matter 中手动指定 `images`,不然, + # 你在社交网络或 APP 上分享的链接将无 + # 法显示带大图的摘要视图。 + + + ###################################### + # Service Worker + + # 说明:仅在生产环境(production)下渲染 + + enableServiceWorker = true + # 说明:需要第三方支持,暂见: + # https://io-oi.me/tech/pwa-via-workbox/ + + + ###################################### + # KaTeX 公式支持(包括化学方程式) + + # 是否开启(全局设置) + enableKaTeX = false + # 说明:文章的 Front Matter 中的 `katex` + # 的优先级高于此处 + + + ###################################### + # MathJax 公式支持(包括化学方程式) + + # 是否开启(全局设置) + enableMathJax = true + # 说明:文章的 Front Matter 中的 `mathjax` + # 的优先级高于此处 + + # 是否禁用 MathJax 的右键菜单 + disableMathJaxMenu = false + + + ###################################### + # Mermaid (https://github.com/mermaid-js/mermaid) + + # 是否开启(全局设置) + enableMermaid = false + # 说明:文章的 Front Matter 中的 `mermaid` + # 的优先级高于此处 + + + ###################################### + # 评论 + + # 说明:仅在生产环境(production)下渲染 + + # 是否开启(全局设置) + enableComments = true + # 说明:文章的 Front Matter 中的 `comments` + # 的优先级高于此处 + + ## Disqus + enableDisqus = false + disqusShortname = "" + + ## Valine + enableValine = true + valineAppId = "7GxTA1MRTkrw4T2SyLPJhrYI-gzGzoHsz" + valineAppKey = "U09XUw1e0nRCqa1uD4hOn9Xb" + valinePlaceholder = "奥里给🍻!" + valinePath = "" + valineAvatar = "mm" + valineMeta = ["nick", "mail", "link"] + valinePageSize = 10 + valineLang = "zh-cn" + valineVisitor = false + valineHighlight = true + valineAvatarForce = false + valineRecordIP = false + valineServerURLs = "" + valineEmojiCDN = "" + valineEmojiMaps = {} + valineEnableQQ = false + valineRequiredFields = [] + # 说明:https://valine.js.org/ + # hugo server -D --environment production + + ## Utterances + enableUtterances = false + utterancesRepo = "" + utterancesIssueTerm = "pathname" + utterancesTheme = "github-light" + utterancesThemeDark = "photon-dark" + utterancesLabel = "" + # 说明:https://utteranc.es/ + + + ###################################### + # Google Analytics + + # 说明:仅在生产环境(production)下渲染 + + enableGoogleAnalytics = false + + # 跟踪代码的类型 + trackingCodeType = "gtag" + # 说明:gtag 或 analytics + + trackingID = "" + + + ###################################### + # Google Site Verification + + googleSiteVerification = "" + + + ###################################### + # Google AdSense + + # 说明:仅在生产环境(production)下渲染 + + googleAdClient = "" + + ## 自动广告 + enableGoogleAutoAds = false + + ## 广告单元 + enableGoogleAdUnits = false + googleAdSlot = "" + + + ###################################### + # 文章设置 + + # 超链接的颜色变化持续时间(单位:秒) + duration = 0.5 + + # 浅色模式的主色 + primaryColorLight = "220, 90%, 56%" + # 深色模式的主色 + primaryColorDark = "201, 65%, 62%" + # 注意:只支持 HSL 颜色值 + + # 文章的内容宽度 + postWidth = 36 + # 说明:如果留空(""),则用 42 作为默认值 + # 单位:em + + # 文章是否为原创(全局设置) + original = true + # 说明:会影响文章的作者信息和版权信息 + # 文章的 Front Matter 中的 `original` + # 的优先级高于此处 + + + ###################################### + # 文章描述 + + # 是否显示 + displayPostDescription = true + + + ###################################### + # 文章元信息 + + # 是否开启(全局设置) + enablePostMeta = true + # 说明:文章的 Front Matter 中的 `meta` + # 的优先级高于此处 + + # 是否在首页开启 + enablePostMetaInHome = true + # 说明:仅对「文章摘要」和「普通页面」 + # 首页布局有效 + + # 日期格式 + postMetaDateFormat = "2006.1.2" + # 注意:请遵循格式 https://gohugo.io/functions/format/ + + # 是否显示发布时间 + displayPublishedDate = true + # 发布时间的图标 + publishedDateIcon = "calendar-alt" + + # 是否显示修改时间 + displayModifiedDate = true + # 修改时间的图标 + modifiedDateIcon = "calendar-check" + + # 是否显示过期时间 + displayExpiredDate = true + # 过期时间的图标 + expiredDateIcon = "calendar-times" + + # 是否显示分类 + displayCategory = true + # 分类的图标 + categoryIcon = "folder" + # 分类之间的分隔符 + categoryDelimiter = "/" + + # 是否显示字数统计 + displayWordCount = false + # 字数统计的图标 + wordCountIcon = "pencil-alt" + + # 是否显示阅读时长 + displayReadingTime = false + # 阅读时长的图标 + readingTimeIcon = "clock" + + # 是否显示不蒜子页面浏览量 + displayBusuanziPagePV = false + # 不蒜子页面浏览量的图标 + busuanziPagePVIcon = "eye" + # 说明:仅在生产环境(production)下渲染 + # 首页暂不支持 + # https://busuanzi.ibruce.info/ + + + ###################################### + # Markdown 相关 + + # 在新标签页打开外链? + hrefTargetBlank = true + + + ###################################### + # 文章目录 + + # 是否开启(全局设置) + enableTOC = false + # 说明:文章的 Front Matter 中的 `toc` + # 的优先级高于此处 + + # 是否显示目录标题 + displayTOCTitle = true + + # 是否显示数字(全局设置) + displayTOCNum = true + # 说明:文章的 Front Matter 中的 `tocNum` + # 的优先级高于此处 + + # 是否链接文章的分节标题到目录 + linkHeadingsToTOC = true + + + ###################################### + # 分节标题锚点 + + # 是否开启 + enableHeadingsAnchor = true + + # 分节标题的级别范围 + headingsOpt = "1-6" + # 说明:正则格式,默认 1-6,即 1|2|3|4|5|6, + # 即 h1 到 h6。 + + # 锚点符号 + anchorSymbol = "#" + # 说明:锚点图标的优先级高于锚点符号 + # 默认值:§ + + # 锚点图标 + anchorIcon = "link" + # 说明:留空("")则回退到锚点符号 + + # 是否开启锚点链接 + enableAnchorLink = true + + # 是否自动隐藏锚点 + enableAnchorAutoHide = true + + + ###################################### + # 说明文字 + + # 是否开启 + enableCaption = true + + # 说明文字的前缀 + captionPrefix = "◎ " + + + ###################################### + # 图片外链 + + # 说明:仅在生产环境(production)下渲染 + # + # 只支持相对于网站根目录的绝对链接 + # 比如:/images/meme.jpg + # (~/blog/static/images/meme.jpg) + + # 是否开启 + enableImageHost = false + + # 图片外链地址 + imageHostURL = "https://example.com/" + + # 是否将 HTML 的头部元数据中的图片链接也替换为外链 + headAlso = false + + + ###################################### + # 视频外链 + + # 说明:仅在生产环境(production)下渲染 + # + # 只支持相对于网站根目录的绝对链接 + # 比如:/videos/meme.mp4 + # + # 且你添加的 HTML 代码必需以以下开头: + # `