Full Code of fluid-dev/hexo-theme-fluid for AI

master 48031f9ebc78 cached
176 files
328.5 KB
98.9k tokens
57 symbols
1 requests
Download .txt
Showing preview only (366K chars total). Download the full file or copy to clipboard to get everything.
Repository: fluid-dev/hexo-theme-fluid
Branch: master
Commit: 48031f9ebc78
Files: 176
Total size: 328.5 KB

Directory structure:
gitextract_k6i4pnk8/

├── .editorconfig
├── .eslintrc
├── .gitattributes
├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.md
│   │   ├── bug_report_zh.md
│   │   ├── feature_request.md
│   │   ├── feature_request_zh.md
│   │   ├── question.md
│   │   └── question_zh.md
│   └── workflows/
│       ├── cr.yaml
│       ├── limit.yaml
│       └── publish.yaml
├── .gitignore
├── LICENSE
├── README.md
├── README_en.md
├── _config.yml
├── languages/
│   ├── de.yml
│   ├── en.yml
│   ├── eo.yml
│   ├── es.yml
│   ├── ja.yml
│   ├── ru.yml
│   ├── zh-CN.yml
│   ├── zh-HK.yml
│   └── zh-TW.yml
├── layout/
│   ├── 404.ejs
│   ├── _partials/
│   │   ├── archive-list.ejs
│   │   ├── category-chains.ejs
│   │   ├── category-list.ejs
│   │   ├── comments/
│   │   │   ├── changyan.ejs
│   │   │   ├── cusdis.ejs
│   │   │   ├── discuss.ejs
│   │   │   ├── disqus.ejs
│   │   │   ├── giscus.ejs
│   │   │   ├── gitalk.ejs
│   │   │   ├── livere.ejs
│   │   │   ├── remark42.ejs
│   │   │   ├── twikoo.ejs
│   │   │   ├── utterances.ejs
│   │   │   ├── valine.ejs
│   │   │   └── waline.ejs
│   │   ├── comments.ejs
│   │   ├── css.ejs
│   │   ├── footer/
│   │   │   ├── beian.ejs
│   │   │   └── statistics.ejs
│   │   ├── footer.ejs
│   │   ├── head.ejs
│   │   ├── header/
│   │   │   ├── banner.ejs
│   │   │   └── navigation.ejs
│   │   ├── header.ejs
│   │   ├── markdown-plugins.ejs
│   │   ├── paginator.ejs
│   │   ├── plugins/
│   │   │   ├── analytics.ejs
│   │   │   ├── anchorjs.ejs
│   │   │   ├── code-widget.ejs
│   │   │   ├── encrypt.ejs
│   │   │   ├── fancybox.ejs
│   │   │   ├── highlight.ejs
│   │   │   ├── math.ejs
│   │   │   ├── mermaid.ejs
│   │   │   ├── moment.ejs
│   │   │   ├── nprogress.ejs
│   │   │   └── typed.ejs
│   │   ├── post/
│   │   │   ├── category-bar.ejs
│   │   │   ├── copyright.ejs
│   │   │   ├── meta-bottom.ejs
│   │   │   ├── meta-top.ejs
│   │   │   ├── sidebar-left.ejs
│   │   │   ├── sidebar-right.ejs
│   │   │   └── toc.ejs
│   │   ├── scripts.ejs
│   │   └── search.ejs
│   ├── about.ejs
│   ├── archive.ejs
│   ├── categories.ejs
│   ├── category.ejs
│   ├── index.ejs
│   ├── layout.ejs
│   ├── links.ejs
│   ├── page.ejs
│   ├── post.ejs
│   ├── tag.ejs
│   └── tags.ejs
├── package.json
├── scripts/
│   ├── events/
│   │   ├── index.js
│   │   └── lib/
│   │       ├── compatible-configs.js
│   │       ├── footnote.js
│   │       ├── hello.js
│   │       ├── highlight.js
│   │       ├── injects.js
│   │       ├── lazyload.js
│   │       ├── merge-configs.js
│   │       └── random-banner.js
│   ├── filters/
│   │   ├── default-injects.js
│   │   ├── locals.js
│   │   └── post-filter.js
│   ├── generators/
│   │   ├── index-generator.js
│   │   ├── local-search.js
│   │   └── pages.js
│   ├── helpers/
│   │   ├── date.js
│   │   ├── engine.js
│   │   ├── export-config.js
│   │   ├── import.js
│   │   ├── injects.js
│   │   ├── page.js
│   │   ├── scope.js
│   │   ├── url.js
│   │   ├── utils.js
│   │   └── wordcount.js
│   ├── tags/
│   │   ├── button.js
│   │   ├── checkbox.js
│   │   ├── fold.js
│   │   ├── group-image.js
│   │   ├── label.js
│   │   ├── mermaid.js
│   │   └── note.js
│   └── utils/
│       ├── compare-versions.js
│       ├── crypto.js
│       ├── object.js
│       ├── resolve.js
│       └── url-join.js
└── source/
    ├── css/
    │   ├── _functions/
    │   │   └── base.styl
    │   ├── _mixins/
    │   │   └── base.styl
    │   ├── _pages/
    │   │   ├── _about/
    │   │   │   └── about.styl
    │   │   ├── _archive/
    │   │   │   └── archive.styl
    │   │   ├── _base/
    │   │   │   ├── _widget/
    │   │   │   │   ├── anchorjs.styl
    │   │   │   │   ├── banner.styl
    │   │   │   │   ├── board.styl
    │   │   │   │   ├── code-widget.styl
    │   │   │   │   ├── copyright.styl
    │   │   │   │   ├── footer.styl
    │   │   │   │   ├── footnote.styl
    │   │   │   │   ├── header.styl
    │   │   │   │   ├── modal.styl
    │   │   │   │   ├── ngrogress.styl
    │   │   │   │   ├── noscript.styl
    │   │   │   │   ├── pagination.styl
    │   │   │   │   ├── qrcode.styl
    │   │   │   │   ├── scroll-btn.styl
    │   │   │   │   ├── search.styl
    │   │   │   │   └── toc.styl
    │   │   │   ├── base.styl
    │   │   │   ├── color-schema.styl
    │   │   │   ├── inline.styl
    │   │   │   ├── keyframes.styl
    │   │   │   └── print.styl
    │   │   ├── _category/
    │   │   │   ├── category-bar.styl
    │   │   │   ├── category-chain.styl
    │   │   │   └── category-list.styl
    │   │   ├── _index/
    │   │   │   └── index.styl
    │   │   ├── _links/
    │   │   │   └── links.styl
    │   │   ├── _post/
    │   │   │   ├── comment.styl
    │   │   │   ├── highlight.styl
    │   │   │   ├── markdown.styl
    │   │   │   ├── post-page.styl
    │   │   │   └── post-tag.styl
    │   │   ├── _tag/
    │   │   │   ├── tag.styl
    │   │   │   └── tags.styl
    │   │   └── pages.styl
    │   ├── _variables/
    │   │   └── base.styl
    │   ├── gitalk.css
    │   ├── highlight-dark.styl
    │   ├── highlight.styl
    │   └── main.styl
    ├── js/
    │   ├── boot.js
    │   ├── color-schema.js
    │   ├── events.js
    │   ├── img-lazyload.js
    │   ├── leancloud.js
    │   ├── local-search.js
    │   ├── openkounter.js
    │   ├── plugins.js
    │   ├── umami-view.js
    │   └── utils.js
    └── xml/
        └── local-search.xml

================================================
FILE CONTENTS
================================================

================================================
FILE: .editorconfig
================================================
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false


================================================
FILE: .eslintrc
================================================
{
  "extends": [
    "eslint:recommended"
  ],
  "parserOptions": {
    "ecmaVersion": 2018
  },
  "rules": {
    // Override recomennded
    "no-console": [
      2,
      {
        "allow": [
          "warn"
        ]
      }
    ],
    "no-empty": [
      2,
      {
        "allowEmptyCatch": true
      }
    ],
    "no-unused-vars": [
      2,
      {
        "args": "none"
      }
    ],
    // Possible Errors
    "no-extra-parens": [
      2,
      "all",
      {
        "conditionalAssign": false,
        "returnAssign": false,
        "nestedBinaryExpressions": false,
        "enforceForArrowConditionals": false
      }
    ],
    // Best Practices
    "array-callback-return": 2,
    "block-scoped-var": 2,
    "curly": [
      2,
      "multi-line"
    ],
    "dot-location": [
      2,
      "property"
    ],
    "dot-notation": 2,
    "eqeqeq": [
      2,
      "smart"
    ],
    "no-else-return": 2,
    "no-eval": 2,
    "no-extend-native": 2,
    "no-extra-bind": 2,
    "no-extra-label": 2,
    "no-implicit-globals": 2,
    "no-implied-eval": 2,
    "no-lone-blocks": 2,
    "no-loop-func": 2,
    "no-multi-spaces": [
      2,
      {
        "exceptions": {
          "ImportDeclaration": true,
          "VariableDeclarator": true,
          "FunctionDeclarator": true,
          "AssignmentExpression": true,
          "CallExpression": true
        }
      }
    ],
    "no-multi-str": 2,
    "no-new": 2,
    "no-new-func": 2,
    "no-new-wrappers": 2,
    "no-proto": 2,
    "no-return-assign": 2,
    "no-self-compare": 2,
    "no-sequences": 2,
    "no-throw-literal": 2,
    "no-unused-expressions": [
      2,
      {
        "allowShortCircuit": true,
        "allowTernary": true
      }
    ],
    "no-useless-call": 2,
    "no-useless-concat": 2,
    "no-useless-return": 2,
    "no-void": 2,
    "no-with": 2,
    "prefer-promise-reject-errors": 2,
    "radix": 2,
    "wrap-iife": [
      2,
      "inside"
    ],
    "yoda": 2,
    // Variables
    "no-label-var": 2,
    "no-shadow-restricted-names": 2,
    "no-undef-init": 2,
    // Node.js and CommonJS
    "handle-callback-err": 2,
    "no-path-concat": 2,
    // Stylistic Issues
    "array-bracket-spacing": 2,
    "block-spacing": 2,
    "brace-style": [
      2,
      "1tbs",
      {
        "allowSingleLine": true
      }
    ],
    "comma-dangle": 2,
    "comma-spacing": 2,
    "comma-style": 2,
    "computed-property-spacing": 2,
    "eol-last": 2,
    "func-call-spacing": 2,
    "indent": [
      2,
      2,
      {
        "SwitchCase": 1,
        "VariableDeclarator": {
          "var": 2,
          "let": 2,
          "const": 3
        }
      }
    ],
    "key-spacing": [
      2,
      {
        "align": "colon",
        "beforeColon": false
      }
    ],
    "keyword-spacing": 2,
    "linebreak-style": ["off", "window"],
    "lines-around-comment": 2,
    "new-cap": [
      2,
      {
        "capIsNew": false
      }
    ],
    "new-parens": 2,
    "no-array-constructor": 2,
    "no-mixed-operators": 2,
    "no-multiple-empty-lines": 2,
    "no-nested-ternary": 2,
    "no-new-object": 2,
    "no-trailing-spaces": 2,
    "no-unneeded-ternary": 2,
    "no-whitespace-before-property": 2,
    "object-curly-spacing": [
      2,
      "always"
    ],
    "one-var": [
      2,
      {
        "uninitialized": "always",
        "initialized": "never"
      }
    ],
    "operator-linebreak": [
      2,
      "before"
    ],
    "quotes": [
      2,
      "single"
    ],
    "semi": 2,
    "semi-spacing": 2,
    "space-before-blocks": 2,
    "space-before-function-paren": [
      2,
      "never"
    ],
    "space-in-parens": 2,
    "space-infix-ops": 2,
    "space-unary-ops": 2,
    "template-tag-spacing": 2,
    "unicode-bom": 2,
    // ECMAScript 6
    "arrow-spacing": 2,
    "generator-star-spacing": [
      2,
      "after"
    ],
    "no-confusing-arrow": [
      2,
      {
        "allowParens": true
      }
    ],
    "no-duplicate-imports": 2,
    "no-useless-computed-key": 2,
    "no-useless-constructor": 2,
    "no-useless-rename": 2,
    "rest-spread-spacing": 2,
    "template-curly-spacing": 2,
    "yield-star-spacing": 2
  },
  "env": {
    "browser": true,
    "jquery": true,
    "mocha": true,
    "node": true,
    "es6": true
  }
}


================================================
FILE: .gitattributes
================================================
source/lib/* linguist-vendored


================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ':bug: bug'
assignees: ''
---

#### Make sure
- [ ] Upgrade the latest [release](https://github.com/fluid-dev/hexo-theme-fluid/releases).
- [ ] It can be replicated through `hexo clean && hexo s` and cleared browser cache in the localhost.
- [ ] Not affected by other Hexo plugins

#### Describe the bug
<!-- A clear and concise description of what the bug is. -->
<!-- It is better to provide related items of _config.yml -->

#### To Reproduce
Steps to reproduce the behavior:
1. Go to '...', click on '....'
2. Scroll down to '....'
3. See error

<!-- It is better to provide the page link that can be reproduced -->

#### Screenshots
<!-- For front page problems, please provide a screenshot of your browser console -->
<!-- For hexo command problems, please provide a screenshot of your command console -->


================================================
FILE: .github/ISSUE_TEMPLATE/bug_report_zh.md
================================================
---
name: Bug 报告
about: 创建一份 Bug 报告帮助我们优化产品
title: ''
labels: ':bug: bug'
assignees: ''
---

<!-- 必读 -->
<!-- 1. 反馈 Bug 必须按照本模板提供足够详细的复现步骤和相关配置,否则请后退使用问题求助 -->
<!-- 2. 功能如果不正常工作,请先检查自己的环境和 Hexo 插件,特别是从其他主题更换过来的用户 -->
<!-- 3. 前端页面问题,请先打开浏览器控制台(Console),自行尝试理解和解决其中的报错,确认非网络或配置问题 -->
<!-- 4. 如果本地页面正常,部署后有问题,请清除缓存或者耐心等待 CDN 刷新(可能持续数小时),这不属于主题问题 -->

#### 请确认
- [ ] 是当前最新的 [Release 版本](https://github.com/fluid-dev/hexo-theme-fluid/releases)
- [ ] 本地 `hexo clean && hexo s`,并且清除浏览器缓存,仍可复现
- [ ] 已经排除是其他 Hexo 插件影响

#### Bug 描述
<!-- 例如,当 xxx 时,xxx 功能不工作,期望是 xxx 能工作,浏览器: Chrome -->
<!-- 如果涉及一些功能配置,最好提供 _config.yml 里相关配置项 -->

#### 复现步骤
该 Bug 复现步骤如下:
1. 在 xxx 页面点击 xxx 按钮
2. 然后向下滚动
3. 会出现 xxx

<!-- 最好提供部署后能复现的页面地址 -->

#### 截图
<!-- 前端页面问题请提供浏览器控制台(Console)的截图 -->
<!-- 本地 hexo 命令中报错问题请提供命令行的截图 -->


================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ':sparkles: enhancement'
assignees: ''
---

#### Make sure
- [ ] Difficult to implemented through [custom](https://hexo.fluid-dev.com/docs/en/guide/#custom-js-css-html).
- [ ] Difficult to implemented through third-party plugins.

#### Is your feature request related to a problem? Please describe
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. -->

#### Describe the solution you'd like
<!-- A clear and concise description of what you want to happen. -->

#### Describe alternatives you've considered
<!-- A clear and concise description of any alternative solutions or features you've considered. -->


================================================
FILE: .github/ISSUE_TEMPLATE/feature_request_zh.md
================================================
---
name: 功能需求或优化
about: 创建一份合理可行的建议帮助我们提升产品
title: ''
labels: ':sparkles: enhancement'
assignees: ''
---

#### 如是功能需求,请确定符合以下情况
- [ ] 难以通过[自定义](https://hexo.fluid-dev.com/docs/guide/#自定义-js-css-html)实现
- [ ] 难以通过第三方插件实现

#### 请描述该需求尝试解决的问题
<!-- 例如,当 xxx 时,我总是被当前 xxx 的设计所困扰。 -->

#### 请描述您认为可行的解决方案
<!-- 例如,添加 xxx 功能能够解决问题。 -->

#### 考虑过的替代方案
<!-- 例如,如果用 xxx,也能解决该问题。 -->


================================================
FILE: .github/ISSUE_TEMPLATE/question.md
================================================
---
name: Question
about: Ask a question about use, need help
---

#### Make sure
- [ ] Upgrade the latest [release](https://github.com/fluid-dev/hexo-theme-fluid/releases)
- [ ] No solution found in [documentations](https://hexo.fluid-dev.com/docs/en/)

#### Describe the question
<!-- A clear and concise description of what the question is. -->


================================================
FILE: .github/ISSUE_TEMPLATE/question_zh.md
================================================
---
name: 问题求助
about: 提出一个使用过程中遇到的问题,需要得到帮助
---

<!-- 必读 -->
<!-- 1. 功能如果不正常工作,请先检查自己的环境和 Hexo 插件,特别是从其他主题更换过来的用户 -->
<!-- 2. 前端页面问题,请先打开浏览器控制台(Console),自行尝试理解和解决其中的报错,确认非网络或配置问题 -->
<!-- 3. 如果本地页面正常,部署后有问题,请清除缓存或者耐心等待 CDN 刷新(可能持续数小时),这不属于主题问题 -->

#### 请确认
- [ ] 是当前最新的 [Release 版本](https://github.com/fluid-dev/hexo-theme-fluid/releases)
- [ ] 在 [用户指南](https://hexo.fluid-dev.com/docs/) 中没有找到解决办法

#### 问题描述
<!--
例如,在使用 xxx 时出现了 xxx 报错。
如果是页面问题,需要提供浏览器版本(如果本地样式没问题,部署后有问题,请清除浏览器缓存)。
-->


================================================
FILE: .github/workflows/cr.yaml
================================================
name: Code Review Bot

permissions:
  contents: read
  pull-requests: write

on:
  pull_request:
    types: [opened, reopened, synchronize]

jobs:
  test:
    # if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
    runs-on: ubuntu-latest
    steps:
      - uses: anc95/ChatGPT-CodeReview@main
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
          # Optional
          LANGUAGE: Chinese
          OPENAI_API_ENDPOINT: https://api.openai.com/v1
          MODEL: gpt-3.5-turbo
          PROMPT:
          top_p: 1
          temperature: 1
          max_tokens: 1000
          MAX_PATCH_LENGTH: 1000

================================================
FILE: .github/workflows/limit.yaml
================================================
name: Limit PRs

on:
  pull_request:
    branches:
      - master

jobs:
  limit_master_pr:
    runs-on: ubuntu-latest
    name: Limits PR to master
    steps:
      - name: Limit action step
        id: limit_action
        uses: LukBukkit/action-pr-limits@v1
        with:
          whitelist: |
            develop


================================================
FILE: .github/workflows/publish.yaml
================================================
name: Publish Package

on:
  release:
    types: [created]

permissions:
  contents: read
  id-token: write

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20

  publish-npm:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          registry-url: https://registry.npmjs.org/
      - run: npm ci
      - run: npm publish --provenance --access public


================================================
FILE: .gitignore
================================================
.idea/
.vscode/
.DS_Store
Thumbs.db

*.log
*.iml
node_modules/
package-lock.json
*.lock


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    hexo-theme-fluid is an elegant Material-Design theme for Hexo.
    Copyright (C) 2022  Fluid-dev

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    hexo-theme-fluid  Copyright (C) 2022  Fluid-dev
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
<p align="center">
  <img alt="Fluid Logo" src="https://avatars2.githubusercontent.com/t/3419353?s=280&v=4" width="128">
</p>

<p align="center">一款 Material Design 风格的主题</p>
<p align="center">An elegant Material-Design theme for Hexo</p>

![ScreenShot](https://cdn.jsdelivr.net/gh/fluid-dev/static@master/hexo-theme-fluid/screenshots/index.png)

<p align="center">
  <a title="Hexo Version" target="_blank" href="https://hexo.io/zh-cn/"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%205.0-orange?style=flat"></a>
  <a title="Node Version" target="_blank" href="https://nodejs.org/zh-cn/"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%2010.13.0-yellowgreen?style=flat"></a>
  <a title="License" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/github/license/fluid-dev/hexo-theme-fluid.svg?style=flat"></a>
  <br>
  <a title="GitHub Release" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/fluid-dev/hexo-theme-fluid?style=flat"></a>
  <a title="Npm Downloads" target="_blank" href="https://www.npmjs.com/package/hexo-theme-fluid"><img alt="Npm Downloads" src="https://img.shields.io/npm/dt/hexo-theme-fluid?color=red&label=npm"></a>
  <a title="GitHub Commits" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/commits/master"><img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/fluid-dev/hexo-theme-fluid.svg?style=flat&color=brightgreen&label=commits"></a>
  <br><br>
  <a title="GitHub Watchers" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/watchers"><img alt="GitHub Watchers" src="https://img.shields.io/github/watchers/fluid-dev/hexo-theme-fluid.svg?label=Watchers&style=social"></a>  
  <a title="GitHub Stars" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/stargazers"><img alt="GitHub Stars" src="https://img.shields.io/github/stars/fluid-dev/hexo-theme-fluid.svg?label=Stars&style=social"></a>  
  <a title="GitHub Forks" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/network/members"><img alt="GitHub Forks" src="https://img.shields.io/github/forks/fluid-dev/hexo-theme-fluid.svg?label=Forks&style=social"></a>  
</p>

<p align="center">🇨🇳 中文简体  |  <a title="English" href="README_en.md">🇬🇧 English</a></p>

<p align="center">
  <span>文档:</span>
  <a href="https://hexo.fluid-dev.com/docs/guide/">主题配置</a> | 
  <a href="https://hexo.io/zh-cn/docs/front-matter">文章配置</a>
</p>

<p align="center">
  <span>预览:</span>
  <a href="https://hexo.fluid-dev.com/">Fluid's blog</a> | 
  <a href="https://zkqiang.cn">zkqiang's blog</a>
</p>

## 快速开始

#### 1. 搭建 Hexo 博客

如果你还没有 Hexo 博客,请按照 [Hexo 官方文档](https://hexo.io/zh-cn/docs/) 进行安装、建站。

#### 2. 获取主题最新版本

**方式一:**

Hexo 5.0.0 版本以上,推荐通过 npm 直接安装,进入博客目录执行命令:

```sh
npm install --save hexo-theme-fluid
```

然后在博客目录下创建 `_config.fluid.yml`,将主题的 [_config.yml](https://github.com/fluid-dev/hexo-theme-fluid/blob/master/_config.yml) 内容复制进去。

**方式二:**

下载 [最新 release 版本](https://github.com/fluid-dev/hexo-theme-fluid/releases) 解压到 themes 目录,并将解压出的文件夹重命名为 `fluid`。

#### 3. 指定主题

如下修改 Hexo 博客目录中的 `_config.yml`:

```yaml
theme: fluid  # 指定主题

language: zh-CN  # 指定语言,会影响主题显示的语言,按需修改
```

#### 4. 创建「关于页」

首次使用主题的「关于页」需要手动创建:

```bash
hexo new page about
```

创建成功后,编辑博客目录下 `/source/about/index.md`,添加 `layout` 属性。

修改后的文件示例如下:

```yaml
---
title: about
layout: about
---

这里写关于页的正文,支持 Markdown, HTML
```

## 更新主题

更新主题的方式[参照这里](https://hexo.fluid-dev.com/docs/start/#更新主题)。

## 功能特性

- [x] 无比详实的[用户文档](https://hexo.fluid-dev.com/docs/)
- [x] 页面组件懒加载
- [x] 多种代码高亮方案
- [x] 多语言配置
- [x] 内置多款评论插件
- [x] 内置网页访问统计
- [x] 内置文章本地搜索
- [x] 支持暗色模式
- [x] 支持脚注语法
- [x] 支持 LaTeX 数学公式
- [x] 支持 mermaid 流程图

## 鸣谢

<table>
  <thead>
    <tr>
      <th align="center" style="width: 240px;">
        <a href="https://www.jetbrains.com/?from=hexo-theme-fluid">
          <img src="https://raw.githubusercontent.com/fluid-dev/static/690616966f34a58d66aa15ac7b550dd7bbc03967/hexo-theme-fluid/jetbrains.svg" width="100%" height="200px" style="object-fit: contain;"><br>
          <sub>开发工具提供方 JetBrains</sub><br>
        </a>
      </th>
    </tr>
  </thead>
</table>

## 贡献者

[![contributors](https://opencollective.com/hexo-theme-fluid/contributors.svg?width=890&button=false)](https://github.com/fluid-dev/hexo-theme-fluid/graphs/contributors)

英文文档翻译:[@EatRice](https://eatrice.top/) [@橙子杀手](https://ruru.eatrice.top) [@Sinetian](https://sinetian.github.io/)

其他贡献:[@zhugaoqi](https://github.com/zhugaoqi) [@julydate](https://github.com/julydate) [@xiyuvi](https://xiyu.pro/)

如你也想贡献代码,可参照[贡献指南](https://hexo.fluid-dev.com/docs/contribute/)

## 支持我们

如果你觉得这个项目有帮助,并愿意支持它的发展,可以通过以下方式支持我们的开源创作:

<table>
  <thead>
    <tr>
      <th align="center" width="240">
        <div>
          <img src="https://github.com/fluid-dev/static/blob/master/hexo-theme-fluid/sponsor.png?s=200&v=4" height="200px" alt="微信赞赏码"><br>
          <sub>微信赞赏码</sub>
        </div>
      </th>
    </tr>
  </thead>
</table>

同时我们正在**寻求商业赞助**,如果贵司想在本页显著位置展示广告位(每月 6K+ Views 定向流量曝光),或者有其他赞助形式,可将联系方式发送邮件至 zkqiang#126.com (#替换为@)。

## Star 趋势

[![Stargazers over time](https://starchart.cc/fluid-dev/hexo-theme-fluid.svg)](https://starchart.cc/fluid-dev/hexo-theme-fluid)


================================================
FILE: README_en.md
================================================
<p align="center">
  <img alt="Fluid Logo" src="https://avatars2.githubusercontent.com/t/3419353?s=280&v=4" width="128">
</p>

<p align="center">An elegant Material-Design theme for Hexo</p>

![ScreenShot](https://cdn.jsdelivr.net/gh/fluid-dev/static@master/hexo-theme-fluid/screenshots/index.png)

<p align="center">
  <a title="Hexo Version" target="_blank" href="https://hexo.io"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%205.0-orange?style=flat"></a>
  <a title="Node Version" target="_blank" href="https://nodejs.org"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%2010.13.0-yellowgreen?style=flat"></a>
  <a title="License" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/blob/master/LICENSE"><img alt="License" src="https://img.shields.io/github/license/fluid-dev/hexo-theme-fluid.svg?style=flat"></a>
  <br>
  <a title="GitHub Release" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/fluid-dev/hexo-theme-fluid?style=flat"></a>
  <a title="Npm Downloads" target="_blank" href="https://www.npmjs.com/package/hexo-theme-fluid"><img alt="Npm Downloads" src="https://img.shields.io/npm/dt/hexo-theme-fluid?color=red&label=npm"></a>
  <a title="GitHub Commits" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/commits/master"><img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/fluid-dev/hexo-theme-fluid.svg?style=flat&color=brightgreen&label=commits"></a>
  <br><br>
  <a title="GitHub Watchers" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/watchers"><img alt="GitHub Watchers" src="https://img.shields.io/github/watchers/fluid-dev/hexo-theme-fluid.svg?label=Watchers&style=social"></a>  
  <a title="GitHub Stars" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/stargazers"><img alt="GitHub Stars" src="https://img.shields.io/github/stars/fluid-dev/hexo-theme-fluid.svg?label=Stars&style=social"></a>  
  <a title="GitHub Forks" target="_blank" href="https://github.com/fluid-dev/hexo-theme-fluid/network/members"><img alt="GitHub Forks" src="https://img.shields.io/github/forks/fluid-dev/hexo-theme-fluid.svg?label=Forks&style=social"></a>  
</p>

<p align="center"><a title="Chinese" href="README.md">🇨🇳 中文简体</a>  |  🇬🇧 English</p>

<p align="center">
  <span>Docs: </span>
  <a href="https://hexo.fluid-dev.com/docs/en/guide/">Theme guide</a>&nbsp&nbsp&nbsp&nbsp
  <a href="https://hexo.io/docs/front-matter">Post guide</a>
</p>

<p align="center">
  <span>Preview: </span>
  <a href="https://hexo.fluid-dev.com/">Fluid's blog</a> | 
  <a href="https://zkqiang.cn">zkqiang's blog</a>
</p>

## Quick Start

#### 1. Install Hexo

If you don't have a hexo blog, please follow [Hexo Docs](https://hexo.io/docs/) to install and initialize your blog。

#### 2. Install Fluid

**Way A:**

If your Hexo version >= 5.0.0, you can install Fluid via Npm:

```sh
npm install --save hexo-theme-fluid
```

Then create `_config.fluid.yml` in the blog directory and copy the content of [_config.yml](https://github.com/fluid-dev/hexo-theme-fluid/blob/master/_config.yml).

**Way B:**

Download the [latest release](https://github.com/fluid-dev/hexo-theme-fluid/releases), then extract it to `themes` directory and renamed to `fluid`.

#### 3. Set theme

Edit `_config.yml` in the blog root directory as follows:

```yaml
theme: fluid
```

#### 4. Create about page

The about page needs to be created manually:

```bash
hexo new page about
```

Then edit `/source/about/index.md` and add `layout` attribute.

The modified example is as follows:

```yaml
---
title: about
layout: about
---

About content
```

## How to Upgrade

[Please follow here](https://hexo.fluid-dev.com/docs/en/start/#theme-upgrade)

## Features

- [x] Detailed [documents](https://hexo.fluid-dev.com/docs/en/)
- [x] Widget lazyload
- [x] Multiple code highlighting schemes
- [x] Multiple comment plugins
- [x] Multiple language configurations
- [x] Multiple website analysis
- [x] Support for local search
- [x] Support for footnote
- [x] Support for LaTeX
- [x] Support for Mermaid
- [x] Dark mode

## Thanks

<table>
  <thead>
    <tr>
      <th align="center" style="width: 240px;">
        <a href="https://www.jetbrains.com/?from=hexo-theme-fluid">
          <img src="https://raw.githubusercontent.com/fluid-dev/static/690616966f34a58d66aa15ac7b550dd7bbc03967/hexo-theme-fluid/jetbrains.svg" width="100%" height="200px" style="object-fit: contain;"><br>
          <sub>Powered by JetBrains</sub><br>
        </a>
      </th>
    </tr>
  </thead>
</table>

## Contributors

[![contributors](https://opencollective.com/hexo-theme-fluid/contributors.svg?width=890&button=false)](https://github.com/fluid-dev/hexo-theme-fluid/graphs/contributors)

English docs translator: [@EatRice](https://eatrice.top/) [@橙子杀手](https://ruru.eatrice.top) [@Sinetian](https://sinetian.github.io/)

Contributors outside PR: [@zhugaoqi](https://github.com/zhugaoqi) [@julydate](https://github.com/julydate) [@xiyuvi](https://xiyu.pro/)

## Star Trending

[![Stargazers over time](https://starchart.cc/fluid-dev/hexo-theme-fluid.svg)](https://starchart.cc/fluid-dev/hexo-theme-fluid)


================================================
FILE: _config.yml
================================================
#---------------------------
# Hexo Theme Fluid
# Author: Fluid-dev
# Github: https://github.com/fluid-dev/hexo-theme-fluid
#
# 配置指南: https://hexo.fluid-dev.com/docs/guide/
# 你可以从指南中获得更详细的说明
#
# Guide: https://hexo.fluid-dev.com/docs/en/guide/
# You can get more detailed help from the guide
#---------------------------


#---------------------------
# 全局
# Global
#---------------------------

# 用于浏览器标签的图标
# Icon for browser tab
favicon: /img/fluid.png

# 用于苹果设备的图标
# Icon for Apple touch
apple_touch_icon: /img/fluid.png

# 浏览器标签页中的标题分隔符,效果:文章名 - 站点名
# Title separator in browser tab, eg: article - site
tab_title_separator: " - "

# 强制所有链接升级为 HTTPS(适用于图片等资源出现 HTTP 混入报错)
# Force all links to be HTTPS (applicable to HTTP mixed error)
force_https: false

# 代码块的增强配置
# Enhancements to code blocks
code:
  # 是否开启复制代码的按钮
  # Enable copy code button
  copy_btn: true

  # 代码语言
  # Code language
  language:
    enable: true
    default: "TEXT"

  # 代码高亮
  # Code highlight
  highlight:
    enable: true

    # 代码块是否显示行号
    # If true, the code block display line numbers
    line_number: true

    # 实现高亮的库,对应下面的设置
    # Highlight library
    # Options: highlightjs | prismjs
    lib: "highlightjs"

    highlightjs:
      # 在链接中挑选 style 填入
      # Select a style in the link
      # See: https://highlightjs.org/demo/
      style: "github gist"
      style_dark: "dark"

    prismjs:
      # 在下方链接页面右侧的圆形按钮挑选 style 填入,也可以直接填入 css 链接
      # Select the style button on the right side of the link page, you can also set the CSS link
      # See: https://prismjs.com/
      style: "default"
      style_dark: "tomorrow night"

      # 设为 true 高亮将本地静态生成(但只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
      # If true, it will be generated locally (but some prismjs plugins are not supported). If false, it will be generated via JS in the browser
      preprocess: true

# 一些好玩的功能
# Some fun features
fun_features:
  # 为 subtitle 添加打字机效果
  # Typing animation for subtitle
  typing:
    enable: true

    # 打印速度,数字越大越慢
    # Typing speed, the larger the number, the slower
    typeSpeed: 70

    # 游标字符
    # Cursor character
    cursorChar: "_"

    # 是否循环播放效果
    # If true, loop animation
    loop: false

    # 在指定页面开启,不填则在所有页面开启
    # Enable in specified page, all pages by default
    # Options: home | post | tag | category | about | links | page | 404
    scope: []

  # 为文章内容中的标题添加锚图标
  # Add an anchor icon to the title on the post page
  anchorjs:
    enable: true
    element: h1,h2,h3,h4,h5,h6
    # Options: left | right
    placement: left

    # Options: hover | always
    visible: hover

    # Options: § | # | ❡
    icon: ""

  # 加载进度条
  # Progress bar when loading
  progressbar:
    enable: true
    height_px: 3
    color: "#29d"
    # See: https://github.com/rstacruz/nprogress
    options: { showSpinner: false, trickleSpeed: 100 }

# 主题暗色模式,开启后菜单中会出现切换按钮,用户浏览器会存储切换选项,并且会遵循 prefers-color-scheme 自动切换
# Theme dark mode. If enable, a switch button will appear on the menu, each of the visitor's browser will store his switch option
dark_mode:
  enable: true
  # 默认的选项(当用户手动切换后则不再按照默认模式),选择 `auto` 会优先遵循 prefers-color-scheme,其次按用户本地时间 18 点到次日 6 点之间进入暗色模式
  # Default option (when the visitor switches manually, the default mode is no longer followed), choosing `auto` will give priority to prefers-color-scheme, and then enter the dark mode from 18:00 to 6:00 in the visitor's local time
  # Options: auto | light | dark
  default: auto

# 主题颜色配置,其他不生效的地方请使用自定义 css 解决,配色可以在下方链接中获得启发
# Theme color, please use custom CSS to solve other colors, color schema can be inspired by the links below
# See: https://www.webdesignrankings.com/resources/lolcolors/
color:
  # body 背景色
  # Color of body background
  body_bg_color: "#eee"
  # 暗色模式下的 body 背景色,下同
  # Color in dark mode, the same below
  body_bg_color_dark: "#181c27"

  # 顶部菜单背景色
  # Color of navigation bar background
  navbar_bg_color: "#2f4154"
  navbar_bg_color_dark: "#1f3144"

  # 顶部菜单字体色
  # Color of navigation bar text
  navbar_text_color: "#fff"
  navbar_text_color_dark: "#d0d0d0"

  # 副标题字体色
  # Color of subtitle text
  subtitle_color: "#fff"
  subtitle_color_dark: "#d0d0d0"

  # 全局字体色
  # Color of global text
  text_color: "#3c4858"
  text_color_dark: "#c4c6c9"

  # 全局次级字体色(摘要、简介等位置)
  # Color of global secondary text (excerpt, introduction, etc.)
  sec_text_color: "#718096"
  sec_text_color_dark: "#a7a9ad"

  # 主面板背景色
  # Color of main board
  board_color: "#fff"
  board_color_dark: "#252d38"

  # 文章正文字体色
  # Color of post text
  post_text_color: "#2c3e50"
  post_text_color_dark: "#c4c6c9"

  # 文章正文字体色(h1 h2 h3...)
  # Color of Article heading (h1 h2 h3...)
  post_heading_color: "#1a202c"
  post_heading_color_dark: "#c4c6c9"

  # 文章超链接字体色
  # Color of post link
  post_link_color: "#0366d6"
  post_link_color_dark: "#1589e9"

  # 超链接悬浮时字体色
  # Color of link when hovering
  link_hover_color: "#30a9de"
  link_hover_color_dark: "#30a9de"

  # 超链接悬浮背景色
  # Color of link background when hovering
  link_hover_bg_color: "#f8f9fa"
  link_hover_bg_color_dark: "#364151"

  # 分隔线和表格边线的颜色
  # Color of horizontal rule and table border
  line_color: "#eaecef"
  line_color_dark: "#435266"

  # 滚动条颜色
  # Color of scrollbar
  scrollbar_color: "#c4c6c9"
  scrollbar_color_dark: "#687582"
  # 滚动条悬浮颜色
  # Color of scrollbar when hovering
  scrollbar_hover_color: "#a6a6a6"
  scrollbar_hover_color_dark: "#9da8b3"

  # 按钮背景色
  # Color of button
  button_bg_color: "transparent"
  button_bg_color_dark: "transparent"
  # 按钮悬浮背景色
  # Color of button when hovering
  button_hover_bg_color: "#f2f3f5"
  button_hover_bg_color_dark: "#46647e"

# 主题字体配置
# Font
font:
  font_size: 16px
  font_family:
  letter_spacing: 0.02em
  code_font_size: 85%

# 指定自定义 .js 文件路径,支持列表;路径是相对 source 目录,如 /js/custom.js 对应存放目录 source/js/custom.js
# Specify the path of your custom js file, support list. The path is relative to the source directory, such as `/js/custom.js` corresponding to the directory `source/js/custom.js`
custom_js:

# 指定自定义 .css 文件路径,用法和 custom_js 相同
# The usage is the same as custom_js
custom_css:

# 网页访问统计
# Analysis of website visitors
web_analytics:
  enable: false

  # 遵循访客浏览器"请勿追踪"的设置,如果开启则不统计其访问
  # Follow the "Do Not Track" setting of the visitor's browser
  # See: https://www.w3.org/TR/tracking-dnt/
  follow_dnt: true

  # 百度统计的 Key,值需要获取下方链接中 `hm.js?` 后边的字符串
  # Baidu analytics, get the string behind `hm.js?`
  # See: https://tongji.baidu.com/sc-web/10000033910/home/site/getjs?siteId=13751376
  baidu:

  # Google Analytics 4 的媒体资源 ID
  # Google Analytics 4 MEASUREMENT_ID
  # See: https://support.google.com/analytics/answer/9744165#zippy=%2Cin-this-article
  google:
    measurement_id:

  # 腾讯统计的 H5 App ID,开启高级功能才有cid
  # Tencent analytics, set APP ID
  # See: https://mta.qq.com/h5/manage/ctr_app_manage
  tencent:
    sid:
    cid:

  # LeanCloud 计数统计,可用于 PV UV 展示,如果 `web_analytics: enable` 没有开启,PV UV 展示只会查询不会增加
  # LeanCloud count statistics, which can be used for PV UV display. If `web_analytics: enable` is false, PV UV display will only query and not increase
  leancloud:
    app_id:
    app_key:
    # REST API 服务器地址,国际版不填
    # Only the Chinese mainland users need to set
    server_url:
    # 统计页面时获取路径的属性
    # Get the attribute of the page path during statistics
    path: window.location.pathname
    # 开启后不统计本地路径( localhost 与 127.0.0.1 )
    # If true, ignore localhost & 127.0.0.1
    ignore_local: false

  # OpenKounter 计数统计(基于 EdgeOne Pages),可用于 PV UV 展示
  # OpenKounter count statistics (based on EdgeOne Pages), which can be used for PV UV display
  # See: https://github.com/Mintimate/open-kounter
  openkounter:
    # OpenKounter API 服务器地址
    # OpenKounter API server URL
    server_url: https://open-kounter.mintimate.cn
    # 统计页面时获取路径的属性,通常使用 window.location.pathname
    # Get the attribute of the page path during statistics
    path: window.location.pathname
    # 开启后不统计本地路径(localhost、127.0.0.1、[::1])
    # If true, ignore localhost & 127.0.0.1 & [::1]
    ignore_local: false

  # Umami Analytics,仅支持自部署。如果要展示 PV UV 需要填写所有配置项,否则只填写 `src` 和 `website_id` 即可
  # Umami Analytics, only Self-host support. If you want to display PV UV need to set all config items, otherwise only set 'src' and 'website_id'
  # See: https://umami.is/docs
  umami:
    # umami js 文件地址,需要在 umami 后台创建站点后获取
    # umami js file url, get after create website in umami
    src:

    # umami 的 website id,需要在 umami 后台创建站点后获取
    # umami website id, get after create website in umami
    website_id:

    # 如果你只想统计特定的域名可以填入此字段,多个域名通过逗号分隔,这可以避免统计 localhost。
    # If you only want to tracker to specific domains you can fill in this field, multiple domain names are separated by commas, which can avoid tracker localhost
    domains:

    # 用于统计 PV UV 的开始时间,格式为 "YYYY-MM-DD"
    # statistics on the start time, the format is "YYYY-MM-DD"
    start_time: 2024-01-01

    # 新建一个 umami viewOnly 用户,然后通过 login api 获取该用户 token
    # create an umami viewOnly user, and then get user token through the login api
    token:

    # 填写 umami 部署的服务器地址,如 "https://umami.example.com"
    # server url of umami deployment, such as "https://umami.example.com"
    api_server:

# Canonical 用于向 Google 搜索指定规范网址,开启前确保 hexo _config.yml 中配置 `url: http://yourdomain.com`
# Canonical, to specify a canonical URL for Google Search, need to set up `url: http://yourdomain.com` in hexo _config.yml
# See: https://support.google.com/webmasters/answer/139066
canonical:
  enable: false

# 对页面中的图片和评论插件进行懒加载处理,可见范围外的元素不会提前加载
# Lazy loading of images and comment plugin on the page
lazyload:
  enable: true

  # 加载时的占位图片
  # The placeholder image when loading
  loading_img: /img/loading.gif

  # 开启后懒加载仅在文章页生效,如果自定义页面需要使用,可以在 Front-matter 里指定 `lazyload: true`
  # If true, only enable lazyload on the post page. For custom pages, you can set 'lazyload: true' in front-matter
  onlypost: false

  # 触发加载的偏移倍数,基数是视窗高度,可根据部署环境的请求速度调节
  # The factor of viewport height that triggers loading
  offset_factor: 2

# 图标库,包含了大量社交类图标,主题依赖的不包含在内,因此可自行修改,详见 https://hexo.fluid-dev.com/docs/icon/
# Icon library, which includes many social icons, does not include those theme dependent, so your can modify link by yourself. See: https://hexo.fluid-dev.com/docs/en/icon/
iconfont: //at.alicdn.com/t/c/font_1736178_k526ubmyhba.css


#---------------------------
# 页头
# Header
#---------------------------

# 导航栏的相关配置
# Navigation bar
navbar:
  # 导航栏左侧的标题,为空则按 hexo config 中 `title` 显示
  # The title on the left side of the navigation bar. If empty, it is based on `title` in hexo config
  blog_title: "Fluid"

  # 导航栏毛玻璃特效,实验性功能,可能会造成页面滚动掉帧和抖动,部分浏览器不支持会自动不生效
  # Navigation bar frosted glass special animation. It is an experimental feature
  ground_glass:
    enable: false

    # 模糊像素,只能为数字,数字越大模糊度越高
    # Number of blurred pixel. the larger the number, the higher the blur
    px: 3

    # 不透明度,数字越大透明度越低,注意透明过度可能看不清菜单字体
    # Ratio of opacity, 1.0 is completely opaque
    # available: 0 - 1.0
    alpha: 0.7

  # 导航栏菜单,可自行增减,key 用来关联 languages/*.yml,如不存在关联则显示 key 本身的值;icon 是 css class,可以省略;增加 name 可以强制显示指定名称
  # Navigation bar menu. `key` is used to associate languages/*.yml. If there is no association, the value of `key` itself will be displayed; if `icon` is a css class, it can be omitted; adding `name` can force the display of the specified name
  menu:
    - { key: "home", link: "/", icon: "iconfont icon-home-fill" }
    - { key: "archive", link: "/archives/", icon: "iconfont icon-archive-fill" }
    - { key: "category", link: "/categories/", icon: "iconfont icon-category-fill" }
    - { key: "tag", link: "/tags/", icon: "iconfont icon-tags-fill" }
    - { key: "about", link: "/about/", icon: "iconfont icon-user-fill" }
    #- { key: "links", link: "/links/", icon: "iconfont icon-link-fill" }

# 搜索功能,基于 hexo-generator-search 插件,若已安装其他搜索插件请关闭此功能,以避免生成多余的索引文件
# Search feature, based on hexo-generator-search. If you have installed other search plugins, please disable this feature to avoid generating redundant index files
search:
  enable: true

  # 搜索索引文件的路径,可以是相对路径或外站的绝对路径
  # Path for search index file, it can be a relative path or an absolute path
  path: /local-search.xml

  # 文件生成在本地的位置,必须是相对路径
  # The location where the index file is generated locally, it must be a relative location
  generate_path: /local-search.xml

  # 搜索的范围
  # Search field
  # Options: post | page | all
  field: post

  # 搜索是否扫描正文
  # If true, search will scan the post content
  content: true

# 首屏图片的相关配置
# Config of the big image on the first screen
banner:
  # 是否开启所有页面的随机头图,仅在页面对应 banner_img 为空时生效,将图片放在 source/img/random/ 目录下
  # Enable random banner for all pages, only works when banner_img is empty, put images in the directory `source/img/random/`
  random_img: false

  # 视差滚动,图片与板块会随着屏幕滚动产生视差效果
  # Scrolling parallax
  parallax: true

  # 图片最小的宽高比,以免图片两边被过度裁剪,适用于移动端竖屏时,如需关闭设为 0
  # Minimum ratio of width to height, applicable to the vertical screen of mobile device, if you need to close it, set it to 0
  width_height_ratio: 1.0

# 向下滚动的箭头
# Scroll down arrow
scroll_down_arrow:
  enable: true

  # 头图高度不小于指定比例,才显示箭头
  # Only the height of the banner image is greater than the ratio, the arrow is displayed
  # Available: 0 - 100
  banner_height_limit: 80

  # 翻页后自动滚动
  # Auto scroll after page turning
  scroll_after_turning_page: true

# 向顶部滚动的箭头
# Scroll top arrow
scroll_top_arrow:
  enable: true

# Open Graph metadata
# See: https://hexo.io/docs/helpers.html#open-graph
open_graph:
  enable: true
  twitter_card: summary_large_image
  twitter_id:
  twitter_site:
  google_plus:
  fb_admins:
  fb_app_id:


#---------------------------
# 页脚
# Footer
#---------------------------
footer:
  # 页脚第一行文字的 HTML,建议保留 Fluid 的链接,用于向更多人推广本主题
  # HTML of the first line of the footer, it is recommended to keep the Fluid link to promote this theme to more people
  content: '
    <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
    <i class="iconfont icon-love"></i>
    <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a>
  '

  # 展示网站的 PV、UV 统计数
  # Display website PV and UV statistics
  statistics:
    enable: false

    # 统计数据来源,使用 leancloud, umami, openkounter 需要设置 `web_analytics` 中对应的参数;使用 busuanzi 不需要额外设置,但是有时不稳定,另外本地运行时 busuanzi 显示统计数据很大属于正常现象,部署后会正常
    # Data source. If use leancloud, umami, openkounter, you need to set the parameter in `web_analytics`
    # Options: busuanzi | leancloud | umami | openkounter
    source: "busuanzi"

  # 国内大陆服务器的备案信息
  # For Chinese mainland website policy, other areas keep disable
  beian:
    enable: false
    # ICP证号
    icp_text: 京ICP证123456号
    # 公安备案号,不填则只显示ICP
    police_text: 京公网安备12345678号
    # 公安备案的编号,用于URL跳转查询
    police_code: 12345678
    # 公安备案的图片. 为空时不显示备案图片
    police_icon: /img/police_beian.png


#---------------------------
# 首页
# Home Page
#---------------------------
index:
  # 首页 Banner 头图,可以是相对路径或绝对路径,以下相同
  # Path of Banner image, can be a relative path or an absolute path, the same on other pages
  banner_img: /img/default.png

  # 头图高度,屏幕百分比
  # Height ratio of banner image
  # Available: 0 - 100
  banner_img_height: 100

  # 头图黑色蒙版的不透明度,available: 0 - 1.0,1 是完全不透明
  # Opacity of the banner mask, 1.0 is completely opaque
  # Available: 0 - 1.0
  banner_mask_alpha: 0.3

  # 首页副标题的独立设置
  # Independent config of home page subtitle
  slogan:
    enable: true

    # 为空则按 hexo config.subtitle 显示,支持列表格式来实现随机选择一行文字显示
    # If empty, text based on `subtitle` in hexo config, support list format to random selection of a row for display
    text: "An elegant Material-Design theme for Hexo"

    # 通过 API 接口作为首页副标题的内容,必须返回的是 JSON 格式,如果请求失败则按 text 字段显示,该功能必须先开启 typing 打字机功能
    # Subtitle of the homepage through the API, must be returned a JSON. If the request fails, it will be displayed in `text` value. This feature must first enable the typing animation
    api:
      enable: false

      # 请求地址
      # Request url
      url: ""

      # 请求方法
      # Request method
      # Available: GET | POST | PUT
      method: "GET"

      # 请求头
      # Request headers
      headers: {}

      # 从请求结果获取字符串的取值字段,最终必须是一个字符串,例如返回结果为 {"data": {"author": "fluid", "content": "An elegant theme"}}, 则取值字段为 ['data', 'content'];如果返回是列表则自动选择第一项
      # The value field of the string obtained from the response. For example, the response content is {"data": {"author": "fluid", "content": "An elegant theme"}}, the expected `keys: ['data','content']`; if the return is a list, the first item is automatically selected
      keys: []

  # 自动截取文章摘要
  # Auto extract post
  auto_excerpt:
    enable: true

  # 打开文章的标签方式
  # The browser tag to open the post
  # Available: _blank | _self
  post_url_target: _self

  # 是否显示文章信息(时间、分类、标签)
  # Meta information of post
  post_meta:
    date: true
    category: true
    tag: true

  # 文章通过 sticky 排序后,在首页文章标题前显示图标
  # If the posts are sorted by `sticky`, an icon is displayed in front of the post title
  post_sticky:
    enable: true
    icon: "iconfont icon-top"


#---------------------------
# 文章页
# Post Page
#---------------------------
post:
  banner_img: /img/default.png
  banner_img_height: 70
  banner_mask_alpha: 0.3

  # 文章在首页的默认封面图,当没有指定 index_img 时会使用该图片,若两者都为空则不显示任何图片
  # Path of the default post cover when `index_img` is not set. If both are empty, no image will be displayed
  default_index_img:

  # 文章标题下方的元信息
  # Meta information below title
  meta:
    # 作者,优先根据 front-matter 里 author 字段,其次是 hexo 配置中 author 值
    # Author, based on `author` field in front-matter, if not set, based on `author` value in hexo config
    author:
      enable: false

    # 文章日期,优先根据 front-matter 里 date 字段,其次是 md 文件日期
    # Post date, based on `date` field in front-matter, if not set, based on create date of .md file
    date:
      enable: true
      # 格式参照 ISO-8601 日期格式化
      # ISO-8601 date format
      # See: http://momentjs.cn/docs/#/parsing/string-format/
      format: "LL a"

    # 字数统计
    # Word count
    wordcount:
      enable: true

    # 估计阅读全文需要的时长
    # Estimated reading time
    min2read:
      enable: true
      # 每个字词的长度,建议:中文≈2,英文≈5,中英混合可自行调节
      # Average word length (chars count in word), ZH ≈ 2, EN ≈ 5
      awl: 2
      # 每分钟阅读字数,如果大部分是技术文章可适度调低
      # Words per minute
      wpm: 60

    # 浏览量计数
    # Number of visits
    views:
      enable: false
      # 统计数据来源
      # Data Source
      # Options: busuanzi | leancloud | umami
      source: "busuanzi"

  # 在文章开头显示文章更新时间,该时间默认是 md 文件更新时间,可通过 front-matter 中 `updated` 手动指定(和 date 一样格式)
  # Update date is displayed at the beginning of the post. The default date is the update date of the md file, which can be manually specified by `updated` in front-matter (same format as date)
  updated:
    enable: false

    # 格式参照 ISO-8601 日期格式化
    # ISO-8601 date format
    # See: http://momentjs.cn/docs/#/parsing/string-format/
    date_format: "LL a"

    # 是否使用相对时间表示,比如:"3 天前"
    # If true, it will be a relative time, such as: "3 days ago"
    relative: false

    # 提示标签类型
    # Note class
    # Options: default | primary | info | success | warning | danger | light
    note_class: info

  # 侧边栏展示当前分类下的文章
  # Sidebar of category
  category_bar:
    enable: true

    # 开启后,只有在文章 Front-matter 里指定 `category_bar: true` 才会展示分类,也可以通过 `category_bar: ["分类A"]` 来指定分类
    # If true, only set `category_bar: true` in Front-matter will enable sidebar of category, also set `category_bar: ["CategoryA"]` to specify categories
    specific: true

    # 置于板块的左侧或右侧
    # place in the board
    # Options: left | right
    placement: left

    # 文章的排序字段,前面带减号是倒序,不带减号是正序
    # Sort field for posts, with a minus sign is reverse order
    # Options: date | title | or other field of front-matter
    post_order_by: "title"

    # 单个分类中折叠展示文章数的最大值,超过限制会显示 More,0 则不限制
    # The maximum number of posts in a single category. If the limit is exceeded, it will be displayed More. If 0 no limit
    post_limit: 0

  # 侧边栏展示文章目录
  # Table of contents (TOC) in the sidebar
  toc:
    enable: true
    # 进入文章时是否默认展开全部目录
    # Expand all TOC items on enter
    expand_all: true

    # 置于板块的左侧或右侧
    # place in the board
    # Options: left | right
    placement: right

    # 目录会选择这些节点作为标题
    # TOC will select these nodes as headings
    headingSelector: "h1,h2,h3,h4,h5,h6"

    # 层级的折叠深度,0 是全部折叠,大于 0 后如果存在下级标题则默认展开
    # Collapse depth. If 0, all headings collapsed. If greater than 0, it will be expanded by default if there are sub headings
    collapseDepth: 0

  # 版权声明,会显示在每篇文章的结尾
  # Copyright, will be displayed at the end of each post
  copyright:
    enable: true

    # CreativeCommons license
    # See: https://creativecommons.org/share-your-work/cclicenses/
    # Options: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND | ZERO
    license: 'BY'

    # 显示作者
    author:
      enable: true

    # 显示发布日期
    # Show post date
    post_date:
      enable: true
      format: "LL"

    # 显示更新日期
    # Show update date
    update_date:
      enable: false
      format: "LL"

  # 文章底部上一篇下一篇功能
  # Link to previous/next post
  prev_next:
    enable: true

  # 文章图片标题
  # Image caption
  image_caption:
    enable: true

  # 文章图片可点击放大
  # Zoom feature of images
  image_zoom:
    enable: true
    # 放大后图片链接替换规则,可用于将压缩图片链接替换为原图片链接,如 ['-slim', ''] 是将链接中 `-slim` 移除;如果想使用正则请使用 `re:` 前缀,如 ['re:\\d{3,4}\\/\\d{3,4}\\/', '']
    # The image url replacement when zooming, the feature can be used to replace the compressed image to the original image, eg: ['-slim', ''] removes `-slim` from the image url when zooming; if you want to use regular, use prefix `re:`, eg: ['re:\\d{3,4}\\/\\d{3,4}\\/','']
    img_url_replace: ['', '']

  # 脚注语法,会在文章底部生成脚注,如果 Markdown 渲染器本身支持,则建议关闭,否则可能会冲突
  # Support footnote syntax, footnotes will be generated at the bottom of the post page. If the Markdown renderer itself supports it, please disable it, otherwise it may conflict
  footnote:
    enable: true
    # 脚注的节标题,也可以在 front-matter 中通过 `footnote: <h2>Reference</h2>` 这种形式修改单独页面的 header
    # The section title of the footnote, you can also modify the header of a single page in the form of `footnote: <h2>Reference</h2>` in front-matter
    header: ''

  # 数学公式,开启之前需要更换 Markdown 渲染器,否则复杂公式会有兼容问题,具体请见:https://hexo.fluid-dev.com/docs/guide/##latex-数学公式
  # Mathematical formula. If enable, you need to change the Markdown renderer, see: https://hexo.fluid-dev.com/docs/en/guide/#math
  math:
    # 开启后文章默认可用,自定义页面如需使用,需在 Front-matter 中指定 `math: true`
    # If you want to use math on the custom page, you need to set `math: true` in Front-matter
    enable: false

    # 开启后,只有在文章 Front-matter 里指定 `math: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度
    # If true, only set `math: true` in Front-matter will enable math, to load faster when the page does not contain math
    specific: false

    # Options: mathjax | katex
    engine: mathjax

  # 流程图,基于 mermaid-js,具体请见:https://hexo.fluid-dev.com/docs/guide/#mermaid-流程图
  # Flow chart, based on mermaid-js, see: https://hexo.fluid-dev.com/docs/en/guide/#mermaid
  mermaid:
    # 开启后文章默认可用,自定义页面如需使用,需在 Front-matter 中指定 `mermaid: true`
    # If you want to use mermaid on the custom page, you need to set `mermaid: true` in Front-matter
    enable: false

    # 开启后,只有在文章 Front-matter 里指定 `mermaid: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度
    # If true, only set `mermaid: true` in Front-matter will enable mermaid, to load faster when the page does not contain mermaid
    specific: false

    # See: http://mermaid-js.github.io/mermaid/
    options: { theme: 'default' }

  # 评论插件
  # Comment plugin
  comments:
    enable: false
    # 指定的插件,需要同时设置对应插件的必要参数
    # The specified plugin needs to set the necessary parameters at the same time
    # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss
    type: disqus


#---------------------------
# 评论插件
# Comment plugins
#
# 开启评论需要先设置上方 `post: comments: enable: true`,然后根据 `type` 设置下方对应的评论插件参数
# Enable comments need to be set `post: comments: enable: true`, then set the corresponding comment plugin parameters below according to `type`
#---------------------------

# Utterances
# 基于 GitHub Issues
# Based on GitHub Issues
# See: https://utteranc.es
utterances:
  repo:
  issue_term: pathname
  label: utterances
  theme: github-light
  theme_dark: github-dark

# Disqus
# 基于第三方的服务,国内用户直接使用容易被墙,建议配合 Disqusjs
# Based on third-party service
# See: https://disqus.com
disqus:
  shortname:
  # 以下为 Disqusjs 支持, 国内用户如果想使用 Disqus 建议配合使用,支持填入多个 apikey,建议自行搭建 api 端点
  # The following are Disqusjs configurations, please ignore if DisqusJS is not required, it supports filling in multiple apikeys, it is recommended to build the API endpoint by yourself
  # See: https://github.com/SukkaW/DisqusJS
  disqusjs: false
  apikey:
    - 'KEY1'
    #- 'KEY2'
  api: https://disqus.skk.moe/disqus/
  admin:
  adminLabel:

# Gitalk
# 基于 GitHub Issues
# Based on GitHub Issues
# See: https://github.com/gitalk/gitalk#options
gitalk:
  clientID:
  clientSecret:
  repo:
  owner:
  admin: ['name']
  language: zh-CN
  labels: ['Gitalk']
  perPage: 10
  pagerDirection: last
  distractionFreeMode: false
  createIssueManually: true
  # 默认 proxy 可能会失效,解决方法请见下方链接
  # The default proxy may be invalid, refer to the links for solutions
  # https://github.com/gitalk/gitalk/issues/429
  # https://github.com/Zibri/cloudflare-cors-anywhere
  proxy: https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token

# Valine
# 基于 LeanCloud
# Based on LeanCloud
# See: https://valine.js.org/
valine:
  appId:
  appKey:
  path: window.location.pathname
  placeholder:
  avatar: 'retro'
  meta: ['nick', 'mail', 'link']
  requiredFields: []
  pageSize: 10
  lang: 'zh-CN'
  highlight: false
  recordIP: false
  serverURLs: ''
  emojiCDN:
  emojiMaps:
  enableQQ: false

# Waline
# 从 Valine 衍生而来,额外增加了服务端和多种功能
# Derived from Valine, with self-hosted service and new features
# See: https://waline.js.org/
waline:
  serverURL: ''
  path: window.location.pathname
  meta: ['nick', 'mail', 'link']
  requiredMeta: ['nick']
  lang: 'zh-CN'
  emoji: ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo']
  dark: 'html[data-user-color-scheme="dark"]'
  wordLimit: 0
  pageSize: 10

# 畅言 Changyan
# 基于第三方的服务
# Based on third-party service, insufficient support for regions outside China
# http://changyan.kuaizhan.com
changyan:
  appid: ''
  appkey: ''

# 来必力 Livere
# 基于第三方的服务
# Based on third-party service
# See: https://www.livere.com
livere:
  uid: ''

# Remark42
# 需要自托管服务端
# Based on self-hosted service
# See: https://remark42.com
remark42:
  host:
  site_id:
  max_shown_comments: 10
  locale: zh
  components: ['embed']

# Twikoo
# 支持腾讯云、Vercel、Railway 等多种平台部署
# Based on Tencent CloudBase
# See: https://twikoo.js.org
twikoo:
  envId:
  region: ap-shanghai
  path: window.location.pathname

# Cusdis
# 基于第三方服务或自托管服务
# Based on third-party or self-hosted service
# See https://cusdis.com
cusdis:
  host:
  app_id:
  lang: zh-cn

# Giscus
# 基于 GitHub Discussions,类似于 Utterances
# Based on GitHub Discussions, similar to Utterances
# See: https://giscus.app/
giscus:
  repo:
  repo-id:
  category:
  category-id:
  theme-light: light
  theme-dark: dark
  mapping: pathname
  reactions-enabled: 1
  emit-metadata: 0
  input-position: top
  lang: zh-CN

# Discuss
# 多平台、多数据库、自托管、免费开源评论系统
# Self-hosted, small size, multi-platform, multi-database, free and open source commenting system
# See: https://discuss.js.org
discuss:
  serverURLs:
  path: window.location.pathname


#---------------------------
# 归档页
# Archive Page
#---------------------------
archive:
  banner_img: /img/default.png
  banner_img_height: 60
  banner_mask_alpha: 0.3


#---------------------------
# 分类页
# Category Page
#---------------------------
category:
  enable: true
  banner_img: /img/default.png
  banner_img_height: 60
  banner_mask_alpha: 0.3

  # 分类的排序字段,前面带减号是倒序,不带减号是正序
  # Sort field for categories, with a minus sign is reverse order
  # Options: length | name
  order_by: "-length"

  # 层级的折叠深度,0 是全部折叠,大于 0 后如果存在子分类则默认展开
  # Collapse depth. If 0, all posts collapsed. If greater than 0, it will be expanded by default if there are subcategories
  collapse_depth: 0

  # 文章的排序字段,前面带减号是倒序,不带减号是正序
  # Sort field for posts, with a minus sign is reverse order
  # Options: date | title | or other field of front-matter
  post_order_by: "-date"

  # 单个分类中折叠展示文章数的最大值,超过限制会显示 More,0 则不限制
  # The maximum number of posts in a single category. If the limit is exceeded, it will be displayed More. If 0 no limit
  post_limit: 10


#---------------------------
# 标签页
# Tag Page
#---------------------------
tag:
  enable: true
  banner_img: /img/default.png
  banner_img_height: 80
  banner_mask_alpha: 0.3
  tagcloud:
    min_font: 15
    max_font: 30
    unit: px
    start_color: "#BBBBEE"
    end_color: "#337ab7"


#---------------------------
# 关于页
# About Page
#---------------------------
about:
  enable: true
  banner_img: /img/default.png
  banner_img_height: 60
  banner_mask_alpha: 0.3
  avatar: /img/avatar.png
  name: "Fluid"
  intro: "An elegant theme for Hexo"
  # 更多图标可从 https://hexo.fluid-dev.com/docs/icon/ 查找,`class` 代表图标的 css class,添加 `qrcode` 后,图标不再是链接而是悬浮二维码
  # More icons can be found from https://hexo.fluid-dev.com/docs/en/icon/  `class` is the css class of the icon. If adding `qrcode`, the icon is no longer a link, but a hovering QR code
  icons:
    - { class: "iconfont icon-github-fill", link: "https://github.com", tip: "GitHub" }
    - { class: "iconfont icon-douban-fill", link: "https://douban.com", tip: "豆瓣" }
    - { class: "iconfont icon-wechat-fill", qrcode: "/img/favicon.png" }


#---------------------------
# 自定义页
# Custom Page
#
# 通过 hexo new page 命令创建的页面
# Custom Page through `hexo new page`
#---------------------------
page:
  banner_img: /img/default.png
  banner_img_height: 60
  banner_mask_alpha: 0.3


#---------------------------
# 404页
# 404 Page
#---------------------------
page404:
  enable: true
  banner_img: /img/default.png
  banner_img_height: 85
  banner_mask_alpha: 0.3
  # 重定向到首页的延迟(毫秒)
  # Delay in redirecting to home page (milliseconds)
  redirect_delay: 5000


#---------------------------
# 友链页
# Links Page
#---------------------------
links:
  enable: true
  banner_img: /img/default.png
  banner_img_height: 60
  banner_mask_alpha: 0.3
  # 友链的成员项
  # Member item of page
  items:
    - {
      title: "Fluid Blog",
      intro: "主题博客",
      link: "https://hexo.fluid-dev.com/",
      avatar: "/img/favicon.png"
    }
    - {
      title: "Fluid Docs",
      intro: "主题使用指南",
      link: "https://hexo.fluid-dev.com/docs/",
      avatar: "/img/favicon.png"
    }
    - {
      title: "Fluid Repo",
      intro: "主题 GitHub 仓库",
      link: "https://github.com/fluid-dev/hexo-theme-fluid",
      avatar: "/img/favicon.png"
    }

  # 当成员头像加载失败时,替换为指定图片
  # When the member avatar fails to load, replace the specified image
  onerror_avatar: /img/avatar.png

  # 友链下方自定义区域,支持 HTML,可插入例如申请友链的文字
  # Custom content at the bottom of the links
  custom:
    enable: false
    content: '<hr><p>在下方留言申请加入我的友链,按如下格式提供信息:</p><ul><li>博客名:Fluid</li><li>简介:Fluid 主题官方博客</li><li>链接:https://hexo.fluid-dev.com</li><li>图片:https://hexo.fluid-dev.com/img/favicon.png</li></ul>'

  # 评论插件
  # Comment plugin
  comments:
    enable: false
    # 指定的插件,需要同时设置对应插件的必要参数
    # The specified plugin needs to set the necessary parameters at the same time
    # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss
    type: disqus


#---------------------------
# 以下是配置 JS CSS 等静态资源的 URL 前缀,可以自定义成 CDN 地址,
# 如果需要修改,最好使用与默认配置相同的版本,以避免潜在的问题,
# ** 如果你不知道如何设置,请不要做任何改动 **
#
# Here is the url prefix to configure the static assets. Set CDN addresses you want to customize.
# Be aware that you would better use the same version as default ones to avoid potential problems.
# DO NOT EDIT THE FOLLOWING SETTINGS UNLESS YOU KNOW WHAT YOU ARE DOING
#---------------------------

static_prefix:
  # 内部静态
  # Internal static
  internal_js: /js
  internal_css: /css
  internal_img: /img

  anchor: https://lib.baomitu.com/anchor-js/5.0.0/

  github_markdown: https://lib.baomitu.com/github-markdown-css/4.0.0/

  jquery: https://lib.baomitu.com/jquery/3.6.4/

  bootstrap: https://lib.baomitu.com/twitter-bootstrap/4.6.1/

  prismjs: https://lib.baomitu.com/prism/1.29.0/

  tocbot: https://lib.baomitu.com/tocbot/4.20.1/

  typed: https://lib.baomitu.com/typed.js/2.0.12/

  fancybox: https://lib.baomitu.com/fancybox/3.5.7/

  nprogress: https://lib.baomitu.com/nprogress/0.2.0/

  mathjax: https://lib.baomitu.com/mathjax/3.2.2/

  katex: https://lib.baomitu.com/KaTeX/0.16.2/

  busuanzi: https://busuanzi.ibruce.info/busuanzi/2.3/

  clipboard: https://lib.baomitu.com/clipboard.js/2.0.11/

  mermaid: https://lib.baomitu.com/mermaid/8.14.0/

  valine: https://lib.baomitu.com/valine/1.5.1/

  waline: https://cdn.jsdelivr.net/npm/@waline/client@v3/dist/

  gitalk: https://lib.baomitu.com/gitalk/1.8.0/

  disqusjs: https://lib.baomitu.com/disqusjs/1.3.0/

  twikoo: https://lib.baomitu.com/twikoo/1.6.8/

  discuss: https://lib.baomitu.com/discuss/1.2.1/

  hint: https://lib.baomitu.com/hint.css/2.7.0/

  moment: https://lib.baomitu.com/moment.js/2.29.4/


================================================
FILE: languages/de.yml
================================================
name: 'Deutsch'

home:
  menu: 'Startseite'
  title: 'Startseite'

archive:
  menu: 'Archiv'
  title: 'Archiv'
  subtitle: 'Archiv'
  post_total: 'Insgesamt %d Artikel'

category:
  menu: 'Kategorien'
  title: 'Kategorien'
  subtitle: 'Kategorien'
  post_total: 'Insgesamt %d Artikel'
  more: 'More...'

tag:
  menu: 'Schlagwörter'
  title: 'Schlagwörter'
  subtitle: 'Schlagwörter'
  post_total: 'Insgesamt %d Artikel'

about:
  menu: 'Über'
  title: 'Über'
  subtitle: 'Über'

links:
  menu: 'Weblinks'
  title: 'Weblinks'
  subtitle: 'Weblinks'

page404:
  menu: 'Die Seite wurde nicht gefunden'
  title: 'Die Seite wurde nicht gefunden'
  subtitle: 'Die Seite wurde nicht gefunden'

post:
  toc: 'Inhaltsverzeichnis'
  prev_post: 'Vorheriger'
  next_post: 'Nächster'
  updated: 'Geändert am %s'
  meta:
    wordcount: '%s wörter'
    min2read: '%s minuten'
    views: '{} ansichten'
  copyright:
    author: 'Beitragsautor'
    posted: 'Veröffentlicht am'
    updated: 'Geändert am'
    licensed: 'Urheberrechtshinweis'
    CC: 'CC - Creative Commons license'
    BY: 'BY - Attribution'
    SA: 'SA - Share-alike'
    NC: 'NC - Non-commercial'
    ND: 'ND - No derivative works'
    ZERO: 'CC0 - No Copyright'

footer:
  pv: 'Alle Aufrufe: {}'
  uv: 'Alle Besucher: {}'

search:
  title: 'Suchen'
  keyword: 'Stichwort'

noscript_warning: 'Blog funktioniert am besten mit aktiviertem JavaScript'

darkmode:
  light: 'Hell'
  dark: 'Dunkel'


================================================
FILE: languages/en.yml
================================================
name: 'English'

home:
  menu: 'Home'
  title: 'Home'

archive:
  menu: 'Archives'
  title: 'Archives'
  subtitle: 'Archives'
  post_total: '%d posts in total'

category:
  menu: 'Categories'
  title: 'Categories'
  subtitle: 'Categories'
  post_total: '%d posts in total'
  more: 'More...'

tag:
  menu: 'Tags'
  title: 'Tags'
  subtitle: 'Tags'
  post_total: '%d posts in total'

about:
  menu: 'About'
  title: 'About'
  subtitle: 'About'

links:
  menu: 'Links'
  title: 'Links'
  subtitle: 'Links'

page404:
  menu: 'Page not found'
  title: 'Page not found'
  subtitle: 'Page not found'

post:
  toc: 'Table of Contents'
  prev_post: 'Previous'
  next_post: 'Next'
  updated: 'Last updated on %s'
  meta:
    wordcount: '%s words'
    min2read: '%s mins'
    views: '{} views'
  copyright:
    author: 'Author'
    posted: 'Posted on'
    updated: 'Updated on'
    licensed: 'Licensed under'
    CC: 'CC - Creative Commons license'
    BY: 'BY - Attribution'
    SA: 'SA - Share-alike'
    NC: 'NC - Non-commercial'
    ND: 'ND - No derivative works'
    ZERO: 'CC0 - No Copyright'

footer:
  pv: 'Views: {}'
  uv: 'Visitors: {}'

search:
  title: 'Search'
  keyword: 'Keyword'

noscript_warning: 'Blog works best with JavaScript enabled'

darkmode:
  light: 'Light'
  dark: 'Dark'


================================================
FILE: languages/eo.yml
================================================
name: 'Esperanto'

home:
  menu: 'Hejmpaĝo'
  title: 'Hejmpaĝo'

archive:
  menu: 'Arkivoj'
  title: 'Arkivoj'
  subtitle: 'Arkivoj'
  post_total: 'Entute %d afiŝoj'

category:
  menu: 'Kategorio'
  title: 'Kategorio'
  subtitle: 'Kategorio'
  post_total: 'Entute %d afiŝoj'
  more: 'More...'

tag:
  menu: 'Etikedoj'
  title: 'Etikedoj'
  subtitle: 'Etikedoj'
  post_total: 'Entute %d afiŝoj'

about:
  menu: 'Pri'
  title: 'Pri'
  subtitle: 'Pri'

links:
  menu: 'Ligoj'
  title: 'Ligoj'
  subtitle: 'Ligoj'

page404:
  menu: 'Paĝo ne trovita'
  title: 'Paĝo ne trovita'
  subtitle: 'Paĝo ne trovita'

post:
  toc: 'Enhavtabelo'
  prev_post: 'Antaŭa afiŝo'
  next_post: 'Sekva afiŝo'
  updated: 'Aktualizita: %s'
  meta:
    wordcount: '%s vortoj'
    min2read: '%s minutoj'
    views: '{} rigardoj'
  copyright:
    author: 'Aŭtoro'
    posted: 'Postigita'
    updated: 'Aktualizita'
    licensed: 'Lizenta'
    CC: 'CC - Creative Commons license'
    BY: 'BY - Attribution'
    SA: 'SA - Share-alike'
    NC: 'NC - Non-commercial'
    ND: 'ND - No derivative works'
    ZERO: 'CC0 - No Copyright'

footer:
  pv: 'Vidoj: {}'
  uv: 'Visitoj: {}'

search:
  title: 'Serĉi'
  keyword: 'ŝlosivorto'

noscript_warning: 'Blogo funkcias plej bone kun JavaScript ebligita'

darkmode:
  light: 'Hela'
  dark: 'Malhela'


================================================
FILE: languages/es.yml
================================================
name: 'Español'

home:
  menu: 'Inicio'
  title: 'Inicio'

archive:
  menu: 'Archivo'
  title: 'Archivo'
  subtitle: 'Archivo'
  post_total: '%d artículos en total'

category:
  menu: 'Categorías'
  title: 'Categorías'
  subtitle: 'Categorías'
  post_total: '%d artículos en total'
  more: 'Más...'

tag:
  menu: 'Etiquetas'
  title: 'Etiquetas'
  subtitle: 'Etiquetas'
  post_total: '%d artículos en total'

about:
  menu: 'Acerca'
  title: 'Acerca'
  subtitle: 'Acerca'

links:
  menu: 'Enlaces'
  title: 'Enlaces'
  subtitle: 'Enlaces'

page404:
  menu: 'Página no encontrada'
  title: 'Página no encontrada'
  subtitle: 'Página no encontrada'

post:
  toc: 'Tabla de Contenidos'
  prev_post: 'Anterior'
  next_post: 'Siguiente'
  updated: 'Última actualización el %s'
  meta:
    wordcount: '%s palabras'
    min2read: '%s minutos'
    views: '{} vistas'
  copyright:
    author: 'Autor'
    posted: 'Publicado el'
    updated: 'Actualizado el'
    licensed: 'Licencia bajo'
    CC: 'CC - Licencia Creative Commons'
    BY: 'BY - Atribución'
    SA: 'SA - Compartir igual'
    NC: 'NC - No comercial'
    ND: 'ND - Sin obras derivadas'
    ZERO: 'CC0 - Sin derechos autorales'

footer:
  pv: 'Vistas: {}'
  uv: 'Visitantes: {}'

search:
  title: 'Buscar'
  keyword: 'Palabra clave'

noscript_warning: 'El blog funciona mejor con JavaScript habilitado'

darkmode:
  light: 'Claro'
  dark: 'Oscuro'


================================================
FILE: languages/ja.yml
================================================
name: '日本語'

home:
  menu: 'ホーム'
  title: 'ホーム'

archive:
  menu: 'アーカイブ'
  title: 'アーカイブ'
  subtitle: 'アーカイブ'
  post_total: '全 %d 件のポスト'

category:
  menu: 'カテゴリ'
  title: 'カテゴリ'
  subtitle: 'カテゴリ'
  post_total: '全 %d 件のポスト'
  more: 'More...'

tag:
  menu: 'タグ'
  title: 'タグ'
  subtitle: 'タグ'
  post_total: '全 %d 件のポスト'

about:
  menu: 'プロフィール'
  title: 'プロフィール'
  subtitle: 'プロフィール'

links:
  menu: 'リンク'
  title: 'リンク'
  subtitle: 'リンク'

page404:
  menu: 'ページが見つかりませんでした'
  title: 'ページが見つかりませんでした'
  subtitle: 'ページが見つかりませんでした'

post:
  toc: '見出し'
  prev_post: '前の記事'
  next_post: '次の記事'
  updated: '最終更新日:%s'
  meta:
    wordcount: '%s 単語'
    min2read: '%s 分'
    views: '{} 閲覧'
  copyright:
    author: '著者'
    posted: '作成日'
    updated: '修正日'
    licensed: '著作権'
    CC: 'CC - Creative Commons license'
    BY: 'BY - Attribution'
    SA: 'SA - Share-alike'
    NC: 'NC - Non-commercial'
    ND: 'ND - No derivative works'
    ZERO: 'CC0 - No Copyright'

footer:
  pv: '閲覧合計数: {}'
  uv: '合計閲覧者数: {}'

search:
  title: '検索'
  keyword: 'キーワード'

noscript_warning: 'ブログは JavaScript を有効にすると最適に機能します'

darkmode:
  light: 'ライト'
  dark: 'ダーク'


================================================
FILE: languages/ru.yml
================================================
name: 'Русский'

home:
  menu: 'Главная'
  title: 'Главная'

archive:
  menu: 'Архивы'
  title: 'Архивы'
  subtitle: 'Архивы'
  post_total: '%d сообщений всего'

category:
  menu: 'Категории'
  title: 'Категории'
  subtitle: 'Категории'
  post_total: '%d сообщений всего'
  more: 'More...'

tag:
  menu: 'Теги'
  title: 'Теги'
  subtitle: 'Теги'
  post_total: '%d сообщений всего'

about:
  menu: 'О'
  title: 'О'
  subtitle: 'О'

links:
  menu: 'Ссылки'
  title: 'Ссылки'
  subtitle: 'Ссылки'

page404:
  menu: 'Страница не найдена'
  title: 'Страница не найдена'
  subtitle: 'Страница не найдена'

post:
  toc: 'Оглавление'
  prev_post: 'Предыдущий'
  next_post: 'Следующий'
  updated: 'Последнее обновление %s'
  meta:
    wordcount: '%s слов'
    min2read: '%s минут'
    views: '{} просмотров'
  copyright:
    author: 'Автор'
    posted: 'Опубликовано на'
    updated: 'Обновлено'
    license: 'Лицензировано под'
    CC: 'CC - Creative Commons license'
    BY: 'BY - Attribution'
    SA: 'SA - Share-alike'
    NC: 'NC - Non-commercial'
    ND: 'ND - No derivative works'
    ZERO: 'CC0 - No Copyright'

footer:
  pv: 'Просмотров: {}'
  uv: 'Посетителей: {}'

search:
  title: 'Поиск'
  keyword: 'Ключевое слово'

noscript_warning: 'Блог лучше всего работает с включенным JavaScript'

darkmode:
  light: 'Светлая'
  dark: 'Тёмная'


================================================
FILE: languages/zh-CN.yml
================================================
name: '简体中文'

home:
  menu: '首页'
  title: '首页'

archive:
  menu: '归档'
  title: '归档'
  subtitle: '归档'
  post_total: '共计 %d 篇文章'

category:
  menu: '分类'
  title: '分类'
  subtitle: '分类'
  post_total: '共计 %d 篇文章'
  more: 'More...'

tag:
  menu: '标签'
  title: '标签'
  subtitle: '标签'
  post_total: '共计 %d 篇文章'

about:
  menu: '关于'
  title: '关于'
  subtitle: '关于'

links:
  menu: '友链'
  title: '友链'
  subtitle: '友情链接'

page404:
  menu: '页面不存在'
  title: '页面不存在'
  subtitle: '页面不存在'

post:
  toc: '目录'
  prev_post: '上一篇'
  next_post: '下一篇'
  updated: '本文最后更新于 %s'
  meta:
    wordcount: '%s 字'
    min2read: '%s 分钟'
    views: '{} 次'
  copyright:
    author: '作者'
    posted: '发布于'
    updated: '更新于'
    licensed: '许可协议'
    CC: 'CC - 知识共享许可协议'
    BY: 'BY - 署名'
    SA: 'SA - 相同方式共享'
    NC: 'NC - 非商业性使用'
    ND: 'ND - 禁止演绎'
    ZERO: 'CC0 - 无版权'

footer:
  pv: '总访问量 {} 次'
  uv: '总访客数 {} 人'

search:
  title: '搜索'
  keyword: '关键词'

noscript_warning: '博客在允许 JavaScript 运行的环境下浏览效果更佳'

darkmode:
  light: '开灯'
  dark: '关灯'


================================================
FILE: languages/zh-HK.yml
================================================
name: '繁體中文'

home:
  menu: '首頁'
  title: '首頁'

archive:
  menu: '歸檔'
  title: '歸檔'
  subtitle: '歸檔'
  post_total: '共有 %d 篇文章'

category:
  menu: '分類'
  title: '分類'
  subtitle: '分類'
  post_total: '共有 %d 篇文章'
  more: 'More...'

tag:
  menu: '標籤'
  title: '標籤'
  subtitle: '標籤'
  post_total: '共有 %d 篇文章'

about:
  menu: '關於'
  title: '關於'
  subtitle: '關於'

links:
  menu: '連結'
  title: '交換連結'
  subtitle: '交換連結'

page404:
  menu: '頁面不存在'
  title: '頁面不存在'
  subtitle: '頁面不存在'

post:
  toc: '目錄'
  prev_post: '上一篇'
  next_post: '下一篇'
  updated: '本文最後更新於:%s'
  meta:
    wordcount: '%s 字'
    min2read: '%s 分鐘'
    views: '{} 次'
  copyright:
    author: '作者'
    posted: '發布於'
    updated: '更新於'
    licensed: '許可協議'
    CC: 'CC - 知識共享許可協議'
    BY: 'BY - 署名'
    SA: 'SA - 相同方式共享'
    NC: 'NC - 非商業性使用'
    ND: 'ND - 禁止演繹'
    ZERO: 'CC0 - 無著作權'

footer:
  pv: '總訪問量 {} 次'
  uv: '總訪客數 {} 人'

search:
  title: '搜尋'
  keyword: '關鍵字'

noscript_warning: '博客在允許 JavaScript 運行的環境下瀏覽效果更佳'

darkmode:
  light: '開燈'
  dark: '關燈'


================================================
FILE: languages/zh-TW.yml
================================================
name: '正體中文'

home:
  menu: '首頁'
  title: '首頁'

archive:
  menu: '歸檔'
  title: '歸檔'
  subtitle: '歸檔'
  post_total: '共有 %d 篇文章'

category:
  menu: '分類'
  title: '分類'
  subtitle: '分類'
  post_total: '共有 %d 篇文章'
  more: 'More...'

tag:
  menu: '標籤'
  title: '標籤'
  subtitle: '標籤'
  post_total: '共有 %d 篇文章'

about:
  menu: '關於'
  title: '關於'
  subtitle: '關於'

links:
  menu: '連結'
  title: '交換連結'
  subtitle: '交換連結'

page404:
  menu: '頁面不存在'
  title: '頁面不存在'
  subtitle: '頁面不存在'

post:
  toc: '目錄'
  prev_post: '上一篇'
  next_post: '下一篇'
  updated: '本文最後更新於:%s'
  meta:
    wordcount: '%s 字'
    min2read: '%s 分鐘'
    views: '{} 次'
  copyright:
    author: '作者'
    posted: '發布於'
    updated: '更新於'
    licensed: '許可協議'
    CC: 'CC - 創用 CC 授權'
    BY: 'BY - 姓名標示'
    SA: 'SA - 相同方式分享'
    NC: 'NC - 非商業性'
    ND: 'ND - 禁止改作'
    ZERO: 'CC0 - 公眾領域貢獻宣告'

footer:
  pv: '總訪問量 {} 次'
  uv: '總訪客數 {} 人'

search:
  title: '搜尋'
  keyword: '關鍵字'

noscript_warning: '部落格在允許 JavaScript 執行的環境下瀏覽效果更佳'

darkmode:
  light: '開燈'
  dark: '關燈'


================================================
FILE: layout/404.ejs
================================================
<%
page.layout = "404"
page.title = theme.page404.title || __('page404.title')
page.subtitle = theme.page404.subtitle || __('page404.subtitle')
page.banner_img = theme.page404.banner_img
page.banner_img_height = theme.page404.banner_img_height
page.banner_mask_alpha = theme.page404.banner_mask_alpha
%>

<script>
  function redirect() {
    location.href = "<%- url_for('/') %>";
  }

  <% if (theme.page404.redirect_delay) { %>
    setTimeout(redirect, <%= parseInt(theme.page404.redirect_delay) %>)
  <% } %>
</script>


================================================
FILE: layout/_partials/archive-list.ejs
================================================
<div class="list-group">
  <p class="h4"><%= __(params.key + '.post_total', params.postTotal) %></p>
  <hr>
  <% var dateCursor %>
  <% page.posts.each(function (post) { %>
    <% if(date(post.date, "YYYY") !== dateCursor) { %>
      <% dateCursor = date(post.date, "YYYY") %>
      <p class="h5"><%= dateCursor %></p>
    <% } %>
    <a href="<%= url_for(post.path) %>" class="list-group-item list-group-item-action">
      <time><%= date(post.date, "MM-DD") %></time>
      <div class="list-group-item-title"><%= post.title %></div>
    </a>
  <% }) %>
</div>

<%- partial('_partials/paginator') %>


================================================
FILE: layout/_partials/category-chains.ejs
================================================
<% function render_category_chain(cat) { %>
  <a href="<%= url_for(cat.path) %>" class="category-chain-item"><%= cat.name.trim() %></a>
  <% var nextCats = categories.find({ parent: cat._id }).sort(config.index_generator.order_by || 'name').filter(cat => cat.length) %>
  <% if (nextCats.length > 0) { %>
    <span>></span>
    <%- render_category_chain(nextCats.data[0]) %>
  <% } %>
<% } %>

<span class="category-chains">
  <% var catsFirst = categories.find({ parent: { $exists: false } }).sort(config.index_generator.order_by || 'name').filter(cat => cat.length) %>
  <% catsFirst.each((cat, idx) => { %>
    <% if (typeof(limit) === "undefined" || idx < limit) { %>
      <span class="category-chain">
        <%- render_category_chain(cat) %>
      </span>
    <% } %>
  <% }) %>
</span>


================================================
FILE: layout/_partials/category-list.ejs
================================================
<% function render_categories(curCats, params = {}, depth = 0) { %>
  <% return curCats.each((cat) => { %>
    <% var subCats = site.categories.find({ parent: cat._id }).sort(params.orderBy || 'name').filter(cat => cat.length) %>
    <% var collapsed = subCats.length === 0 || depth >= theme.category.collapse_depth %>
    <% if ((params.filterIds || []).includes(cat._id)) collapsed = false %>
    <div class="<%= depth <= 0 ? 'category' : 'category-sub' %> row nomargin-x">
      <a class="<%= depth <= 0 ? 'category-item' : 'category-subitem' %> <%= collapsed ? 'collapsed' : '' %>
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="<%= cat.name.trim() %>"
        id="heading-<%= md5(cat.name) %>" role="tab" data-toggle="collapse" href="#collapse-<%= md5(cat.name) %>"
        aria-expanded="<%= collapsed ? 'false' : 'true' %>"
      >
        <%= cat.name.trim() %>
        <span class="list-group-count"><%= params.type === 'post' ? `(${ cat.posts.length })` : '' %></span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      <% if(params.type !== 'post') { %>
        <a href="<%= url_for(cat.path) %>" class="category-count col-2 col-md-1 col-xm-1">
          <i class="iconfont icon-articles"></i>
          <span><%= cat.posts.length %></span>
        </a>
      <% } %>
      <div class="category-collapse collapse <%= collapsed ? '' : 'show' %>" id="collapse-<%= md5(cat.name) %>"
           role="tabpanel" aria-labelledby="heading-<%= md5(cat.name) %>">
        <% var posts = cat.posts.sort(params.postOrderBy || '-date') %>
        <% if (subCats.length > 0) { %>
          <% var filteredPosts = posts.filter((p) => {
            return p.categories.filter(catOnPost => catOnPost.parent === cat._id).length === 0;
          }) %>
          <%- render_posts(filteredPosts, cat, params) %>
          <%- render_categories(subCats, params, depth + 1) %>
        <% } else { %>
          <%- render_posts(posts, cat, params) %>
        <% } %>
      </div>
    </div>
  <% }) %>
<% } %>

<% function render_posts(posts, cat, params) { %>
  <div class="category-post-list">
    <% var limit = params.postLimit %>
    <% for (var idx = 0; idx < posts.length; idx++) { %>
      <% var post = posts.data[idx] %>
      <% if (idx && limit && idx >= limit) { %>
        <a href="<%= url_for(cat.path) %>" class="list-group-item list-group-item-action">
          <span class="category-post"><%- __('category.more') %></span>
        </a>
        <% break %>
      <% } else { %>
        <a href="<%= url_for(post.path) %>" title="<%= post.title %>"
           class="list-group-item list-group-item-action
           <%= (params.filterIds || []).includes(post._id) ? 'active' : ''  %>">
          <span class="category-post"><%= post.title %></span>
        </a>
      <% } %>
    <% } %>
  </div>
<% } %>

<div class="category-list">
  <%- render_categories(curCats, params) %>
</div>


================================================
FILE: layout/_partials/comments/changyan.ejs
================================================
<% if (theme.changyan.appid) { %>
  <div id="SOHUCS" sid='<%= page.permalink %>'></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#SOHUCS', function() {
      Fluid.utils.createScript("https://changyan.sohu.com/upload/changyan.js", function() {
        window.changyan.api.config(<%- JSON.stringify(theme.changyan || {}) %>)
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/cusdis.ejs
================================================
<% if (theme.cusdis.host && theme.cusdis.app_id) { %>
  <div class="cusdis" style="width:100%; overflow:visible; min-height:480px;">
    <div id="cusdis_thread"
      style="width:100%; overflow:visible;"
      data-host="<%= theme.cusdis.host %>"
      data-app-id="<%= theme.cusdis.app_id %>"
      data-page-id="<%= md5(page.path) %>"
      data-page-url="<%= page.path %>"
      data-page-title="<%= page.title %>"
      data-theme="<%= theme.dark_mode.default %>"
    >
    </div>
  </div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#cusdis_thread', function() {
      Fluid.utils.createScript('<%= url_join(theme.cusdis.host,
        `/js/widget/lang/${ String(theme.cusdis.lang || 'zh-cn').toLowerCase() }.js`) %>');
      Fluid.utils.createScript('<%= url_join(theme.cusdis.host, 'js/cusdis.es.js') %>');

      // 取消容器滚动条,尝试让 iframe 展开显示
      var container = document.querySelector('.cusdis');
      var thread = document.querySelector('#cusdis_thread');
      if (container) container.style.overflow = 'visible';
      if (thread) thread.style.overflow = 'visible';

      // 等待 widget 加载后调整 iframe 样式
      setTimeout(function() {
        try {
          var iframe = thread && thread.querySelector('iframe');
          if (iframe) {
            iframe.style.width = '100%';
            iframe.style.border = 'none';
            iframe.style.overflow = 'visible';
            iframe.style.minHeight = '600px';
            iframe.setAttribute('scrolling', 'no');

            // 若同源,尝试根据内容自适应高度
            try {
              var doc = iframe.contentDocument || iframe.contentWindow.document;
              if (doc && doc.body) {
                iframe.style.height = doc.body.scrollHeight + 'px';
              }
            } catch (e) {
            }
          }
        } catch (e) {
        }
      }, 600);

      var schema = document.documentElement.getAttribute('data-user-color-scheme');
      if (schema) {
        document.querySelector('#cusdis_thread').dataset.theme = schema
      }
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/discuss.ejs
================================================
<% if (theme.discuss && theme.discuss.serverURLs) { %>
  <div id="discuss-comments"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#comments', function() {
      Fluid.utils.createScript('<%= url_join(theme.static_prefix.discuss, 'discuss.js') %>', function() {
        var options = Object.assign(
          <%- JSON.stringify(theme.discuss || {}) %>,
          { el: '#discuss-comments',
            path: <%= theme.discuss.path %>
          }
        )
        discuss.init(options)
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/disqus.ejs
================================================
<% if (theme.disqus.shortname) { %>
  <div class="disqus" style="width:100%">
    <div id="disqus_thread"></div>
    <% if (theme.disqus.disqusjs) { %>
      <script>
        Fluid.utils.loadComments('#disqus_thread', function() {
          Fluid.utils.createCssLink('<%= url_join(theme.static_prefix.disqusjs, 'disqusjs.css') %>');
          Fluid.utils.createScript('<%= url_join(theme.static_prefix.disqusjs, 'disqus.js') %>', function() {
            new DisqusJS({
              shortname: '<%= theme.disqus.shortname %>',
              apikey: <%- JSON.stringify(theme.disqus.apikey) %>,
              api: '<%= theme.disqus.api %>',
              url: '<%= page.permalink %>',
              identifier: '<%= url_for(page.path) %>',
              admin: '<%= theme.disqus.admin %>',
              adminLabel: '<%= theme.disqus.adminLabel %>'
            });
          });
        });
      </script>
    <% } else { %>
      <script type="text/javascript">
        var disqus_config = function() {
          this.page.url = '<%= page.permalink %>';
          this.page.identifier = '<%= url_for(page.path) %>';
        };
        Fluid.utils.loadComments('#disqus_thread', function() {
          var d = document, s = d.createElement('script');
          s.src = '//' + '<%= theme.disqus.shortname %>' + '.disqus.com/embed.js';
          s.setAttribute('data-timestamp', new Date());
          (d.head || d.body).appendChild(s);
        });
      </script>
    <% } %>
    <noscript>Please enable JavaScript to view the comments</noscript>
  </div>
<% } %>


================================================
FILE: layout/_partials/comments/giscus.ejs
================================================
<% if (theme.giscus && theme.giscus['repo'] && theme.giscus['repo-id']) { %>
    <div id="giscus" class="giscus"></div>
    <script type="text/javascript">
      Fluid.utils.loadComments('#giscus', function() {
        var options = <%- JSON.stringify(theme.giscus || {}) %>;
        var attributes = {};
        for (let option in options) {
          if (!option.startsWith('theme-')) {
            var key = option.startsWith('data-') ? option : 'data-' + option;
            attributes[key] = options[option];
          }
        }
        var light = '<%= theme.giscus['theme-light'] || 'light' %>';
        var dark = '<%= theme.giscus['theme-dark'] || 'dark' %>';
        window.GiscusThemeLight = light;
        window.GiscusThemeDark = dark;
        attributes['data-theme'] = document.documentElement.getAttribute('data-user-color-scheme') === 'dark' ? dark : light;
        for (let attribute in attributes) {
          var value = attributes[attribute];
          if (value === undefined || value === null || value === '') {
            delete attributes[attribute];
          }
        }
        var s = document.createElement('script');
        s.setAttribute('src', 'https://giscus.app/client.js');
        s.setAttribute('crossorigin', 'anonymous');
        for (let attribute in attributes) {
          s.setAttribute(attribute, attributes[attribute]);
        }
        var ss = document.getElementsByTagName('script');
        var e = ss.length > 0 ? ss[ss.length - 1] : document.head || document.documentElement;
        e.parentNode.insertBefore(s, e.nextSibling);
      });
    </script>
    <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/gitalk.ejs
================================================
<% if(theme.gitalk.clientID && theme.gitalk.clientSecret && theme.gitalk.repo){ %>
  <div id="gitalk-container"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#gitalk-container', function() {
      Fluid.utils.createCssLink('<%= url_join(theme.static_prefix.internal_css, 'gitalk.css') %>')
      Fluid.utils.createScript('<%= url_join(theme.static_prefix.gitalk, 'gitalk.min.js') %>', function() {
        var options = Object.assign(
          <%- JSON.stringify(theme.gitalk || {}) %>,
          {
            id: '<%= md5(page.path) %>'
          }
        )
        var gitalk = new Gitalk(options);
        gitalk.render('gitalk-container');
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/livere.ejs
================================================
<% if (theme.livere.uid) { %>
  <div id="lv-container" data-id="city" data-uid="<%= theme.livere.uid %>">
    <script type="text/javascript">
      Fluid.utils.loadComments('#lv-container', function() {
        Fluid.utils.createScript('https://cdn-city.livere.com/js/embed.dist.js');
      });
    </script>
    <noscript>Please enable JavaScript to view the comments</noscript>
  </div>
<% } %>


================================================
FILE: layout/_partials/comments/remark42.ejs
================================================
<% if (theme.remark42.host && theme.remark42.site_id) { %>
  <div id="remark42"></div>
  <script type="text/javascript">
    var schema = document.documentElement.getAttribute('data-user-color-scheme');
    if (schema !== 'light' && schema !== 'dark') {
      schema = 'light';
    }
    var remark_config = Object.assign(
      <%- JSON.stringify(theme.remark42 || {}) %>,
      {
        url: '<%= url_for(page.path) %>',
        page_title: '<%= page.title %>',
        theme: schema,
      }
    );

    Fluid.utils.loadComments('#remark42', function() {
      (function (c) {
        for (var i = 0; i < c.length; i++) {
          var d = document, s = d.createElement('script');
          s.src = remark_config.host + '/web/' + c[i] + '.js';
          s.defer = true;
          (d.head || d.body).appendChild(s);
        }
      })(remark_config.components || ['embed']);
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/twikoo.ejs
================================================
<% if (theme.twikoo && theme.twikoo.envId) { %>
  <div id="twikoo"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#comments', function() {
      Fluid.utils.createScript('<%= url_join(theme.static_prefix.twikoo, 'twikoo.all.min.js') %>', function() {
        var options = Object.assign(
          <%- JSON.stringify(theme.twikoo || {}) %>,
          {
            el: '#twikoo',
            path: '<%= theme.twikoo.path %>',
            onCommentLoaded: function() {
              Fluid.utils.listenDOMLoaded(function() {
                var imgSelector = '#twikoo .tk-content img:not(.tk-owo-emotion)';
                Fluid.plugins.imageCaption(imgSelector);
                Fluid.plugins.fancyBox(imgSelector);
              });
            }
          }
        )
        twikoo.init(options)
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/utterances.ejs
================================================
<% if (theme.utterances.repo && theme.utterances.issue_term) { %>
  <script type="text/javascript">
    Fluid.utils.loadComments('#comments', function() {
      var light = '<%= theme.utterances.theme || 'github-light' %>';
      var dark = '<%= theme.utterances.theme_dark || 'github-dark' %>';
      var schema = document.documentElement.getAttribute('data-user-color-scheme');
      if (schema === 'dark') {
        schema = dark;
      } else {
        schema = light;
      }
      window.UtterancesThemeLight = light;
      window.UtterancesThemeDark = dark;
      var s = document.createElement('script');
      s.setAttribute('src', 'https://utteranc.es/client.js');
      s.setAttribute('repo', '<%= theme.utterances.repo %>');
      s.setAttribute('issue-term', '<%= theme.utterances.issue_term %>');
      <% if (theme.utterances.label) { %>
      s.setAttribute('label', '<%= theme.utterances.label %>');
      <% } %>
      s.setAttribute('theme', schema);
      s.setAttribute('crossorigin', 'anonymous');
      document.getElementById('comments').appendChild(s);
    })
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/valine.ejs
================================================
<% if (theme.valine.appId && theme.valine.appKey) { %>
  <div id="valine"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#valine', function() {
      Fluid.utils.createScript('<%= url_join(theme.static_prefix.valine, 'Valine.min.js') %>', function() {
        var options = Object.assign(
          <%- JSON.stringify(theme.valine || {}) %>,
          {
            el: "#valine",
            path: <%= theme.valine.path %>
          }
        )
        new Valine(options);
        Fluid.utils.waitElementVisible('#valine .vcontent', () => {
          var imgSelector = '#valine .vcontent img:not(.vemoji)';
          Fluid.plugins.imageCaption(imgSelector);
          Fluid.plugins.fancyBox(imgSelector);
        })
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments/waline.ejs
================================================
<% if (theme.waline.serverURL) { %>
  <div id="waline"></div>
  <script type="module">
    Fluid.utils.loadComments('#waline', function() {
      Fluid.utils.createCssLink('<%= url_join(theme.static_prefix.waline, 'waline.css') %>')
      import('<%= url_join(theme.static_prefix.waline, 'waline.js') %>').then(({ init }) => {
        var options = Object.assign(
          <%- JSON.stringify(theme.waline || {}) %>,
          {
            el: '#waline',
            path: <%= theme.waline.path %>
          }
        )
        init(options);
        Fluid.utils.waitElementVisible('#waline .wl-content', () => {
          var imgSelector = '#waline .wl-content img:not(.wl-emoji)';
          Fluid.plugins.imageCaption(imgSelector);
          Fluid.plugins.fancyBox(imgSelector);
        })
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>
<% } %>


================================================
FILE: layout/_partials/comments.ejs
================================================
<% if ((!is_post() && !is_page()) || (is_post() && theme.post.comments.enable && page.comments) || (is_page() && page.comments)) { %>
  <% var commentType = typeof page.comment === 'string' && page.comment !== '' ? page.comment : theme.post.comments.type %>
  <% if (commentType) { %>
    <article id="comments">
      <%- partial('_partials/comments/' + commentType) %>
    </article>
  <% } %>
<% } %>


================================================
FILE: layout/_partials/css.ejs
================================================
<%- css_ex(theme.static_prefix.bootstrap, 'css/bootstrap.min.css') %>

<% var css_snippets = deduplicate(page.css_snippets) %>
<% for (var idx = 0; idx < css_snippets.length; idx++) { %>
  <%- css_snippets[idx] %>
<% } %>
<% page.css_snippets = [] %>

<!-- 主题依赖的图标库,不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->
<%- css('//at.alicdn.com/t/c/font_1749284_5i9bdhy70f8.css') %>

<%- css(theme.static_prefix.iconfont || theme.iconfont) %>

<%- css_ex(theme.static_prefix.internal_css, 'main.css') %>

<% if (theme.code.highlight.enable) { %>
  <%- css_ex(theme.static_prefix.internal_css, 'highlight.css', 'id="highlight-css"') %>
  <% if (theme.dark_mode.enable) { %>
    <%- css_ex(theme.static_prefix.internal_css, 'highlight-dark.css', 'id="highlight-css-dark"') %>
  <% } %>
<% } %>

<% if (theme.custom_css) { %>
  <%- css(theme.custom_css) %>
<% } %>


================================================
FILE: layout/_partials/footer/beian.ejs
================================================
<div class="beian">
  <span>
    <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
      <%- theme.footer.beian.icp_text %>
    </a>
  </span>
  <% if(theme.footer.beian.police_text) { %>
    <% if(theme.footer.beian.police_code) { %>
      <span>
        <a
          href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=<%= theme.footer.beian.police_code %>"
          rel="nofollow noopener"
          class="beian-police"
          target="_blank"
        >
          <% if(theme.footer.beian.police_icon) { %>
            <span style="visibility: hidden; width: 0">|</span>
            <img src="<%= url_for(theme.footer.beian.police_icon) %>" alt="police-icon"/>
          <% } %>
          <span><%- theme.footer.beian.police_text %></span>
        </a>
      </span>
    <% } else { %>
      <span class="beian-police">
        <% if(theme.footer.beian.police_icon) { %>
          <span style="visibility: hidden; width: 0">|</span>
          <img src="<%= url_for(theme.footer.beian.police_icon) %>" alt="police-icon"/>
        <% } %>
        <span class="beian-police"><%- theme.footer.beian.police_text %></span>
      </span>
    <% } %>
  <% } %>
</div>


================================================
FILE: layout/_partials/footer/statistics.ejs
================================================
<div class="statistics">
  <% let pv_texts = (theme.footer.statistics.pv_format || __('footer.pv')).split('{}') %>
  <% let uv_texts = (theme.footer.statistics.uv_format || __('footer.uv')).split('{}') %>

  <% if (theme.footer.statistics.source === 'leancloud') { %>
    <% if (pv_texts.length >= 2) { %>
      <span id="leancloud-site-pv-container" style="display: none">
        <%- pv_texts[0] %>
        <span id="leancloud-site-pv"></span>
        <%- pv_texts[1] %>
      </span>
    <% } %>
    <% if (uv_texts.length >= 2) { %>
      <span id="leancloud-site-uv-container" style="display: none">
        <%- uv_texts[0] %>
        <span id="leancloud-site-uv"></span>
        <%- uv_texts[1] %>
      </span>
    <% } %>
    <% import_js(theme.static_prefix.internal_js, 'leancloud.js', 'defer') %>

  <% } else if (theme.footer.statistics.source === 'openkounter') { %>
    <% if (pv_texts.length >= 2) { %>
      <span id="openkounter-site-pv-container" style="display: none">
        <%- pv_texts[0] %>
        <span id="openkounter-site-pv"></span>
        <%- pv_texts[1] %>
      </span>
    <% } %>
    <% if (uv_texts.length >= 2) { %>
      <span id="openkounter-site-uv-container" style="display: none">
        <%- uv_texts[0] %>
        <span id="openkounter-site-uv"></span>
        <%- uv_texts[1] %>
      </span>
    <% } %>
    <% import_js(theme.static_prefix.internal_js, 'openkounter.js', 'defer') %>

  <% } else if (theme.footer.statistics.source === 'busuanzi') { %>
    <% if (pv_texts.length >= 2) { %>
      <span id="busuanzi_container_site_pv" style="display: none">
        <%- pv_texts[0] %>
        <span id="busuanzi_value_site_pv"></span>
        <%- pv_texts[1] %>
      </span>
    <% } %>
    <% if (uv_texts.length >= 2) { %>
      <span id="busuanzi_container_site_uv" style="display: none">
        <%- uv_texts[0] %>
        <span id="busuanzi_value_site_uv"></span>
        <%- uv_texts[1] %>
      </span>
    <% } %>
    <% import_js(theme.static_prefix.busuanzi, 'busuanzi.pure.mini.js', 'defer') %>

  <% } else if (theme.footer.statistics.source === 'umami') { %>
    <% if (pv_texts.length >= 2) { %>
      <span id="umami-site-pv-container" style="display: none">
        <%- pv_texts[0] %>
        <span id="umami-site-pv"></span>
        <%- pv_texts[1] %>
      </span>
    <% } %>
    <% if (uv_texts.length >= 2) { %>
      <span id="umami-site-uv-container" style="display: none">
        <%- uv_texts[0] %>
        <span id="umami-site-uv"></span>
        <%- uv_texts[1] %>
      </span>
    <% } %>
    <% import_js(theme.static_prefix.internal_js, 'umami-view.js', 'defer') %>
  <% } %>

</div>


================================================
FILE: layout/_partials/footer.ejs
================================================
<div class="footer-inner">
  <% if (theme.footer.content) { %>
    <div class="footer-content">
      <%- theme.footer.content %>
    </div>
  <% } %>
  <% if (theme.footer.statistics.enable) { %>
    <%- partial('_partials/footer/statistics.ejs') %>
  <% } %>
  <% if(theme.footer.beian.enable) { %>
    <!-- 备案信息 ICP for China -->
    <%- partial('_partials/footer/beian.ejs') %>
  <% } %>
</div>


================================================
FILE: layout/_partials/head.ejs
================================================
<%
var separator = theme.title_join_string || theme.tab_title_separator
var title = page.title ? [page.title, config.title].join(separator) : config.title
var keywords = page.keywords || config.keywords
if (keywords instanceof Array) {
  keywords = keywords.join(',')
}
var description = page.description || page.excerpt || (is_post() && page.content) || config.description
if (description) {
  description = strip_html(description).substring(0, 200).trim().replace(/\n/g, ' ')
}
var ogImage = page.og_img || page.index_img
var ogConfig = Object.assign({ image: ogImage && url_for(ogImage) }, theme.open_graph)
%>

<head>
  <meta charset="UTF-8">

  <link rel="apple-touch-icon" sizes="76x76" href="<%= url_for(theme.apple_touch_icon) %>">
  <link rel="icon" href="<%= url_for(theme.favicon) %>">
  <% if (theme.canonical.enable) { %>
    <link rel="canonical" href="<%= url_join(config.url, page.canonical_path.replace('index.html', '')) %>"/>
  <% } %>

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <% if (theme.force_https) { %>
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
  <% } %>
  <meta name="theme-color" content="<%= theme.color.navbar_bg_color %>">
  <meta name="author" content="<%= page.author || config.author %>">
  <meta name="keywords" content="<%= keywords %>">
  <% if (theme.open_graph.enable) { %>
    <%- open_graph(ogConfig) %>
  <% } else { %>
    <meta name="description" content="<%= description %>">
  <% } %>
  <% if ((theme.post.meta.views.enable && theme.post.meta.views.source === 'busuanzi')
    || (theme.footer.statistics.enable && theme.footer.statistics.source === 'busuanzi')) { %>
    <meta name="referrer" content="no-referrer-when-downgrade">
  <% } %>
  <% if (theme.custom_head) { %>
    <%- theme.custom_head %>
  <% } %>
  <title><%= title %></title>

  <%- partial('_partials/css.ejs') %>
  <%- export_config() %>
  <%- js_ex(theme.static_prefix.internal_js, 'utils.js') %>
  <%- js_ex(theme.static_prefix.internal_js, 'color-schema.js') %>
  <%- partial('_partials/plugins/analytics.ejs') %>

  <%- inject_point('head') %>
</head>


================================================
FILE: layout/_partials/header/banner.ejs
================================================
<%
var banner_img = page.banner_img || (is_post() && theme.post ? theme.post.banner_img : theme.index.banner_img)
var random_enabled = theme.banner && typeof theme.banner.random_img === 'boolean'
  ? theme.banner.random_img
  : false
var random_banner_list = []
if (!banner_img && random_enabled && Array.isArray(theme.banner_img_list) && theme.banner_img_list.length > 0) {
  for (var i = 0; i < theme.banner_img_list.length; i++) {
    random_banner_list.push(url_for(theme.banner_img_list[i]))
  }
  banner_img = random_banner_list[0]
}
var random_banner_attr = ''
if (random_banner_list.length > 0) {
  random_banner_attr = "data-random-banner='" + random_banner_list.join(',') + "'"
}
var banner_attrs = ''
if (theme.banner && theme.banner.parallax) {
  banner_attrs += ' parallax=true'
}
if (random_banner_attr) {
  banner_attrs += ' ' + random_banner_attr
}
var banner_img_height = parseFloat(page.banner_img_height || theme.index.banner_img_height)
var banner_mask_alpha = parseFloat(page.banner_mask_alpha || theme.index.banner_mask_alpha)
var subtitle = page.subtitle || page.title
%>

<div id="banner" class="banner"<%- banner_attrs %>
     style="background: url('<%- url_for(banner_img) %>') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, <%= banner_mask_alpha %>)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          <% if(theme.fun_features.typing.enable && in_scope(theme.fun_features.typing.scope)) { %>
            <span id="subtitle" data-typed-text="<%= subtitle %>"></span>
          <% } else { %>
            <span id="subtitle"><%- subtitle %></span>
          <% } %>
        </div>

        <% if (is_post()) { %>
          <%- inject_point('postMetaTop') %>
        <% } %>
      </div>

      <% if (theme.scroll_down_arrow.enable && theme.scroll_down_arrow.banner_height_limit <= banner_img_height && page.layout !== '404') { %>
        <div class="scroll-down-bar">
          <i class="iconfont icon-arrowdown"></i>
        </div>
      <% } %>
    </div>
  </div>
</div>

<% if (random_banner_list.length > 0) { %>
  <script>
    (function() {
      var banner = document.getElementById('banner');
      if (!banner) return;
      var list = banner.getAttribute('data-random-banner');
      if (!list) return;
      list = list.split(',').filter(Boolean);
      if (list.length === 0) return;
      var pick = list[Math.floor(Math.random() * list.length)];
      banner.style.backgroundImage = "url('" + pick + "')";
    })();
  </script>
<% } %>


================================================
FILE: layout/_partials/header/navigation.ejs
================================================
<nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="<%= url_for() %>">
      <strong><%= theme.navbar.blog_title || config.title %></strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content (desktop) -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        <% for(const each of theme.navbar.menu || []) { %>
          <% if (!each.submenu && !each.link) continue %>
          <% var text = each.name || __(each.key + '.menu') || __(each.key + '.title') %>
          <% if (text.indexOf('.menu') !== -1 || text.indexOf('.title') !== -1) {
            text = each.key
          } %>
          <% if (each.submenu) { %>
            <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" target="_self" href="javascript:;" role="button"
                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <%- each.icon ? '<i class="' + each.icon + '"></i>' : '' %>
                <span><%- text %></span>
              </a>
              <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                <% for(const subEach of each.submenu || []) { %>
                  <% if (!subEach.link) continue %>
                  <% var subText = subEach.name || __(subEach.key + '.title') %>
                  <% if (subText.indexOf('.title') !== -1) {
                    subText = subEach.key
                  } %>
                  <a class="dropdown-item" href="<%= url_for(subEach.link) %>" target="<%= subEach.target || '_self' %>">
                    <%- subEach.icon ? '<i class="' + subEach.icon + '"></i>' : '' %>
                    <span><%- subText %></span>
                  </a>
                <% } %>
              </div>
            </li>
          <% } else { %>
            <li class="nav-item">
              <a class="nav-link" href="<%= url_for(each.link) %>" target="<%= each.target || '_self' %>">
                <%- each.icon ? '<i class="' + each.icon + '"></i>' : '' %>
                <span><%- text %></span>
              </a>
            </li>
          <% } %>
        <% } %>
        <% if(theme.search.enable) { %>
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          <% import_js(theme.static_prefix.internal_js, 'local-search.js') %>
        <% } %>
        <% if(theme.dark_mode && theme.dark_mode.enable) { %>
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        <% } %>
      </ul>
    </div>
  </div>
</nav>

<!-- Mobile grid menu overlay -->
<div id="mobile-grid-menu" class="d-lg-none">
  <div class="mobile-grid-menu-inner">
    <div class="container">
      <div class="row">
        <% for(const each of theme.navbar.menu || []) { %>
          <% if (!each.submenu && !each.link) continue %>
          <% var gridText = each.name || __(each.key + '.menu') || __(each.key + '.title') %>
          <% if (gridText.indexOf('.menu') !== -1 || gridText.indexOf('.title') !== -1) {
            gridText = each.key
          } %>
          <% if (each.submenu) { %>
            <%
              // Flatten submenu items as grid cells grouped under a header
              // First render the parent as a header row, then sub items
            %>
            <div class="col-12 mobile-grid-group-header">
              <%- each.icon ? '<i class="' + each.icon + '"></i>' : '' %>
              <span><%- gridText %></span>
            </div>
            <% for(const subEach of each.submenu || []) { %>
              <% if (!subEach.link) continue %>
              <% var subGridText = subEach.name || __(subEach.key + '.title') %>
              <% if (subGridText.indexOf('.title') !== -1) {
                subGridText = subEach.key
              } %>
              <div class="col-4 mobile-grid-cell">
                <a href="<%= url_for(subEach.link) %>" target="<%= subEach.target || '_self' %>">
                  <div class="mobile-grid-item">
                    <%- subEach.icon ? '<i class="' + subEach.icon + '"></i>' : '<i class="iconfont icon-link-fill"></i>' %>
                    <span><%- subGridText %></span>
                  </div>
                </a>
              </div>
            <% } %>
          <% } else { %>
            <div class="col-4 mobile-grid-cell">
              <a href="<%= url_for(each.link) %>" target="<%= each.target || '_self' %>">
                <div class="mobile-grid-item">
                  <%- each.icon ? '<i class="' + each.icon + '"></i>' : '<i class="iconfont icon-link-fill"></i>' %>
                  <span><%- gridText %></span>
                </div>
              </a>
            </div>
          <% } %>
        <% } %>
        <% if(theme.search.enable) { %>
          <div class="col-4 mobile-grid-cell" id="mobile-search-btn">
            <a href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <div class="mobile-grid-item">
                <i class="iconfont icon-search"></i>
                <span><%= __('search.title') !== 'search.title' ? __('search.title') : 'Search' %></span>
              </div>
            </a>
          </div>
        <% } %>
        <% if(theme.dark_mode && theme.dark_mode.enable) { %>
          <div class="col-4 mobile-grid-cell" id="mobile-color-toggle-btn"
               data-label-light="<%= __('darkmode.light') %>"
               data-label-dark="<%= __('darkmode.dark') %>">
            <a href="javascript:;" aria-label="Color Toggle">
              <div class="mobile-grid-item">
                <i class="iconfont icon-dark" id="mobile-color-toggle-icon"></i>
                <span id="mobile-color-toggle-label"><%= __('darkmode.dark') %></span>
              </div>
            </a>
          </div>
        <% } %>
      </div>
    </div>
  </div>
</div>


================================================
FILE: layout/_partials/header.ejs
================================================
<%
var banner_img_height = parseFloat(page.banner_img_height || theme.index.banner_img_height)
%>

<div class="header-inner" style="height: <%= banner_img_height %>vh;">
  <%- partial('_partials/header/navigation') %>
  <%- partial('_partials/header/banner') %>
</div>


================================================
FILE: layout/_partials/markdown-plugins.ejs
================================================
<% import_css(theme.static_prefix.github_markdown, 'github-markdown.min.css') %>
<% import_css(theme.static_prefix.hint, 'hint.min.css') %>

<% if (theme.code.highlight.enable) { %>
  <%- partial('_partials/plugins/highlight.ejs') %>
<% } %>
<% if ((theme.code.language.enable && theme.code.language.default) || theme.code.copy_btn) { %>
  <%- partial('_partials/plugins/code-widget.ejs') %>
<% } %>
<% if (theme.fun_features.anchorjs.enable && page.anchorjs !== false) { %>
  <%- partial('_partials/plugins/anchorjs.ejs') %>
<% } %>
<% if (theme.post.image_zoom.enable && page.image_zoom !== false) { %>
  <%- partial('_partials/plugins/fancybox.ejs') %>
<% } %>
<% if (theme.post.image_caption.enable) { %>
  <% import_script('<script>Fluid.plugins.imageCaption();</script>') %>
<% } %>
<% if (theme.post.math.enable && (!theme.post.math.specific || (theme.post.math.specific && page.math))) { %>
  <%- partial('_partials/plugins/math.ejs') %>
<% } %>
<% if (theme.post.mermaid.enable && (!theme.post.mermaid.specific || (theme.post.mermaid.specific && page.mermaid))) { %>
  <%- partial('_partials/plugins/mermaid.ejs') %>
<% } %>


================================================
FILE: layout/_partials/paginator.ejs
================================================
<% if (page.total > 1){ %>
  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <%- paginator({
        prev_text: '<i class="iconfont icon-arrowleft"></i>',
        next_text: '<i class="iconfont icon-arrowright"></i>',
        mid_size: 2,
        end_size: 1,
        format: `${config.pagination_dir}/%d/${theme.scroll_down_arrow.scroll_after_turning_page ? '#board' : ''}`,
        escape: false
      }) %>
    </span>
  </nav>
<% } %>


================================================
FILE: layout/_partials/plugins/analytics.ejs
================================================
<% if (theme.web_analytics.enable) { %>

  <% if(theme.web_analytics.baidu) { %>
    <!-- Baidu Analytics -->
    <script async>
      if (!Fluid.ctx.dnt) {
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?<%= theme.web_analytics.baidu %>";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
        })();
      }
    </script>
  <% } %>

  <% if (theme.web_analytics.google && theme.web_analytics.google.measurement_id){ %>
    <!-- Google tag (gtag.js) -->
    <script async>
      if (!Fluid.ctx.dnt) {
        Fluid.utils.createScript("https://www.googletagmanager.com/gtag/js?id=<%= theme.web_analytics.google.measurement_id %>", function() {
          window.dataLayer = window.dataLayer || [];
          function gtag() {
            dataLayer.push(arguments);
          }
          gtag('js', new Date());
          gtag('config', '<%= theme.web_analytics.google.measurement_id %>');
        });
      }
    </script>
  <% } %>

  <% if(theme.web_analytics.umami && theme.web_analytics.umami.src && theme.web_analytics.umami.website_id) { %>
    <script async>
      if (!Fluid.ctx.dnt) {
        let umami = document.createElement('script');
        umami.async = true;
        umami.src = "<%= theme.web_analytics.umami.src %>";
        umami.setAttribute("data-website-id", "<%= theme.web_analytics.umami.website_id %>");
        umami.setAttribute("data-domains", "<%= theme.web_analytics.umami.domains %>");
        document.head.appendChild(umami);
      }
    </script>
  <% } %>

  <% if(theme.web_analytics.tencent && theme.web_analytics.tencent.sid && theme.web_analytics.tencent.cid) { %>
    <!-- Tencent Analytics -->
    <script async>
      if (!Fluid.ctx.dnt) {
        var _mtac = {};
        (function() {
          var mta = document.createElement("script");
          mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
          mta.setAttribute("name", "MTAH5");
          mta.setAttribute("sid", "<%= theme.web_analytics.tencent.sid %>");
          <% if(theme.web_analytics.tencent.cid) { %>
          mta.setAttribute("cid", "<%= theme.web_analytics.tencent.cid %>");
          <% } %>
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(mta, s);
        })();
      }
    </script>
  <% } %>

  <% if(theme.web_analytics.leancloud && theme.web_analytics.leancloud.app_id && theme.web_analytics.leancloud.app_key) { %>
    <% import_js(theme.static_prefix.internal_js, 'leancloud.js', 'defer') %>
  <% } %>

  <% if(theme.web_analytics.openkounter && theme.web_analytics.openkounter.server_url) { %>
    <% import_js(theme.static_prefix.internal_js, 'openkounter.js', 'defer') %>
  <% } %>

<% } %>


================================================
FILE: layout/_partials/plugins/anchorjs.ejs
================================================
<%
import_script(`
<script>
  Fluid.utils.createScript('${ url_join(theme.static_prefix.anchor, 'anchor.min.js') }', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>
`)
%>


================================================
FILE: layout/_partials/plugins/code-widget.ejs
================================================
<%
if (theme.code.copy_btn) {
  import_script(`<script src=${url_join(theme.static_prefix.clipboard, 'clipboard.min.js')}></script>`)
}
import_script(`<script>Fluid.plugins.codeWidget();</script>
`)
%>


================================================
FILE: layout/_partials/plugins/encrypt.ejs
================================================
<%
import_script(`
  <script defer>
    if (document.getElementById('hbePass') || document.querySelector('hbe-prefix')) {
      Fluid.utils.waitElementLoaded('hbe-prefix', function() {
        var hbePrefix = document.querySelector('hbe-prefix');
        hbePrefix.parentElement.classList.add('markdown-body');
        Fluid.utils.retry(function() {
          if (Fluid.boot && Fluid.boot.refresh) {
            Fluid.boot.refresh();
            return true;
          }
        }, 100, 10);
      })
    }
  </script>
`)
%>


================================================
FILE: layout/_partials/plugins/fancybox.ejs
================================================
<%
import_css(theme.static_prefix.fancybox, 'jquery.fancybox.min.css')

import_script(`
<script>
  Fluid.utils.createScript('${url_join(theme.static_prefix.fancybox, 'jquery.fancybox.min.js')}', function() {
    Fluid.plugins.fancyBox();
  });
</script>
`)
%>


================================================
FILE: layout/_partials/plugins/highlight.ejs
================================================
<%
if (theme.code.highlight.lib === 'prismjs') {
  if (!theme.code.highlight.prismjs.preprocess) {
    import_js(theme.static_prefix.prismjs, 'components/prism-core.min.js')
    import_js(theme.static_prefix.prismjs, 'plugins/autoloader/prism-autoloader.min.js')
  }

  if (theme.code.highlight.line_number) {
    import_css(theme.static_prefix.prismjs, '/plugins/line-numbers/prism-line-numbers.min.css')
    import_js(theme.static_prefix.prismjs, '/plugins/line-numbers/prism-line-numbers.min.js')
  }
}
%>


================================================
FILE: layout/_partials/plugins/math.ejs
================================================
<% if(theme.post.math.engine === 'mathjax') { %>
  <%
    var lazy = theme.lazyload.enable && require_version(theme.static_prefix.mathjax, '3.2.0')

    import_script(`
      <script>
        if (!window.MathJax) {
          window.MathJax = {
            tex    : {
              inlineMath: { '[+]': [['$', '$']] }
            },
            loader : {
              ${ lazy ? 'load: \[\'ui/lazy\'\]' : '' }
            },
            options: {
              renderActions: {
                insertedScript: [200, () => {
                  document.querySelectorAll('mjx-container').forEach(node => {
                    let target = node.parentNode;
                    if (target.nodeName.toLowerCase() === 'li') {
                      target.parentNode.classList.add('has-jax');
                    }
                  });
                }, '', false]
              }
            }
          };
        } else {
          MathJax.startup.document.state(0);
          MathJax.texReset();
          MathJax.typeset();
          MathJax.typesetPromise();
        }

        Fluid.events.registerRefreshCallback(function() {
          if ('MathJax' in window && MathJax.startup.document && typeof MathJax.startup.document.state === 'function') {
            MathJax.startup.document.state(0);
            MathJax.texReset();
            MathJax.typeset();
            MathJax.typesetPromise();
          }
        });
      </script>
    `)

    import_js(theme.static_prefix.mathjax.replace('es5/', ''), 'es5/tex-mml-chtml.js')
  %>

<% } else if (theme.post.math.engine === 'katex') { %>
  <% import_css(theme.static_prefix.katex, 'katex.min.css') %>
<% } %>


================================================
FILE: layout/_partials/plugins/mermaid.ejs
================================================
<script>
  Fluid.utils.createScript('<%= url_join(theme.static_prefix.mermaid, 'mermaid.min.js') %>', function() {
    mermaid.initialize(<%- JSON.stringify(theme.post.mermaid.options || {}) %>);

    Fluid.utils.listenDOMLoaded(function() {
      Fluid.events.registerRefreshCallback(function() {
        if ('mermaid' in window) {
          mermaid.init();
        }
      });
    });
  });
</script>


================================================
FILE: layout/_partials/plugins/moment.ejs
================================================
<%
var lang = (config.language || 'zh-cn').toLowerCase();

import_script(`
<script>
  var relativeDate = function() {
    var updatedTime = document.getElementById('updated-time');
    if (updatedTime) {
      var text = updatedTime.textContent;
      var reg = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:Z|[+-]\\d{2}:\\d{2})/;
      var matchs = text.match(reg);
      if (matchs) {
        var relativeTime = moment(matchs[0]).fromNow();
        updatedTime.textContent = text.replace(reg, relativeTime);
      }
      updatedTime.style.display = '';
    }
  };
  Fluid.utils.createScript('${url_join(theme.static_prefix.moment, 'moment.min.js')}', function() {
    if (!'${lang}'.startsWith('en')) {
      Fluid.utils.createScript('${url_join(theme.static_prefix.moment, 'locale/' + lang + '.min.js')}', function() {
        relativeDate();
      });
    } else {
      relativeDate();
    }
  });
</script>
`)
%>


================================================
FILE: layout/_partials/plugins/nprogress.ejs
================================================
<% if (theme.fun_features.progressbar && theme.fun_features.progressbar.enable){ %>
  <%- js_ex(theme.static_prefix.nprogress, 'nprogress.min.js') %>
  <%- css_ex(theme.static_prefix.nprogress, 'nprogress.min.css') %>

  <script>
    NProgress.configure(<%- JSON.stringify(theme.fun_features.progressbar.options || '{}') %>)
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>
<% } %>


================================================
FILE: layout/_partials/plugins/typed.ejs
================================================
<% if(theme.fun_features.typing.enable && in_scope(theme.fun_features.typing.scope) && page.subtitle !== false) { %>
  <%- js_ex(theme.static_prefix.typed, '/typed.min.js') %>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      <% if (is_home() && theme.index.slogan.api && theme.index.slogan.api.enable) { %>
        jQuery.ajax({
          type: '<%= theme.index.slogan.api.method %>',
          url: '<%- theme.index.slogan.api.url %>',
          headers: <%- JSON.stringify(theme.index.slogan.api.headers || {}) %>,
          dataType: 'json',
          success: function(result) {
            var apiText;
            if (result) {
              var keys = '<%= theme.index.slogan.api.keys %>'.split(',');
              if (result instanceof Array) {
                result = result[0];
              }
              for (const k of keys) {
                var value = result[k];
                if (typeof value === 'string') {
                  apiText = value;
                  break;
                } else if (value instanceof Object) {
                  result = value;
                }
              }
            }
            apiText ? typing(apiText) : typing(text);
          },
          error: function(xhr, status, error) {
            if (error) {
              console.error('Failed to request <%= theme.index.slogan.api.url %>:', error);
            }
            typing(text);
          }
        })
      <% } else if (is_home() && Array.isArray(theme.index.slogan.text) && theme.index.slogan.text.length > 0) { %>
        var texts = <%- JSON.stringify(theme.index.slogan.text) %>;
        var idx = Math.floor(Math.random() * texts.length);
        typing(texts[idx]);
      <% } else { %>
        typing(text);
      <% } %>
    })(window, document);
  </script>
<% } %>


================================================
FILE: layout/_partials/post/category-bar.ejs
================================================
<%
var parent = page.categories.filter(c => !c.parent)
if (Array.isArray(page.category_bar)) {
  parent = page.categories.filter(cat => page.category_bar.indexOf(cat.name) !== -1)
}
var filterIds = page.categories.map(c => c._id)
filterIds.push(page._id)
%>

<%- partial('_partials/category-list', {
  curCats  : parent,
  params: {
    type     : 'post',
    filterIds: filterIds,
    postLimit: theme.post.category_bar.post_limit,
    postOrderBy: theme.post.category_bar.post_order_by || config.index_generator.order_by
  }
}) %>


================================================
FILE: layout/_partials/post/copyright.ejs
================================================
<% if (theme.post.copyright.enable && page.copyright !== false) { %>
  <%
    var license = theme.post.copyright.license || ''
    if (typeof page.copyright === 'string') {
      license = page.copyright
    } else if (typeof page.license === 'string') {
      license = page.license
    }
    license = license.toUpperCase()
  %>

  <div class="license-box my-3">
    <div class="license-title">
      <div><%= page.title %></div>
      <div><%= decode_url(full_url_for(page.path)) %></div>
    </div>
    <div class="license-meta">
      <% if (theme.post.copyright.author.enable && (page.author || config.author)) { %>
        <div class="license-meta-item">
          <div><%- __('post.copyright.author') %></div>
          <div><%- page.author || config.author %></div>
        </div>
      <% } %>
      <% if (theme.post.copyright.post_date.enable && page.date) { %>
        <div class="license-meta-item license-meta-date">
          <div><%- __('post.copyright.posted') %></div>
          <div><%= full_date(page.date, theme.post.copyright.post_date.format || 'LL') %></div>
        </div>
      <% } %>
      <% if (theme.post.copyright.update_date.enable && page.updated && compare_date(page.date, page.updated)) { %>
        <div class="license-meta-item license-meta-date">
          <div><%- __('post.copyright.updated') %></div>
          <div><%= full_date(page.updated, theme.post.copyright.update_date.format || 'LL') %></div>
        </div>
      <% } %>
      <% if (license) { %>
        <div class="license-meta-item">
          <div><%- __('post.copyright.licensed') %></div>
          <div>
            <% if (['BY', 'BY-SA', 'BY-ND', 'BY-NC', 'BY-NC-SA', 'BY-NC-ND'].indexOf(license) !== -1) { %>
              <% var items = license.split('-') %>
              <% for (var idx = 0; idx < items.length; idx++) { %>
                <a class="print-no-link" target="_blank" href="https://creativecommons.org/licenses/<%= license.toLowerCase() %>/4.0/">
                  <span class="hint--top hint--rounded" aria-label="<%- __('post.copyright.' + items[idx]) %>">
                    <i class="iconfont icon-cc-<%= items[idx].toLowerCase() %>"></i>
                  </span>
                </a>
              <% } %>
            <% } else if (license === 'ZERO') {  %>
              <a class="print-no-link" target="_blank" href="https://creativecommons.org/publicdomain/zero/1.0/">
                <span class="hint--top hint--rounded" aria-label="<%- __('post.copyright.ZERO') %>">
                  <i class="iconfont icon-cc-zero"></i>
                </span>
              </a>
            <% } else { %>
              <%- license %>
            <% } %>
          </div>
        </div>
      <% } %>
    </div>
    <div class="license-icon iconfont"></div>
  </div>
<% } %>


================================================
FILE: layout/_partials/post/meta-bottom.ejs
================================================
<div class="post-metas my-3">
  <% if (page.categories && page.categories.length > 0) { %>
    <div class="post-meta mr-3 d-flex align-items-center">
      <i class="iconfont icon-category"></i>
      <%- partial('_partials/category-chains', { categories: page.categories }) %>
    </div>
  <% } %>
  <% if (page.tags && page.tags.length > 0 ) { %>
    <div class="post-meta">
      <i class="iconfont icon-tags"></i>
      <% page.tags.each(function(tag) { %>
        <a href="<%= url_for(tag.path) %>" class="print-no-link">#<%- tag.name %></a>
      <% }) %>
    </div>
  <% } %>
</div>


================================================
FILE: layout/_partials/post/meta-top.ejs
================================================
<% if (page.meta !== false) { %>
  <div class="mt-3">
    <% if (theme.post.meta.author && theme.post.meta.author.enable && (page.author || config.author)) { %>
      <span class="post-meta mr-2">
        <i class="iconfont icon-author" aria-hidden="true"></i>
        <%- page.author || config.author %>
      </span>
    <% } %>
    <% if (theme.post.meta.date.enable) { %>
      <span class="post-meta">
        <i class="iconfont icon-date-fill" aria-hidden="true"></i>
        <time datetime="<%= full_date(page.date, 'YYYY-MM-DD HH:mm') %>" pubdate>
          <%= full_date(page.date, theme.post.meta.date.format) %>
        </time>
      </span>
    <% } %>
  </div>

  <div class="mt-1">
    <% if (theme.post.meta.wordcount.enable) { %>
      <span class="post-meta mr-2">
        <i class="iconfont icon-chart"></i>
        <% if (theme.post.meta.wordcount.format) { %>
          <!-- compatible with older versions-->
          <%- theme.post.meta.wordcount.format.replace('{}', wordcount(page)) %>
        <% } else { %>
          <%- __('post.meta.wordcount', wordcount(page)) %>
        <% } %>
      </span>
    <% } %>

    <% if (theme.post.meta.min2read.enable) { %>
      <span class="post-meta mr-2">
        <i class="iconfont icon-clock-fill"></i>
        <% var awl = parseInt(theme.post.meta.min2read.awl, 10) %>
        <% var wpm = parseInt(theme.post.meta.min2read.wpm, 10) %>
        <% if (theme.post.meta.min2read.format) { %>
          <!-- compatible with older versions-->
          <%- theme.post.meta.min2read.format.replace('{}', min2read(page, { awl: awl, wpm: wpm })) %>
        <% } else { %>
          <%- __('post.meta.min2read', min2read(page, { awl: awl, wpm: wpm })) %>
        <% } %>
      </span>
    <% } %>

    <% var views_texts = (theme.post.meta.views.format || __('post.meta.views')).split('{}') %>
    <% if (theme.post.meta.views.enable && views_texts.length >= 2) { %>
      <% if (theme.post.meta.views.source === 'leancloud') { %>
        <span id="leancloud-page-views-container" class="post-meta" style="display: none">
          <i class="iconfont icon-eye" aria-hidden="true"></i>
          <%- views_texts[0] %><span id="leancloud-page-views"></span><%- views_texts[1] %>
        </span>
        <% import_js(theme.static_prefix.internal_js, 'leancloud.js', 'defer') %>
      <% } else if (theme.post.meta.views.source === 'openkounter')  { %>
        <span id="openkounter-page-views-container" style="display: none">
          <i class="iconfont icon-eye" aria-hidden="true"></i>
          <%- views_texts[0] %><span id="openkounter-page-views"></span><%- views_texts[1] %>
        </span>
        <% import_js(theme.static_prefix.internal_js, 'openkounter.js', 'defer') %>

      <% } else if (theme.post.meta.views.source === 'busuanzi')  { %>
        <span id="busuanzi_container_page_pv" style="display: none">
          <i class="iconfont icon-eye" aria-hidden="true"></i>
          <%- views_texts[0] %><span id="busuanzi_value_page_pv"></span><%- views_texts[1] %>
        </span>
        <% import_js(theme.static_prefix.busuanzi, 'busuanzi.pure.mini.js', 'defer') %>

      <% } else if (theme.post.meta.views.source === 'umami')  { %>
        <span id="umami-page-views-container" class="post-meta" style="display: none">
          <i class="iconfont icon-eye" aria-hidden="true"></i>
          <%- views_texts[0] %><span id="umami-page-views"></span><%- views_texts[1] %>
        </span>
        <% import_js(theme.static_prefix.internal_js, 'umami-view.js', 'defer') %>
      <% } %>
    <% } %>
  </div>
<% } %>


================================================
FILE: layout/_partials/post/sidebar-left.ejs
================================================
<% if(theme.post.toc.enable && theme.post.toc.placement === 'left' && page.toc !== false){ %>
  <aside class="sidebar" style="padding-left: 2rem; margin-right: -1rem">
    <%- partial('_partials/post/toc') %>
  </aside>
<% } else if (theme.post.category_bar.enable && theme.post.category_bar.placement !== 'right' && !page.hide &&
  (!theme.post.category_bar.specific || (theme.post.category_bar.specific && page.category_bar))) { %>
  <aside class="sidebar category-bar" style="margin-right: -1rem">
    <%- partial('_partials/post/category-bar') %>
  </aside>
<% } %>


================================================
FILE: layout/_partials/post/sidebar-right.ejs
================================================
<% if(theme.post.toc.enable && theme.post.toc.placement !== 'left' && page.toc !== false){ %>
  <aside class="sidebar" style="margin-left: -1rem">
    <%- partial('_partials/post/toc') %>
  </aside>
<% } else if (theme.post.category_bar.enable && theme.post.category_bar.placement === 'right' && !page.hide &&
  (!theme.post.category_bar.specific || (theme.post.category_bar.specific && page.category_bar))) { %>
  <aside class="sidebar category-bar" style="margin-left: -1rem">
    <%- partial('_partials/post/category-bar') %>
  </aside>
<% } %>


================================================
FILE: layout/_partials/post/toc.ejs
================================================
<div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span><%- __('post.toc') %></span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>

<%
import_script(`
<script>
  Fluid.utils.createScript('${url_join(theme.static_prefix.tocbot, 'tocbot.min.js')}', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    function isExpandAllEnabled() {
      return CONFIG.toc && CONFIG.toc.expand_all === true;
    }
    function expandAllToc() {
      if (!isExpandAllEnabled()) { return; }
      jQuery('#toc-body .tocbot-is-collapsed').removeClass('tocbot-is-collapsed');
    }
    function updateTocToggle($li, $childList) {
      var $toggle = $li.children('.toc-toggle');
      if ($toggle.length === 0) { return; }
      var collapsed = $childList.hasClass('tocbot-is-collapsed');
      $toggle
        .toggleClass('toc-toggle-collapsed', collapsed)
        .toggleClass('toc-toggle-expanded', !collapsed);
    }
    function bindTocToggle() {
      if (!isExpandAllEnabled()) { return; }
      jQuery('#toc-body .toc-list-item').each(function() {
        var $li = jQuery(this);
        var $childList = $li.children('ol');
        if ($childList.length === 0) {
          if ($li.children('.toc-toggle').length === 0) {
            $li.prepend('<span class="toc-toggle toc-toggle-placeholder" aria-hidden="true">›</span>');
          }
          return;
        }

        if ($li.children('.toc-toggle').length === 0) {
          $li.prepend('<span class="toc-toggle toc-toggle-expanded" aria-hidden="true">›</span>');
        }
        updateTocToggle($li, $childList);
      });
      jQuery('#toc-body').off('click.tocToggle').on('click.tocToggle', '.toc-toggle', function(e) {
        e.preventDefault();
        e.stopPropagation();
        var $li = jQuery(this).parent('.toc-list-item');
        var $childList = $li.children('ol');
        if ($childList.length === 0) { return; }
        $childList.toggleClass('tocbot-is-collapsed');
        updateTocToggle($li, $childList);
      });
      if (!window.__tocToggleObserver) {
        window.__tocToggleObserver = new MutationObserver(function(mutations) {
          mutations.forEach(function(mutation) {
            if (mutation.type !== 'attributes' || mutation.attributeName !== 'class') { return; }
            var $list = jQuery(mutation.target);
            var $li = $list.parent('.toc-list-item');
            if ($li.length === 0) { return; }
            updateTocToggle($li, $list);
          });
        });
        jQuery('#toc-body ol').each(function() {
          window.__tocToggleObserver.observe(this, { attributes: true });
        });
      }
    }
    var tocConfig = Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc);
    if (isExpandAllEnabled()) {
      tocConfig.collapseDepth = 6;
    }
    window.tocbot.init(tocConfig);
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }
    expandAllToc();
    bindTocToggle();

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
        expandAllToc();
        bindTocToggle();
      }
    });
  });
</script>
`)
%>


================================================
FILE: layout/_partials/scripts.ejs
================================================
<%- partial('_partials/plugins/nprogress.ejs') %>
<%- js_ex(theme.static_prefix.jquery, 'jquery.min.js') %>
<%- js_ex(theme.static_prefix.bootstrap, 'js/bootstrap.min.js') %>
<%- js_ex(theme.static_prefix.internal_js, 'events.js') %>
<%- js_ex(theme.static_prefix.internal_js, 'plugins.js') %>

<%- partial('_partials/plugins/typed.ejs') %>

<% if (theme.lazyload.enable){ %>
  <% if (theme.lazyload.onlypost) { %>
    <% if (is_post() || is_page()) { %>
      <%- js_ex(theme.static_prefix.internal_js, 'img-lazyload.js') %>
    <% } %>
  <% } else { %>
    <%- js_ex(theme.static_prefix.internal_js, 'img-lazyload.js') %>
  <% } %>
<% } %>

<% var script_snippets = deduplicate(page.script_snippets) %>
<% for (var idx = 0; idx < script_snippets.length; idx++) { %>
  <%- script_snippets[idx] %>
<% } %>
<% page.script_snippets = [] %>

<% if (theme.custom_js) { %>
  <%- js(theme.custom_js) %>
<% } %>

<!-- 主题的启动项,将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<%- js_ex(theme.static_prefix.internal_js, 'boot.js') %>


================================================
FILE: layout/_partials/search.ejs
================================================
<div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold"><%= __('search.title') %></h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input"><%= __('search.keyword') %></label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>


================================================
FILE: layout/about.ejs
================================================
<%
page.layout = "about"
page.title = theme.about.title || __('about.title')
page.subtitle = theme.about.subtitle || __('about.subtitle')
page.banner_img = page.banner_img || theme.about.banner_img
page.banner_img_height = page.banner_img_height || theme.about.banner_img_height
page.banner_mask_alpha = page.banner_mask_alpha || theme.about.banner_mask_alpha
%>

<div class="text-center">
  <div class="about-info">
    <div class="about-name"><%- theme.about.name %></div>
    <div class="about-intro"><%- theme.about.introduce || theme.about.intro %></div>
    <div class="about-icons">
      <% for(const each of theme.about.icons || []) { %>
        <% if (!each.class) continue; %>
        <% var cls = each.class %>
        <% var isQr = each.qrcode %>
        <a <%= isQr ? '' : ('href=' + url_for(each.link)) %> class="<%= isQr ? 'qr-trigger' : '' %>
           <%= !isQr && each.tip ? 'hint--bottom hint--rounded' : '' %>"
           <% if (!isQr && each.tip) { %>aria-label="<%= each.tip %>"<% } %>
           target="<%= isQr ? '_self' : '_blank' %>"
        >
          <i class="<%= cls %>" aria-hidden="true"></i>
          <% if (isQr) { %>
            <img class="qr-img" src="<%= url_for(each.qrcode) %>" alt="qrcode" />
          <% } %>
        </a>
      <% } %>
    </div>
  </div>
</div>

<article class="about-content page-content mt-5">
  <div class="markdown-body">
    <%- page.content %>
  </div>

  <% if(page.comments) { %>
    <!-- Comments -->
    <article id="comments">
      <% var type %>
      <% if (typeof page.comment === 'string' && page.comment !== '') { %>
        <% type = '_partials/comments/' + page.comment %>
      <% } else { %>
        <% type = '_partials/comments/' + theme.post.comments.type %>
      <% } %>
      <%- partial(type) %>
    </article>
  <% } %>
</article>

<%- partial('_partials/markdown-plugins') %>


================================================
FILE: layout/archive.ejs
================================================
<%
page.layout = "archive"
page.title = theme.archive.title || __('archive.title')
page.subtitle = theme.archive.subtitle || __('archive.subtitle')
page.banner_img = theme.archive.banner_img
page.banner_img_height = theme.archive.banner_img_height
page.banner_mask_alpha = theme.archive.banner_mask_alpha
%>

<%- partial('_partials/archive-list.ejs', { params: { key: page.layout, postTotal: site.posts.length } }) %>


================================================
FILE: layout/categories.ejs
================================================
<%
page.layout = 'categories'
page.title = theme.category.title || __('category.title')
page.subtitle = theme.category.subtitle || __('category.subtitle')
page.banner_img = theme.category.banner_img
page.banner_img_height = theme.category.banner_img_height
page.banner_mask_alpha = theme.category.banner_mask_alpha
var orderBy = theme.category.order_by || 'name'
var curCats = site.categories.find({ parent: { $exists: false } }).sort(orderBy).filter(cat => cat.length)
%>

<%- partial('_partials/category-list', {
  curCats: curCats,
  params: {
    orderBy: orderBy,
    postLimit  : theme.category.post_limit,
    postOrderBy: theme.category.post_order_by || config.index_generator.order_by
  }
}) %>


================================================
FILE: layout/category.ejs
================================================
<%
page.layout = "category"
page.title = [__('category.title'), page.category].join(" - ")
page.subtitle = [__('category.subtitle'), page.category].join(" - ")
page.banner_img = theme.category.banner_img
page.banner_img_height = theme.category.banner_img_height
page.banner_mask_alpha = theme.category.banner_mask_alpha

var cat = site.categories.find({name: page.category}).filter(cat => cat.length).data[0]
%>

<%- partial('_partials/archive-list.ejs', { params: { key: page.layout, postTotal: cat ? cat.posts.length : 0 } }) %>


================================================
FILE: layout/index.ejs
================================================
<%
if (theme.index.slogan.enable) {
  page.subtitle = theme.index.slogan.text || config.subtitle || ''
}
page.banner_img = theme.index.banner_img
page.banner_img_height = theme.index.banner_img_height
page.banner_mask_alpha = theme.index.banner_mask_alpha
%>

<h1 style="display: none"><%= config.title %></h1>
<% page.posts.each(function (post) { %>
  <div class="row mx-auto index-card">
    <% var post_url = url_for(post.path), index_img = post.index_img || theme.post.default_index_img %>
    <% if (index_img) { %>
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="<%= post_url %>" target="<%- theme.index.post_url_target %>">
          <img src="<%= url_for(index_img) %>" alt="<%= post.title %>">
        </a>
      </div>
    <% } %>
    <article class="col-12 col-md-<%= index_img ? '8' : '12' %> mx-auto index-info">
      <h2 class="index-header">
        <% if (theme.index.post_sticky && theme.index.post_sticky.enable && post.sticky > 0) { %>
          <i class="index-pin <%= theme.index.post_sticky && theme.index.post_sticky.icon %>" title="Pin on top"></i>
        <% } %>
        <a href="<%= post_url %>" target="<%- theme.index.post_url_target %>">
          <%= post.title %>
        </a>
      </h2>

      <% var excerpt = post.description || post.excerpt || (theme.index.auto_excerpt.enable && !post.encrypt && post.content) %>
      <a class="index-excerpt <%= index_img ? '' : 'index-excerpt__noimg' %>" href="<%= post_url %>" target="<%- theme.index.post_url_target %>">
        <div>
          <%- strip_html(excerpt).substring(0, 200).trim().replace(/\n/g, ' ') %>
        </div>
      </a>

      <div class="index-btm post-metas">
        <% if (theme.index.post_meta.date) { %>
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="<%= full_date(post.date, 'YYYY-MM-DD HH:mm') %>" pubdate>
              <%- date(post.date, config.date_format) %>
            </time>
          </div>
        <% } %>
        <% if (theme.index.post_meta.category && post.categories.length > 0) { %>
          <div class="post-meta mr-3 d-flex align-items-center">
            <i class="iconfont icon-category"></i>
            <%- partial('_partials/category-chains', { categories: post.categories, limit: 1 }) %>
          </div>
        <% } %>
        <% if (theme.index.post_meta.tag && post.tags.length > 0) { %>
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            <% post.tags.each(function(tag){ %>
              <a href="<%= url_for(tag.path) %>">#<%- tag.name %></a>
            <% }) %>
          </div>
        <% } %>
      </div>
    </article>
  </div>
<% }) %>

<%- partial('_partials/paginator') %>


================================================
FILE: layout/layout.ejs
================================================
<%
var banner_img_height = parseFloat(page.banner_img_height || theme.index.banner_img_height)
var colorSchema = theme.dark_mode && theme.dark_mode.enable && theme.dark_mode.default ? theme.dark_mode.default : ''
%>

<!DOCTYPE html>
<html lang="<%= config.language %>" <%= colorSchema ? `data-default-color-scheme=${colorSchema}` : '' %>>

<%- partial('_partials/head.ejs') %>

<body>
  <%- inject_point('bodyBegin') %>

  <header>
    <%- inject_point('header') %>
  </header>

  <main>
    <% if(is_post() || page.layout === '404') { %>
      <%- body %>
    <% } else { %>
      <div class="container nopadding-x-md">
        <div id="board"
          <%- banner_img_height >= 100 && theme.banner && theme.banner.parallax ? 'style="margin-top: 0"' : '' %>>
          <% if(page.layout === 'about') { %>
            <div class="about-avatar">
              <img src="<%= url_for(theme.about.avatar) %>" class="img-fluid" alt="avatar">
            </div>
          <% } %>
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                <%- body %>
              </div>
            </div>
          </div>
        </div>
      </div>
    <% } %>

    <% if (theme.scroll_top_arrow.enable) { %>
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    <% } %>

    <% if (theme.search.enable) { %>
      <%- partial('_partials/search.ejs') %>
    <% } %>

    <% if (theme.custom_html) { %>
      <div class="col-lg-7 mx-auto nopadding-x-md">
        <div class="container custom mx-auto">
          <%- theme.custom_html %>
        </div>
      </div>
    <% } %>
  </main>

  <footer>
    <%- inject_point('footer') %>
  </footer>

  <!-- Scripts -->
  <%- partial('_partials/scripts.ejs') %>

  <%- inject_point('bodyEnd') %>

  <noscript>
    <div class="noscript-warning"><%- __('noscript_warning') %></div>
  </noscript>
</body>
</html>


================================================
FILE: layout/links.ejs
================================================
<%
page.layout = "links"
page.title = theme.links.title || __('links.title')
page.subtitle = theme.links.subtitle || __('links.subtitle')
page.banner_img = theme.links.banner_img
page.banner_img_height = theme.links.banner_img_height
page.banner_mask_alpha = theme.links.banner_mask_alpha
page.comment = theme.links.comments.type
%>

<div class="row links">
  <% for(const each of theme.links.items || []) { %>
    <% if (!each.title || !each.link) continue %>
    <div class="card col-lg-4 col-md-6 col-sm-12">
      <a href="<%= url_for(each.link) %>" class="card-body hover-with-bg" target="_blank" rel="noopener">
        <div class="card-content">
          <% if (each.avatar || each.image) { %>
            <div class="link-avatar my-auto">
              <img src="<%= url_for(each.avatar || each.image) %>" alt="<%= each.title %>"
                   onerror="this.onerror=null; this.src=this.srcset='<%= url_for(theme.links.onerror_avatar) %>'"/>
            </div>
          <% } %>
          <div class="link-text">
            <div class="link-title"><%- each.title %></div>
            <div class="link-intro"><%- each.intro || '' %></div>
          </div>
        </div>
      </a>
    </div>
  <% } %>
</div>

<% if(theme.links.custom && theme.links.custom.enable && theme.links.custom.content) { %>
  <!-- Custom -->
  <div class="custom mx-auto">
    <%- theme.links.custom.content %>
  </div>
<% } %>

<%- inject_point('linksComments') %>


================================================
FILE: layout/page.ejs
================================================
<%
var layout = page.layout
page.title = page.title || __(`${ layout }.title`)
page.subtitle = page.subtitle || page.title || __(`${ layout }.subtitle`)
page.banner_img = page.banner_img || theme.page.banner_img
page.banner_img_height = page.banner_img_height || theme.page.banner_img_height
page.banner_mask_alpha = page.banner_mask_alpha || theme.page.banner_mask_alpha
%>

<article class="page-content">
  <%- page.content %>

  <%- inject_point('pageComments') %>
</article>

<% if (/<[^>]+? class="[^"]*?markdown-body[^"]*?"/gims.test(page.content)) { %>
  <%- partial('_partials/markdown-plugins') %>
<% } %>


================================================
FILE: layout/post.ejs
================================================
<%
page.banner_img = page.banner_img || theme.post.banner_img
page.banner_img_height = page.banner_img_height || theme.post.banner_img_height
page.banner_mask_alpha = page.banner_mask_alpha || theme.post.banner_mask_alpha
%>

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      <%- inject_point('postLeft') %>
    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <h1 id="seo-header"><%= page.subtitle || page.title %></h1>
            <% if (theme.post.updated.enable && theme.post.updated && compare_date(page.date, page.updated)) { %>
              <p id="updated-time" class="note note-<%= theme.post.updated.note_class || 'info' %>" style="<%= theme.post.updated.relative ? 'display: none' : '' %>">
                <% if (theme.post.updated.relative) { %>
                  <% if (theme.post.updated.content) { %>
                    <!-- compatible with older versions-->
                    <%- theme.post.updated.content %><%- date(page.updated, 'YYYY-MM-DDTHH:mm:ssZ') %>
                  <% } else { %>
                    <%- __('post.updated', date(page.updated, 'YYYY-MM-DDTHH:mm:ssZ')) %>
                  <% } %>
                  <%- partial('_partials/plugins/moment.ejs') %>
                <% } else { %>
                  <% if (theme.post.updated.content) { %>
                    <!-- compatible with older versions-->
                    <%- theme.post.updated.content %><%- date(page.updated, theme.post.updated.date_format) %>
                  <% } else { %>
                    <%- __('post.updated', date(page.updated, theme.post.updated.date_format)) %>
                  <% } %>
                <% } %>
              </p>
            <% } %>
            <% if (page.encrypt === true) { %>
              <%- inject_point('postMarkdownBegin') %>
              <%- page.content %>
              <%- partial('_partials/plugins/encrypt') %>
              <%- inject_point('postMarkdownEnd') %>
            <% } else { %>
              <div class="markdown-body">
                <%- inject_point('postMarkdownBegin') %>
                <%- page.content %>
                <%- inject_point('postMarkdownEnd') %>
              </div>
            <% } %>
            <hr/>
            <div>
              <%- inject_point('postMetaBottom') %>

              <%- inject_point('postCopyright') %>

              <% if (theme.post.prev_next.enable && !page.hide) { %>
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    <% const prev = prev_post(page) %>
                    <% if (prev) { %>
                      <a href="<%= url_for(prev.path) %>" title="<%= prev.title %>">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile"><%= prev.title %></span>
                        <span class="visible-mobile"><%- __('post.prev_post') %></span>
                      </a>
                    <% } %>
                  </article>
                  <article class="post-next col-6">
                    <% const next = next_post(page) %>
                    <% if (next) { %>
                      <a href="<%= url_for(next.path) %>" title="<%= next.title %>">
                        <span class="hidden-mobile"><%= next.title %></span>
                        <span class="visible-mobile"><%- __('post.next_post') %></span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    <% } %>
                  </article>
                </div>
              <% } %>
            </div>

            <%- inject_point('postComments') %>
          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      <%- inject_point('postRight') %>
    </div>
  </div>
</div>

<%- partial('_partials/markdown-plugins') %>

<% if(theme.post.custom && theme.post.custom.enable && theme.post.custom.content && page.custom !== false) { %>
  <!-- Custom -->
  <div class="col-lg-7 mx-auto nopadding-x-md">
    <div class="container custom post-custom mx-auto">
      <%- page.custom || theme.post.custom.content %>
    </div>
  </div>
<% } %>


================================================
FILE: layout/tag.ejs
================================================
<%
page.layout = "tag"
page.title = [__('tag.title'), page.tag].join(" - ")
page.subtitle = [__('tag.subtitle'), page.tag].join(" - ")
page.banner_img = theme.tag.banner_img
page.banner_img_height = theme.tag.banner_img_height
page.banner_mask_alpha = theme.tag.banner_mask_alpha

var tag = site.tags.find({name: page.tag}).filter(tag => tag.length).data[0]
%>

<%- partial('_partials/archive-list.ejs', { params: { key: page.layout, postTotal: tag ? tag.posts.length : 0 } }) %>


================================================
FILE: layout/tags.ejs
================================================
<%
page.layout = "tags"
page.title = theme.tag.title || __('tag.title')
page.subtitle = theme.tag.subtitle || __('tag.subtitle')
page.banner_img = theme.tag.banner_img
page.banner_img_height = theme.tag.banner_img_height
page.banner_mask_alpha = theme.tag.banner_mask_alpha

var min_font = theme.tag.tagcloud.min_font || 15
var max_font = theme.tag.tagcloud.max_font || 30
var unit = theme.tag.tagcloud.unit || 'px'
var start_color = theme.tag.tagcloud.start_color || '#BBBBEE'
var end_color = theme.tag.tagcloud.end_color || '#337ab7'
%>

<div class="text-center tagcloud">
  <%- tagcloud({
    min_font: min_font,
    max_font: max_font,
    amount: 999,
    unit: unit,
    color: true,
    start_color,
    end_color
  }) %>
</div>


================================================
FILE: package.json
================================================
{
  "name": "hexo-theme-fluid",
  "version": "1.9.9",
  "description": "An elegant Material-Design theme for Hexo.",
  "main": "package.json",
  "files": [
    "languages",
    "layout",
    "scripts",
    "source",
    "_config.yml"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/fluid-dev/hexo-theme-fluid.git"
  },
  "keywords": [
    "hexo",
    "theme",
    "fluid",
    "material"
  ],
  "author": "Fluid-dev (https://github.com/fluid-dev)",
  "license": "GPL-V3",
  "bugs": {
    "url": "https://github.com/fluid-dev/hexo-theme-fluid/issues"
  },
  "homepage": "https://hexo.fluid-dev.com/docs",
  "engines": {
    "node": ">=8.10.0"
  },
  "peerDependencies": {
    "nunjucks": "^3.0.0"
  }
}


================================================
FILE: scripts/events/index.js
================================================
/* global hexo */

'use strict';

hexo.on('generateBefore', () => {
  require('./lib/merge-configs')(hexo);
  require('./lib/random-banner')(hexo);
  require('./lib/compatible-configs')(hexo);
  require('./lib/injects')(hexo);
  require('./lib/highlight')(hexo);
  require('./lib/lazyload')(hexo);
  require('./lib/footnote')(hexo);
});

hexo.on('generateAfter', () => {
  require('./lib/hello')(hexo);
});


================================================
FILE: scripts/events/lib/compatible-configs.js
================================================
'use strict';

module.exports = (hexo) => {
  const isZh = hexo.theme.i18n.languages[0].search(/zh-CN/i) !== -1;

  // Breaking change at v1.8.3 2020/09/03
  if (hexo.theme.config.highlight && !hexo.theme.config.code) {
    if (isZh) {
      hexo.log.warn('[Fluid] 检测到弃用的配置项: "highlight" 已被修改为 "code:highlight",请根据新版本更新');
    } else {
      hexo.log.warn('[Fluid] Deprecated config detected: "highlight" has been modified to "code:highlight", please update according to the release.');
    }
    hexo.theme.config.code = {
      copy_btn : hexo.theme.config.highlight.copy_btn,
      highlight: {
        enable     : hexo.theme.config.highlight.enable,
        lib        : 'highlightjs',
        highlightjs: {
          style: hexo.theme.config.highlight.style
        },
        prismjs: {
          style     : 'default',
          preprocess: true
        }
      }
    };
  }

  // Some configs that require hexo >= 5.0
  if (parseInt(hexo.version[0], 10) < 5) {
    if (isZh) {
      hexo.log.warn('[Fluid] 检测到 Hexo 版本低于 5.0.0,部分功能可能会受影响');
    } else {
      hexo.log.warn('[Fluid] Hexo version < 5.0.0 detected, some features may not be available.');
    }
    if (hexo.theme.config.code.highlight.lib === 'prismjs' && hexo.theme.config.code.highlight.prismjs.preprocess) {
      hexo.theme.config.code.highlight.prismjs.preprocess = false;
    }
  }

  // Breaking change at v1.8.7 2020/12/02
  if (hexo.theme.config.index.post_default_img) {
    if (isZh) {
      hexo.log.warn('[Fluid] 检测到弃用的配置项: "index:post_default_img" 已被修改为 "post:default_index_img",请根据新版本更新');
    } else {
      hexo.log.warn('[Fluid] Deprecated config detected: "index:post_default_img" has been modified to "post:default_index_img", please update according to the release.');
    }
    hexo.theme.config.post.default_index_img = hexo.theme.config.index.post_default_img;
  }

  // Breaking change at v1.8.7 2020/12/10
  if (hexo.theme.config.banner_parallax) {
    if (isZh) {
      hexo.log.warn('[Fluid] 检测到弃用的配置项: "banner_parallax" 已被修改为 "banner:parallax",请根据新版本更新');
    } else {
      hexo.log.warn('[Fluid] Deprecated config detected: "banner_parallax" has been modified to "banner:parallax", please update according to the release.');
    }
    if (!hexo.theme.config.banner) {
      hexo.theme.config.banner = {};
    }
    hexo.theme.config.banner.parallax = hexo.theme.config.banner_parallax;
  }

  // Breaking change at v1.8.11 2021/05/14
  if (hexo.theme.config.valine.appid) {
    hexo.theme.config.valine.appId = hexo.theme.config.valine.appid;
  }
  if (hexo.theme.config.valine.appkey) {
    hexo.theme.config.valine.appKey = hexo.theme.config.valine.appkey;
  }
};


================================================
FILE: scripts/events/lib/footnote.js
================================================
'use strict';

const { stripHTML } = require('hexo-util');

function escapeAttr(text) {
  return text
    .replace(/&/g, '&amp;')
    .replace(/"/g, '&quot;')
    .replace(/'/g, '&#39;')
    .replace(/</g, '&lt;')
    .replace(/>/g, '&gt;');
}

// Register footnotes filter
module.exports = (hexo) => {
  const config = hexo.theme.config;
  if (config.post.footnote.enable) {
    hexo.extend.filter.register('before_post_render', (page) => {
      if (page.footnote !== false) {
        page.content = renderFootnotes(page.content, page.footnote);
      }
      return page;
    });
  }

  /**
   * Modified from https://github.com/kchen0x/hexo-reference
   *
   * Render markdown footnotes
   * @param {String} text
   * @param {String} header
   * @returns {String} text
   */
  function renderFootnotes(text, header) {
    const reFootnoteContent = /\[\^(\d+)]: ?([\S\s]+?)(?=\[\^(?:\d+)]|\n\n|$)/g;
    const reInlineFootnote = /\[\^(\d+)]\((.+?)\)/g;
    const reFootnoteIndex = /\[\^(\d+)]/g;
    const reCodeBlock = /<pre>[\s\S]*?<\/pre>/g;

    let footnotes = [];
    let html = '';
    let codeBlocks = [];

    // extract code block
    text = text.replace(reCodeBlock, function(match) {
      codeBlocks.push(match);
      return 'CODE_BLOCK_PLACEHOLDER';
    });

    // threat all inline footnotes
    text = text.replace(reInlineFootnote, function(match, index, content) {
      footnotes.push({
        index  : index,
        content: content ? content.trim() : ''
      });
      // remove content of inline footnote
      return '[^' + index + ']';
    });

    // threat all footnote contents
    text = text.replace(reFootnoteContent, function(match, index, content) {
      footnotes.push({
        index  : index,
        content: content ? content.trim() : ''
      });
      // remove footnote content
      return '';
    });

    // create map for looking footnotes array
    function createLookMap(field) {
      let map = {};
      for (let i = 0; i < footnotes.length; i++) {
        const item = footnotes[i];
        const key = item[field];
        map[key] = item;
      }
      return map;
    }
    const indexMap = createLookMap('index');

    // render (HTML) footnotes reference
    text = text.replace(reFootnoteIndex,
      function(match, index) {
        if (!indexMap[index]) {
          return match;
        }
        const tooltip = escapeAttr(stripHTML(indexMap[index].content));
        return '<sup id="fnref:' + index + '" class="footnote-ref">'
          + '<a href="#fn:' + index + '" rel="footnote">'
          + '<span class="hint--top hint--rounded" aria-label="'
          + tooltip
          + '">[' + index + ']</span></a></sup>';
      });

    // sort footnotes by their index
    footnotes.sort(function(a, b) {
      return a.index - b.index;
    });

    // render footnotes (HTML)
    footnotes.forEach(function(item) {
      html += '<li><span id="fn:' + item.index + '" class="footnote-text">';
      html += '<span>';
      const fn = hexo.render.renderSync({ text: item.content, engine: 'markdown' });
      html += fn.replace(/(<p>)|(<\/p>)/g, '').replace(/<br>/g, '');
      html += '<a href="#fnref:' + item.index + '" rev="footnote" class="footnote-backref"> ↩</a></span></span></li>';
    });

    // add footnotes at the end of the content
    if (footnotes.length) {
      text += '<section class="footnotes">';
      text += header || config.post.footnote.header || '';
      text += '<div class="footnote-list">';
      text += '<ol>' + html + '</ol>';
      text += '</div></section>';
    }

    // restore code block
    text = text.replace(/CODE_BLOCK_PLACEHOLDER/g, function() {
      return codeBlocks.shift();
    });

    return text;
  }
};


================================================
FILE: scripts/events/lib/hello.js
================================================
'use strict';

module.exports = (hexo) => {
  if (hexo.theme.has_hello) {
    return;
  }

  if (hexo.theme.i18n.languages[0].search(/zh-CN/i) !== -1) {
    hexo.log.info(`
------------------------------------------------
|                                              |
|     ________  __            _        __      |
|    |_   __  |[  |          (_)      |  ]     |
|      | |_ \\_| | | __   _   __   .--.| |      |
|      |  _|    | |[  | | | [  |/ /'\`\\' |      |
|     _| |_     | | | \\_/ |, | || \\__/  |      |
|    |_____|   [___]'.__.'_/[___]'.__.;__]     |
|                                              |
|             感谢使用 Fluid 主题              |
|    文档: https://hexo.fluid-dev.com/docs/    |
|                                              |
------------------------------------------------
`);
  } else {
    hexo.log.info(`
------------------------------------------------
|                                              |
|     ________  __            _        __      |
|    |_   __  |[  |          (_)      |  ]     |
|      | |_ \\_| | | __   _   __   .--.| |      |
|      |  _|    | |[  | | | [  |/ /'\`\\' |      |
|     _| |_     | | | \\_/ |, | || \\__/  |      |
|    |_____|   [___]'.__.'_/[___]'.__.;__]     |
|                                              |
|       Thank you for using Fluid theme        |
|   Docs: https://hexo.fluid-dev.com/docs/en/  |
|                                              |
------------------------------------------------
`);
  }

  hexo.theme.has_hello = true;
};


================================================
FILE: scripts/events/lib/highlight.js
================================================
'use strict';

let css;
try {
  css = require('css');
} catch (error) {
  if (error.code === 'MODULE_NOT_FOUND') {
    css = require('@adobe/css-tools');
  } else {
    throw error;
  }
}

const fs = require('fs');
const objUtil = require('../../utils/object');
const resolveModule = require('../../utils/resolve');

module.exports = (hexo) => {

  function resolveHighlight(name) {
    if (!name) {
      name = 'github-gist';
    }
    const cssName = name.toLowerCase().replace(/([^0-9])\s+?([^0-9])/g, '$1-$2').replace(/\s/g, '');
    let file = resolveModule('highlight.js', `styles/${cssName}.css`);
    if (cssName === 'github-gist' && !fs.existsSync(file)) {
      file = resolveModule('highlight.js', 'styles/github.css');
    }
    let backgroundColor;
    if (fs.existsSync(file)) {
      const content = fs.readFileSync(file, 'utf8');
      css.parse(content).stylesheet.rules
        .filter(rule => rule.type === 'rule' && rule.selectors.some(selector => selector.en
Download .txt
gitextract_k6i4pnk8/

├── .editorconfig
├── .eslintrc
├── .gitattributes
├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.md
│   │   ├── bug_report_zh.md
│   │   ├── feature_request.md
│   │   ├── feature_request_zh.md
│   │   ├── question.md
│   │   └── question_zh.md
│   └── workflows/
│       ├── cr.yaml
│       ├── limit.yaml
│       └── publish.yaml
├── .gitignore
├── LICENSE
├── README.md
├── README_en.md
├── _config.yml
├── languages/
│   ├── de.yml
│   ├── en.yml
│   ├── eo.yml
│   ├── es.yml
│   ├── ja.yml
│   ├── ru.yml
│   ├── zh-CN.yml
│   ├── zh-HK.yml
│   └── zh-TW.yml
├── layout/
│   ├── 404.ejs
│   ├── _partials/
│   │   ├── archive-list.ejs
│   │   ├── category-chains.ejs
│   │   ├── category-list.ejs
│   │   ├── comments/
│   │   │   ├── changyan.ejs
│   │   │   ├── cusdis.ejs
│   │   │   ├── discuss.ejs
│   │   │   ├── disqus.ejs
│   │   │   ├── giscus.ejs
│   │   │   ├── gitalk.ejs
│   │   │   ├── livere.ejs
│   │   │   ├── remark42.ejs
│   │   │   ├── twikoo.ejs
│   │   │   ├── utterances.ejs
│   │   │   ├── valine.ejs
│   │   │   └── waline.ejs
│   │   ├── comments.ejs
│   │   ├── css.ejs
│   │   ├── footer/
│   │   │   ├── beian.ejs
│   │   │   └── statistics.ejs
│   │   ├── footer.ejs
│   │   ├── head.ejs
│   │   ├── header/
│   │   │   ├── banner.ejs
│   │   │   └── navigation.ejs
│   │   ├── header.ejs
│   │   ├── markdown-plugins.ejs
│   │   ├── paginator.ejs
│   │   ├── plugins/
│   │   │   ├── analytics.ejs
│   │   │   ├── anchorjs.ejs
│   │   │   ├── code-widget.ejs
│   │   │   ├── encrypt.ejs
│   │   │   ├── fancybox.ejs
│   │   │   ├── highlight.ejs
│   │   │   ├── math.ejs
│   │   │   ├── mermaid.ejs
│   │   │   ├── moment.ejs
│   │   │   ├── nprogress.ejs
│   │   │   └── typed.ejs
│   │   ├── post/
│   │   │   ├── category-bar.ejs
│   │   │   ├── copyright.ejs
│   │   │   ├── meta-bottom.ejs
│   │   │   ├── meta-top.ejs
│   │   │   ├── sidebar-left.ejs
│   │   │   ├── sidebar-right.ejs
│   │   │   └── toc.ejs
│   │   ├── scripts.ejs
│   │   └── search.ejs
│   ├── about.ejs
│   ├── archive.ejs
│   ├── categories.ejs
│   ├── category.ejs
│   ├── index.ejs
│   ├── layout.ejs
│   ├── links.ejs
│   ├── page.ejs
│   ├── post.ejs
│   ├── tag.ejs
│   └── tags.ejs
├── package.json
├── scripts/
│   ├── events/
│   │   ├── index.js
│   │   └── lib/
│   │       ├── compatible-configs.js
│   │       ├── footnote.js
│   │       ├── hello.js
│   │       ├── highlight.js
│   │       ├── injects.js
│   │       ├── lazyload.js
│   │       ├── merge-configs.js
│   │       └── random-banner.js
│   ├── filters/
│   │   ├── default-injects.js
│   │   ├── locals.js
│   │   └── post-filter.js
│   ├── generators/
│   │   ├── index-generator.js
│   │   ├── local-search.js
│   │   └── pages.js
│   ├── helpers/
│   │   ├── date.js
│   │   ├── engine.js
│   │   ├── export-config.js
│   │   ├── import.js
│   │   ├── injects.js
│   │   ├── page.js
│   │   ├── scope.js
│   │   ├── url.js
│   │   ├── utils.js
│   │   └── wordcount.js
│   ├── tags/
│   │   ├── button.js
│   │   ├── checkbox.js
│   │   ├── fold.js
│   │   ├── group-image.js
│   │   ├── label.js
│   │   ├── mermaid.js
│   │   └── note.js
│   └── utils/
│       ├── compare-versions.js
│       ├── crypto.js
│       ├── object.js
│       ├── resolve.js
│       └── url-join.js
└── source/
    ├── css/
    │   ├── _functions/
    │   │   └── base.styl
    │   ├── _mixins/
    │   │   └── base.styl
    │   ├── _pages/
    │   │   ├── _about/
    │   │   │   └── about.styl
    │   │   ├── _archive/
    │   │   │   └── archive.styl
    │   │   ├── _base/
    │   │   │   ├── _widget/
    │   │   │   │   ├── anchorjs.styl
    │   │   │   │   ├── banner.styl
    │   │   │   │   ├── board.styl
    │   │   │   │   ├── code-widget.styl
    │   │   │   │   ├── copyright.styl
    │   │   │   │   ├── footer.styl
    │   │   │   │   ├── footnote.styl
    │   │   │   │   ├── header.styl
    │   │   │   │   ├── modal.styl
    │   │   │   │   ├── ngrogress.styl
    │   │   │   │   ├── noscript.styl
    │   │   │   │   ├── pagination.styl
    │   │   │   │   ├── qrcode.styl
    │   │   │   │   ├── scroll-btn.styl
    │   │   │   │   ├── search.styl
    │   │   │   │   └── toc.styl
    │   │   │   ├── base.styl
    │   │   │   ├── color-schema.styl
    │   │   │   ├── inline.styl
    │   │   │   ├── keyframes.styl
    │   │   │   └── print.styl
    │   │   ├── _category/
    │   │   │   ├── category-bar.styl
    │   │   │   ├── category-chain.styl
    │   │   │   └── category-list.styl
    │   │   ├── _index/
    │   │   │   └── index.styl
    │   │   ├── _links/
    │   │   │   └── links.styl
    │   │   ├── _post/
    │   │   │   ├── comment.styl
    │   │   │   ├── highlight.styl
    │   │   │   ├── markdown.styl
    │   │   │   ├── post-page.styl
    │   │   │   └── post-tag.styl
    │   │   ├── _tag/
    │   │   │   ├── tag.styl
    │   │   │   └── tags.styl
    │   │   └── pages.styl
    │   ├── _variables/
    │   │   └── base.styl
    │   ├── gitalk.css
    │   ├── highlight-dark.styl
    │   ├── highlight.styl
    │   └── main.styl
    ├── js/
    │   ├── boot.js
    │   ├── color-schema.js
    │   ├── events.js
    │   ├── img-lazyload.js
    │   ├── leancloud.js
    │   ├── local-search.js
    │   ├── openkounter.js
    │   ├── plugins.js
    │   ├── umami-view.js
    │   └── utils.js
    └── xml/
        └── local-search.xml
Download .txt
SYMBOL INDEX (57 symbols across 14 files)

FILE: scripts/events/lib/footnote.js
  function escapeAttr (line 5) | function escapeAttr(text) {
  function renderFootnotes (line 34) | function renderFootnotes(text, header) {

FILE: scripts/events/lib/highlight.js
  function resolveHighlight (line 20) | function resolveHighlight(name) {
  function resolvePrism (line 50) | function resolvePrism(name) {

FILE: scripts/events/lib/injects.js
  class StylusInject (line 12) | class StylusInject {
    method constructor (line 14) | constructor(base_dir) {
    method push (line 19) | push(file) {
  class ViewInject (line 26) | class ViewInject {
    method constructor (line 28) | constructor(base_dir) {
    method raw (line 33) | raw(name, raw, ...args) {
    method file (line 41) | file(name, file, ...args) {
  function initInject (line 77) | function initInject(base_dir) {

FILE: scripts/events/lib/random-banner.js
  constant IMAGE_EXTS (line 6) | const IMAGE_EXTS = new Set([

FILE: scripts/tags/group-image.js
  constant DEFAULT_LAYOUTS (line 5) | const DEFAULT_LAYOUTS = {

FILE: scripts/tags/mermaid.js
  function mermaid (line 5) | function mermaid(args, content) {

FILE: scripts/utils/compare-versions.js
  function indexOrEnd (line 18) | function indexOrEnd(str, q) {
  function split (line 22) | function split(v) {
  function tryParse (line 30) | function tryParse(v) {
  function validate (line 34) | function validate(version) {
  function compareVersions (line 43) | function compareVersions(v1, v2) {
  function validateOperator (line 94) | function validateOperator(op) {

FILE: source/js/color-schema.js
  function setLS (line 16) | function setLS(k, v) {
  function removeLS (line 22) | function removeLS(k) {
  function getLS (line 28) | function getLS(k) {
  function getSchemaFromHTML (line 36) | function getSchemaFromHTML() {
  function getSchemaFromCSSMediaQuery (line 44) | function getSchemaFromCSSMediaQuery() {
  function resetSchemaAttributeAndLS (line 54) | function resetSchemaAttributeAndLS() {
  function getDefaultColorSchema (line 64) | function getDefaultColorSchema() {
  function applyCustomColorSchemaSettings (line 84) | function applyCustomColorSchemaSettings(schema) {
  function getIconClass (line 117) | function getIconClass(scheme) {
  function toggleCustomColorSchema (line 121) | function toggleCustomColorSchema() {
  function setButtonIcon (line 147) | function setButtonIcon(schema) {
  function setHighlightCSS (line 192) | function setHighlightCSS(schema) {
  function setApplications (line 225) | function setApplications(schema) {

FILE: source/js/leancloud.js
  function getRecord (line 6) | function getRecord(Counter, target) {
  function increment (line 38) | function increment(Counter, incrArr) {
  function buildIncrement (line 56) | function buildIncrement(objectId) {
  function validHost (line 70) | function validHost() {
  function validUV (line 81) | function validUV() {
  function addCount (line 94) | function addCount(Counter) {
  function fetchData (line 163) | function fetchData(api_server) {

FILE: source/js/local-search.js
  function localSearchFunc (line 5) | function localSearchFunc(path, searchSelector, resultSelector) {
  function localSearchReset (line 128) | function localSearchReset(searchSelector, resultSelector) {

FILE: source/js/openkounter.js
  function getRecord (line 14) | function getRecord(target) {
  function increment (line 34) | function increment(incrArr) {
  function buildIncrement (line 64) | function buildIncrement(objectId) {
  function validHost (line 69) | function validHost() {
  function validUV (line 81) | function validUV() {
  function addCount (line 102) | function addCount() {

FILE: source/js/plugins.js
  method codeWidget (line 100) | codeWidget() {

FILE: source/js/umami-view.js
  function siteStats (line 39) | async function siteStats() {
  function pageStats (line 70) | async function pageStats(path) {

FILE: source/js/utils.js
  method listenDOMLoaded (line 18) | listenDOMLoaded(callback) {
  function waitInViewport (line 62) | function waitInViewport(element) {
  method getBackgroundLightness (line 180) | getBackgroundLightness(selectorOrElement) {
  method retry (line 197) | retry(handler, interval, times) {
  function Debouncer (line 216) | function Debouncer(callback) {
Condensed preview — 176 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (361K chars).
[
  {
    "path": ".editorconfig",
    "chars": 207,
    "preview": "# editorconfig.org\nroot = true\n\n[*]\nindent_style = space\nindent_size = 2\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_"
  },
  {
    "path": ".eslintrc",
    "chars": 4297,
    "preview": "{\n  \"extends\": [\n    \"eslint:recommended\"\n  ],\n  \"parserOptions\": {\n    \"ecmaVersion\": 2018\n  },\n  \"rules\": {\n    // Ove"
  },
  {
    "path": ".gitattributes",
    "chars": 31,
    "preview": "source/lib/* linguist-vendored\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "chars": 893,
    "preview": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ':bug: bug'\nassignees: ''\n---\n\n#### Mak"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report_zh.md",
    "chars": 794,
    "preview": "---\nname: Bug 报告\nabout: 创建一份 Bug 报告帮助我们优化产品\ntitle: ''\nlabels: ':bug: bug'\nassignees: ''\n---\n\n<!-- 必读 -->\n<!-- 1. 反馈 Bug "
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "chars": 740,
    "preview": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ':sparkles: enhancement'\nassignees: "
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request_zh.md",
    "chars": 373,
    "preview": "---\nname: 功能需求或优化\nabout: 创建一份合理可行的建议帮助我们提升产品\ntitle: ''\nlabels: ':sparkles: enhancement'\nassignees: ''\n---\n\n#### 如是功能需求,请"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/question.md",
    "chars": 348,
    "preview": "---\nname: Question\nabout: Ask a question about use, need help\n---\n\n#### Make sure\n- [ ] Upgrade the latest [release](htt"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/question_zh.md",
    "chars": 489,
    "preview": "---\nname: 问题求助\nabout: 提出一个使用过程中遇到的问题,需要得到帮助\n---\n\n<!-- 必读 -->\n<!-- 1. 功能如果不正常工作,请先检查自己的环境和 Hexo 插件,特别是从其他主题更换过来的用户 -->\n<!"
  },
  {
    "path": ".github/workflows/cr.yaml",
    "chars": 735,
    "preview": "name: Code Review Bot\n\npermissions:\n  contents: read\n  pull-requests: write\n\non:\n  pull_request:\n    types: [opened, reo"
  },
  {
    "path": ".github/workflows/limit.yaml",
    "chars": 318,
    "preview": "name: Limit PRs\n\non:\n  pull_request:\n    branches:\n      - master\n\njobs:\n  limit_master_pr:\n    runs-on: ubuntu-latest\n "
  },
  {
    "path": ".github/workflows/publish.yaml",
    "chars": 581,
    "preview": "name: Publish Package\n\non:\n  release:\n    types: [created]\n\npermissions:\n  contents: read\n  id-token: write\n\njobs:\n  bui"
  },
  {
    "path": ".gitignore",
    "chars": 88,
    "preview": ".idea/\n.vscode/\n.DS_Store\nThumbs.db\n\n*.log\n*.iml\nnode_modules/\npackage-lock.json\n*.lock\n"
  },
  {
    "path": "LICENSE",
    "chars": 35127,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 5414,
    "preview": "<p align=\"center\">\n  <img alt=\"Fluid Logo\" src=\"https://avatars2.githubusercontent.com/t/3419353?s=280&v=4\" width=\"128\">"
  },
  {
    "path": "README_en.md",
    "chars": 5294,
    "preview": "<p align=\"center\">\n  <img alt=\"Fluid Logo\" src=\"https://avatars2.githubusercontent.com/t/3419353?s=280&v=4\" width=\"128\">"
  },
  {
    "path": "_config.yml",
    "chars": 33395,
    "preview": "#---------------------------\n# Hexo Theme Fluid\n# Author: Fluid-dev\n# Github: https://github.com/fluid-dev/hexo-theme-fl"
  },
  {
    "path": "languages/de.yml",
    "chars": 1444,
    "preview": "name: 'Deutsch'\n\nhome:\n  menu: 'Startseite'\n  title: 'Startseite'\n\narchive:\n  menu: 'Archiv'\n  title: 'Archiv'\n  subtitl"
  },
  {
    "path": "languages/en.yml",
    "chars": 1288,
    "preview": "name: 'English'\n\nhome:\n  menu: 'Home'\n  title: 'Home'\n\narchive:\n  menu: 'Archives'\n  title: 'Archives'\n  subtitle: 'Arch"
  },
  {
    "path": "languages/eo.yml",
    "chars": 1313,
    "preview": "name: 'Esperanto'\n\nhome:\n  menu: 'Hejmpaĝo'\n  title: 'Hejmpaĝo'\n\narchive:\n  menu: 'Arkivoj'\n  title: 'Arkivoj'\n  subtitl"
  },
  {
    "path": "languages/es.yml",
    "chars": 1401,
    "preview": "name: 'Español'\n\nhome:\n  menu: 'Inicio'\n  title: 'Inicio'\n\narchive:\n  menu: 'Archivo'\n  title: 'Archivo'\n  subtitle: 'Ar"
  },
  {
    "path": "languages/ja.yml",
    "chars": 1141,
    "preview": "name: '日本語'\n\nhome:\n  menu: 'ホーム'\n  title: 'ホーム'\n\narchive:\n  menu: 'アーカイブ'\n  title: 'アーカイブ'\n  subtitle: 'アーカイブ'\n  post_to"
  },
  {
    "path": "languages/ru.yml",
    "chars": 1338,
    "preview": "name: 'Русский'\n\nhome:\n  menu: 'Главная'\n  title: 'Главная'\n\narchive:\n  menu: 'Архивы'\n  title: 'Архивы'\n  subtitle: 'Ар"
  },
  {
    "path": "languages/zh-CN.yml",
    "chars": 1012,
    "preview": "name: '简体中文'\n\nhome:\n  menu: '首页'\n  title: '首页'\n\narchive:\n  menu: '归档'\n  title: '归档'\n  subtitle: '归档'\n  post_total: '共计 %"
  },
  {
    "path": "languages/zh-HK.yml",
    "chars": 1015,
    "preview": "name: '繁體中文'\n\nhome:\n  menu: '首頁'\n  title: '首頁'\n\narchive:\n  menu: '歸檔'\n  title: '歸檔'\n  subtitle: '歸檔'\n  post_total: '共有 %"
  },
  {
    "path": "languages/zh-TW.yml",
    "chars": 1020,
    "preview": "name: '正體中文'\n\nhome:\n  menu: '首頁'\n  title: '首頁'\n\narchive:\n  menu: '歸檔'\n  title: '歸檔'\n  subtitle: '歸檔'\n  post_total: '共有 %"
  },
  {
    "path": "layout/404.ejs",
    "chars": 522,
    "preview": "<%\npage.layout = \"404\"\npage.title = theme.page404.title || __('page404.title')\npage.subtitle = theme.page404.subtitle ||"
  },
  {
    "path": "layout/_partials/archive-list.ejs",
    "chars": 601,
    "preview": "<div class=\"list-group\">\n  <p class=\"h4\"><%= __(params.key + '.post_total', params.postTotal) %></p>\n  <hr>\n  <% var dat"
  },
  {
    "path": "layout/_partials/category-chains.ejs",
    "chars": 795,
    "preview": "<% function render_category_chain(cat) { %>\n  <a href=\"<%= url_for(cat.path) %>\" class=\"category-chain-item\"><%= cat.nam"
  },
  {
    "path": "layout/_partials/category-list.ejs",
    "chars": 2940,
    "preview": "<% function render_categories(curCats, params = {}, depth = 0) { %>\n  <% return curCats.each((cat) => { %>\n    <% var su"
  },
  {
    "path": "layout/_partials/comments/changyan.ejs",
    "chars": 454,
    "preview": "<% if (theme.changyan.appid) { %>\n  <div id=\"SOHUCS\" sid='<%= page.permalink %>'></div>\n  <script type=\"text/javascript\""
  },
  {
    "path": "layout/_partials/comments/cusdis.ejs",
    "chars": 2128,
    "preview": "<% if (theme.cusdis.host && theme.cusdis.app_id) { %>\n  <div class=\"cusdis\" style=\"width:100%; overflow:visible; min-hei"
  },
  {
    "path": "layout/_partials/comments/discuss.ejs",
    "chars": 617,
    "preview": "<% if (theme.discuss && theme.discuss.serverURLs) { %>\n  <div id=\"discuss-comments\"></div>\n  <script type=\"text/javascri"
  },
  {
    "path": "layout/_partials/comments/disqus.ejs",
    "chars": 1563,
    "preview": "<% if (theme.disqus.shortname) { %>\n  <div class=\"disqus\" style=\"width:100%\">\n    <div id=\"disqus_thread\"></div>\n    <% "
  },
  {
    "path": "layout/_partials/comments/giscus.ejs",
    "chars": 1689,
    "preview": "<% if (theme.giscus && theme.giscus['repo'] && theme.giscus['repo-id']) { %>\n    <div id=\"giscus\" class=\"giscus\"></div>\n"
  },
  {
    "path": "layout/_partials/comments/gitalk.ejs",
    "chars": 779,
    "preview": "<% if(theme.gitalk.clientID && theme.gitalk.clientSecret && theme.gitalk.repo){ %>\n  <div id=\"gitalk-container\"></div>\n "
  },
  {
    "path": "layout/_partials/comments/livere.ejs",
    "chars": 397,
    "preview": "<% if (theme.livere.uid) { %>\n  <div id=\"lv-container\" data-id=\"city\" data-uid=\"<%= theme.livere.uid %>\">\n    <script ty"
  },
  {
    "path": "layout/_partials/comments/remark42.ejs",
    "chars": 975,
    "preview": "<% if (theme.remark42.host && theme.remark42.site_id) { %>\n  <div id=\"remark42\"></div>\n  <script type=\"text/javascript\">"
  },
  {
    "path": "layout/_partials/comments/twikoo.ejs",
    "chars": 929,
    "preview": "<% if (theme.twikoo && theme.twikoo.envId) { %>\n  <div id=\"twikoo\"></div>\n  <script type=\"text/javascript\">\n    Fluid.ut"
  },
  {
    "path": "layout/_partials/comments/utterances.ejs",
    "chars": 1174,
    "preview": "<% if (theme.utterances.repo && theme.utterances.issue_term) { %>\n  <script type=\"text/javascript\">\n    Fluid.utils.load"
  },
  {
    "path": "layout/_partials/comments/valine.ejs",
    "chars": 849,
    "preview": "<% if (theme.valine.appId && theme.valine.appKey) { %>\n  <div id=\"valine\"></div>\n  <script type=\"text/javascript\">\n    F"
  },
  {
    "path": "layout/_partials/comments/waline.ejs",
    "chars": 900,
    "preview": "<% if (theme.waline.serverURL) { %>\n  <div id=\"waline\"></div>\n  <script type=\"module\">\n    Fluid.utils.loadComments('#wa"
  },
  {
    "path": "layout/_partials/comments.ejs",
    "chars": 404,
    "preview": "<% if ((!is_post() && !is_page()) || (is_post() && theme.post.comments.enable && page.comments) || (is_page() && page.co"
  },
  {
    "path": "layout/_partials/css.ejs",
    "chars": 878,
    "preview": "<%- css_ex(theme.static_prefix.bootstrap, 'css/bootstrap.min.css') %>\n\n<% var css_snippets = deduplicate(page.css_snippe"
  },
  {
    "path": "layout/_partials/footer/beian.ejs",
    "chars": 1209,
    "preview": "<div class=\"beian\">\n  <span>\n    <a href=\"http://beian.miit.gov.cn/\" target=\"_blank\" rel=\"nofollow noopener\">\n      <%- "
  },
  {
    "path": "layout/_partials/footer/statistics.ejs",
    "chars": 2662,
    "preview": "<div class=\"statistics\">\n  <% let pv_texts = (theme.footer.statistics.pv_format || __('footer.pv')).split('{}') %>\n  <% "
  },
  {
    "path": "layout/_partials/footer.ejs",
    "chars": 399,
    "preview": "<div class=\"footer-inner\">\n  <% if (theme.footer.content) { %>\n    <div class=\"footer-content\">\n      <%- theme.footer.c"
  },
  {
    "path": "layout/_partials/head.ejs",
    "chars": 2239,
    "preview": "<%\nvar separator = theme.title_join_string || theme.tab_title_separator\nvar title = page.title ? [page.title, config.tit"
  },
  {
    "path": "layout/_partials/header/banner.ejs",
    "chars": 2622,
    "preview": "<%\nvar banner_img = page.banner_img || (is_post() && theme.post ? theme.post.banner_img : theme.index.banner_img)\nvar ra"
  },
  {
    "path": "layout/_partials/header/navigation.ejs",
    "chars": 6661,
    "preview": "<nav id=\"navbar\" class=\"navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar\">\n  <div class=\"container\">\n    "
  },
  {
    "path": "layout/_partials/header.ejs",
    "chars": 269,
    "preview": "<%\nvar banner_img_height = parseFloat(page.banner_img_height || theme.index.banner_img_height)\n%>\n\n<div class=\"header-in"
  },
  {
    "path": "layout/_partials/markdown-plugins.ejs",
    "chars": 1134,
    "preview": "<% import_css(theme.static_prefix.github_markdown, 'github-markdown.min.css') %>\n<% import_css(theme.static_prefix.hint,"
  },
  {
    "path": "layout/_partials/paginator.ejs",
    "chars": 473,
    "preview": "<% if (page.total > 1){ %>\n  <nav aria-label=\"navigation\">\n    <span class=\"pagination\" id=\"pagination\">\n      <%- pagin"
  },
  {
    "path": "layout/_partials/plugins/analytics.ejs",
    "chars": 2833,
    "preview": "<% if (theme.web_analytics.enable) { %>\n\n  <% if(theme.web_analytics.baidu) { %>\n    <!-- Baidu Analytics -->\n    <scrip"
  },
  {
    "path": "layout/_partials/plugins/anchorjs.ejs",
    "chars": 1184,
    "preview": "<%\nimport_script(`\n<script>\n  Fluid.utils.createScript('${ url_join(theme.static_prefix.anchor, 'anchor.min.js') }', fun"
  },
  {
    "path": "layout/_partials/plugins/code-widget.ejs",
    "chars": 202,
    "preview": "<%\nif (theme.code.copy_btn) {\n  import_script(`<script src=${url_join(theme.static_prefix.clipboard, 'clipboard.min.js')"
  },
  {
    "path": "layout/_partials/plugins/encrypt.ejs",
    "chars": 525,
    "preview": "<%\nimport_script(`\n  <script defer>\n    if (document.getElementById('hbePass') || document.querySelector('hbe-prefix')) "
  },
  {
    "path": "layout/_partials/plugins/fancybox.ejs",
    "chars": 260,
    "preview": "<%\nimport_css(theme.static_prefix.fancybox, 'jquery.fancybox.min.css')\n\nimport_script(`\n<script>\n  Fluid.utils.createScr"
  },
  {
    "path": "layout/_partials/plugins/highlight.ejs",
    "chars": 509,
    "preview": "<%\nif (theme.code.highlight.lib === 'prismjs') {\n  if (!theme.code.highlight.prismjs.preprocess) {\n    import_js(theme.s"
  },
  {
    "path": "layout/_partials/plugins/math.ejs",
    "chars": 1665,
    "preview": "<% if(theme.post.math.engine === 'mathjax') { %>\n  <%\n    var lazy = theme.lazyload.enable && require_version(theme.stat"
  },
  {
    "path": "layout/_partials/plugins/mermaid.ejs",
    "chars": 403,
    "preview": "<script>\n  Fluid.utils.createScript('<%= url_join(theme.static_prefix.mermaid, 'mermaid.min.js') %>', function() {\n    m"
  },
  {
    "path": "layout/_partials/plugins/moment.ejs",
    "chars": 919,
    "preview": "<%\nvar lang = (config.language || 'zh-cn').toLowerCase();\n\nimport_script(`\n<script>\n  var relativeDate = function() {\n  "
  },
  {
    "path": "layout/_partials/plugins/nprogress.ejs",
    "chars": 447,
    "preview": "<% if (theme.fun_features.progressbar && theme.fun_features.progressbar.enable){ %>\n  <%- js_ex(theme.static_prefix.npro"
  },
  {
    "path": "layout/_partials/plugins/typed.ejs",
    "chars": 2016,
    "preview": "<% if(theme.fun_features.typing.enable && in_scope(theme.fun_features.typing.scope) && page.subtitle !== false) { %>\n  <"
  },
  {
    "path": "layout/_partials/post/category-bar.ejs",
    "chars": 533,
    "preview": "<%\nvar parent = page.categories.filter(c => !c.parent)\nif (Array.isArray(page.category_bar)) {\n  parent = page.categorie"
  },
  {
    "path": "layout/_partials/post/copyright.ejs",
    "chars": 2804,
    "preview": "<% if (theme.post.copyright.enable && page.copyright !== false) { %>\n  <%\n    var license = theme.post.copyright.license"
  },
  {
    "path": "layout/_partials/post/meta-bottom.ejs",
    "chars": 590,
    "preview": "<div class=\"post-metas my-3\">\n  <% if (page.categories && page.categories.length > 0) { %>\n    <div class=\"post-meta mr-"
  },
  {
    "path": "layout/_partials/post/meta-top.ejs",
    "chars": 3591,
    "preview": "<% if (page.meta !== false) { %>\n  <div class=\"mt-3\">\n    <% if (theme.post.meta.author && theme.post.meta.author.enable"
  },
  {
    "path": "layout/_partials/post/sidebar-left.ejs",
    "chars": 570,
    "preview": "<% if(theme.post.toc.enable && theme.post.toc.placement === 'left' && page.toc !== false){ %>\n  <aside class=\"sidebar\" s"
  },
  {
    "path": "layout/_partials/post/sidebar-right.ejs",
    "chars": 548,
    "preview": "<% if(theme.post.toc.enable && theme.post.toc.placement !== 'left' && page.toc !== false){ %>\n  <aside class=\"sidebar\" s"
  },
  {
    "path": "layout/_partials/post/toc.ejs",
    "chars": 3906,
    "preview": "<div id=\"toc\">\n  <p class=\"toc-header\">\n    <i class=\"iconfont icon-list\"></i>\n    <span><%- __('post.toc') %></span>\n  "
  },
  {
    "path": "layout/_partials/scripts.ejs",
    "chars": 1042,
    "preview": "<%- partial('_partials/plugins/nprogress.ejs') %>\n<%- js_ex(theme.static_prefix.jquery, 'jquery.min.js') %>\n<%- js_ex(th"
  },
  {
    "path": "layout/_partials/search.ejs",
    "chars": 938,
    "preview": "<div class=\"modal fade\" id=\"modalSearch\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"ModalLabel\"\n     aria-hidden=\"true"
  },
  {
    "path": "layout/about.ejs",
    "chars": 1872,
    "preview": "<%\npage.layout = \"about\"\npage.title = theme.about.title || __('about.title')\npage.subtitle = theme.about.subtitle || __("
  },
  {
    "path": "layout/archive.ejs",
    "chars": 418,
    "preview": "<%\npage.layout = \"archive\"\npage.title = theme.archive.title || __('archive.title')\npage.subtitle = theme.archive.subtitl"
  },
  {
    "path": "layout/categories.ejs",
    "chars": 704,
    "preview": "<%\npage.layout = 'categories'\npage.title = theme.category.title || __('category.title')\npage.subtitle = theme.category.s"
  },
  {
    "path": "layout/category.ejs",
    "chars": 531,
    "preview": "<%\npage.layout = \"category\"\npage.title = [__('category.title'), page.category].join(\" - \")\npage.subtitle = [__('category"
  },
  {
    "path": "layout/index.ejs",
    "chars": 2753,
    "preview": "<%\nif (theme.index.slogan.enable) {\n  page.subtitle = theme.index.slogan.text || config.subtitle || ''\n}\npage.banner_img"
  },
  {
    "path": "layout/layout.ejs",
    "chars": 2007,
    "preview": "<%\nvar banner_img_height = parseFloat(page.banner_img_height || theme.index.banner_img_height)\nvar colorSchema = theme.d"
  },
  {
    "path": "layout/links.ejs",
    "chars": 1456,
    "preview": "<%\npage.layout = \"links\"\npage.title = theme.links.title || __('links.title')\npage.subtitle = theme.links.subtitle || __("
  },
  {
    "path": "layout/page.ejs",
    "chars": 615,
    "preview": "<%\nvar layout = page.layout\npage.title = page.title || __(`${ layout }.title`)\npage.subtitle = page.subtitle || page.tit"
  },
  {
    "path": "layout/post.ejs",
    "chars": 4409,
    "preview": "<%\npage.banner_img = page.banner_img || theme.post.banner_img\npage.banner_img_height = page.banner_img_height || theme.p"
  },
  {
    "path": "layout/tag.ejs",
    "chars": 480,
    "preview": "<%\npage.layout = \"tag\"\npage.title = [__('tag.title'), page.tag].join(\" - \")\npage.subtitle = [__('tag.subtitle'), page.ta"
  },
  {
    "path": "layout/tags.ejs",
    "chars": 736,
    "preview": "<%\npage.layout = \"tags\"\npage.title = theme.tag.title || __('tag.title')\npage.subtitle = theme.tag.subtitle || __('tag.su"
  },
  {
    "path": "package.json",
    "chars": 731,
    "preview": "{\n  \"name\": \"hexo-theme-fluid\",\n  \"version\": \"1.9.9\",\n  \"description\": \"An elegant Material-Design theme for Hexo.\",\n  \""
  },
  {
    "path": "scripts/events/index.js",
    "chars": 407,
    "preview": "/* global hexo */\n\n'use strict';\n\nhexo.on('generateBefore', () => {\n  require('./lib/merge-configs')(hexo);\n  require('."
  },
  {
    "path": "scripts/events/lib/compatible-configs.js",
    "chars": 2671,
    "preview": "'use strict';\n\nmodule.exports = (hexo) => {\n  const isZh = hexo.theme.i18n.languages[0].search(/zh-CN/i) !== -1;\n\n  // B"
  },
  {
    "path": "scripts/events/lib/footnote.js",
    "chars": 3728,
    "preview": "'use strict';\n\nconst { stripHTML } = require('hexo-util');\n\nfunction escapeAttr(text) {\n  return text\n    .replace(/&/g,"
  },
  {
    "path": "scripts/events/lib/hello.js",
    "chars": 1527,
    "preview": "'use strict';\n\nmodule.exports = (hexo) => {\n  if (hexo.theme.has_hello) {\n    return;\n  }\n\n  if (hexo.theme.i18n.languag"
  },
  {
    "path": "scripts/events/lib/highlight.js",
    "chars": 5779,
    "preview": "'use strict';\n\nlet css;\ntry {\n  css = require('css');\n} catch (error) {\n  if (error.code === 'MODULE_NOT_FOUND') {\n    c"
  },
  {
    "path": "scripts/events/lib/injects.js",
    "chars": 2626,
    "preview": "'use strict';\n\n/**\n * Modified from https://github.com/next-theme/hexo-theme-next/blob/master/scripts/events/lib/injects"
  },
  {
    "path": "scripts/events/lib/lazyload.js",
    "chars": 1506,
    "preview": "'use strict';\n\nconst urlJoin = require('../../utils/url-join');\n\nmodule.exports = (hexo) => {\n  const config = hexo.them"
  },
  {
    "path": "scripts/events/lib/merge-configs.js",
    "chars": 3190,
    "preview": "'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\nconst objUtil = require('../../utils/object');\nco"
  },
  {
    "path": "scripts/events/lib/random-banner.js",
    "chars": 1104,
    "preview": "'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\n\nconst IMAGE_EXTS = new Set([\n  '.png',\n  '.jpg',"
  },
  {
    "path": "scripts/filters/default-injects.js",
    "chars": 1323,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst path = require('path');\n\nhexo.extend.filter.register('theme_inject', function(in"
  },
  {
    "path": "scripts/filters/locals.js",
    "chars": 860,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst path = require('path');\n\nhexo.extend.filter.register('template_locals', locals ="
  },
  {
    "path": "scripts/filters/post-filter.js",
    "chars": 2290,
    "preview": "/* global hexo */\n\n'use strict';\n\n// 生成前过滤文章\nhexo.extend.filter.register('before_generate', function() {\n  this._bindLoc"
  },
  {
    "path": "scripts/generators/index-generator.js",
    "chars": 562,
    "preview": "'use strict';\n\nconst pagination = require('hexo-pagination');\n\nmodule.exports = function(locals) {\n  const config = this"
  },
  {
    "path": "scripts/generators/local-search.js",
    "chars": 1718,
    "preview": "/* global hexo */\n\n'use strict';\n\nhexo.extend.generator.register('_hexo_generator_search', function(locals) {\n  const co"
  },
  {
    "path": "scripts/generators/pages.js",
    "chars": 1256,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst fs = require('fs');\nconst path = require('path');\n\n// generate 404 page\nif (!fs."
  },
  {
    "path": "scripts/helpers/date.js",
    "chars": 477,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst moment = require('moment');\nconst { isMoment } = moment;\n\nhexo.extend.helper.reg"
  },
  {
    "path": "scripts/helpers/engine.js",
    "chars": 221,
    "preview": "/* global hexo */\n\n'use strict';\n\nhexo.extend.helper.register('inject_point', function(point) {\n  return this.theme.inje"
  },
  {
    "path": "scripts/helpers/export-config.js",
    "chars": 1327,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst url = require('url');\nconst urlJoin = require('../utils/url-join');\n\n/**\n * Expo"
  },
  {
    "path": "scripts/helpers/import.js",
    "chars": 708,
    "preview": "/* global hexo */\n\n'use strict';\n\nhexo.extend.helper.register('import_js', function(base, relative, ex = '') {\n  if (!Ar"
  },
  {
    "path": "scripts/helpers/injects.js",
    "chars": 189,
    "preview": "/* global hexo */\n\n'use strict';\n\nhexo.extend.helper.register('point_injected', function(type) {\n  return hexo.theme.con"
  },
  {
    "path": "scripts/helpers/page.js",
    "chars": 435,
    "preview": "/* global hexo */\n\n'use strict';\n\nhexo.extend.helper.register('prev_post', function prev_post(post) {\n  const prev = pos"
  },
  {
    "path": "scripts/helpers/scope.js",
    "chars": 1099,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst pageInScope = (page, scope) => {\n  switch (scope) {\n    case 'home':\n      retur"
  },
  {
    "path": "scripts/helpers/url.js",
    "chars": 533,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst urlJoin = require('../utils/url-join');\n\nhexo.extend.helper.register('css_ex', f"
  },
  {
    "path": "scripts/helpers/utils.js",
    "chars": 792,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst md5 = require('../utils/crypto');\nconst { decodeURL } = require('hexo-util');\nco"
  },
  {
    "path": "scripts/helpers/wordcount.js",
    "chars": 1033,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst { stripHTML } = require('hexo-util');\n\nconst getWordCount = (post) => {\n  if (!p"
  },
  {
    "path": "scripts/tags/button.js",
    "chars": 549,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst button = (args) => {\n  args = args.join(' ').split(',');\n  const url = (args[0] "
  },
  {
    "path": "scripts/tags/checkbox.js",
    "chars": 1196,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst checkbox = (args) => {\n  args = args[0] === ',' ? args.slice(1) : args;\n  args ="
  },
  {
    "path": "scripts/tags/fold.js",
    "chars": 757,
    "preview": "const md5 = require('../utils/crypto');\n\nhexo.extend.tag.register('fold', (args, content) => {\n  args = args.join(' ').s"
  },
  {
    "path": "scripts/tags/group-image.js",
    "chars": 1889,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst DEFAULT_LAYOUTS = {\n  2 : [1, 1],\n  3 : [2, 1],\n  4 : [2, 2],\n  5 : [3, 2],\n  6 "
  },
  {
    "path": "scripts/tags/label.js",
    "chars": 394,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst label = (args) => {\n  args = args.join(' ').split('@');\n  const classes = args[0"
  },
  {
    "path": "scripts/tags/mermaid.js",
    "chars": 268,
    "preview": "/* global hexo */\n\n'use strict';\n\nfunction mermaid(args, content) {\n  return `\n<pre>\n<code class=\"mermaid\" ${args.join('"
  },
  {
    "path": "scripts/tags/note.js",
    "chars": 484,
    "preview": "/* global hexo */\n\n'use strict';\n\nconst note = (args, content) => {\n  if (!args || !args[0] || args[0].toLowerCase() ==="
  },
  {
    "path": "scripts/utils/compare-versions.js",
    "chars": 3139,
    "preview": "'use strict';\n// Ref: https://github.com/omichelsen/compare-versions\n\n/* global define */\n(function (root, factory) {\n  "
  },
  {
    "path": "scripts/utils/crypto.js",
    "chars": 167,
    "preview": "'use strict';\n\nconst crypto = require('crypto');\n\nconst md5 = (content) => {\n  return crypto.createHash('md5').update(co"
  },
  {
    "path": "scripts/utils/object.js",
    "chars": 775,
    "preview": "'use strict';\n\nconst isObject = (obj) => {\n  return obj && typeof obj === 'object' && !Array.isArray(obj);\n};\n\nconst isN"
  },
  {
    "path": "scripts/utils/resolve.js",
    "chars": 277,
    "preview": "'use strict';\n\nconst path = require('path');\n\nconst resolveModule = (name, file = '') => {\n  let dir;\n  try {\n    dir = "
  },
  {
    "path": "scripts/utils/url-join.js",
    "chars": 262,
    "preview": "'use strict';\n\nconst urlJoin = function(base, relative) {\n  if (relative && /^https*:\\/\\//.test(relative)) {\n    return "
  },
  {
    "path": "source/css/_functions/base.styl",
    "chars": 283,
    "preview": "theme-config(config, predef)\n  unquote(hexo-config(config) ? hexo-config(config):predef)\n\ntheme-config-unit(config, pred"
  },
  {
    "path": "source/css/_mixins/base.styl",
    "chars": 616,
    "preview": "/* 给锚点增加偏移量(适配导航栏的高度) */\nanchor-offset()\n  &::before\n    display block\n    content \"\"\n    margin-top -5rem\n    height 5r"
  },
  {
    "path": "source/css/_pages/_about/about.styl",
    "chars": 521,
    "preview": ".about-avatar\n  position relative\n  margin -8rem auto 1rem\n  width 10rem\n  height 10rem\n  z-index 3\n\n  img\n    width 100"
  },
  {
    "path": "source/css/_pages/_archive/archive.styl",
    "chars": 517,
    "preview": ".list-group\n  a ~ p.h5\n    margin-top 1rem\n\n.list-group-item\n  display flex\n  background-color transparent\n  border 0\n\n "
  },
  {
    "path": "source/css/_pages/_base/_widget/anchorjs.styl",
    "chars": 186,
    "preview": "// Rewrite anchorjs\n.anchorjs-link\n  text-decoration none !important\n  transition opacity .2s ease-in-out\n\n.markdown-bod"
  },
  {
    "path": "source/css/_pages/_base/_widget/banner.styl",
    "chars": 682,
    "preview": ".banner\n  height 100%\n  position relative\n  overflow hidden\n  cursor default\n\n  .mask\n    position absolute\n    width 10"
  },
  {
    "path": "source/css/_pages/_base/_widget/board.styl",
    "chars": 357,
    "preview": "#board\n  position relative\n  margin-top -2rem\n  padding 3rem 0\n  background-color var(--board-bg-color)\n  transition bac"
  },
  {
    "path": "source/css/_pages/_base/_widget/code-widget.styl",
    "chars": 662,
    "preview": ".code-widget\n  display inline-block\n  background-color transparent\n  font-size .75rem\n  line-height 1\n  font-weight bold"
  },
  {
    "path": "source/css/_pages/_base/_widget/copyright.styl",
    "chars": 1727,
    "preview": "// Modified from [hexo-theme-icarus](https://github.com/ppoffice/hexo-theme-icarus)\n\n.license-box\n  background-color rgb"
  },
  {
    "path": "source/css/_pages/_base/_widget/footer.styl",
    "chars": 1173,
    "preview": ".footer-inner\n  padding 3rem 0 1rem 0\n  text-align center\n\n  & > div:not(:first-child)\n    margin .25rem 0\n    font-size"
  },
  {
    "path": "source/css/_pages/_base/_widget/footnote.styl",
    "chars": 460,
    "preview": "sup > a, .footnote-text\n  anchor-offset()\n  &::before\n    display inline-block\n\n.footnote-item\n  anchor-offset()\n\n.footn"
  },
  {
    "path": "source/css/_pages/_base/_widget/header.styl",
    "chars": 6135,
    "preview": "// Rewrite navbar\n.navbar\n  background-color transparent\n  font-size 0.875rem\n  box-shadow 0 2px 5px 0 rgba(0, 0, 0, 0.1"
  },
  {
    "path": "source/css/_pages/_base/_widget/modal.styl",
    "chars": 2226,
    "preview": "// Rewrite modal\n.modal-dialog .modal-content\n  background-color var(--board-bg-color)\n  border 0\n  border-radius .125re"
  },
  {
    "path": "source/css/_pages/_base/_widget/ngrogress.styl",
    "chars": 359,
    "preview": "// Rewrite nprogress\n$npColor = theme-config(\"fun_features.progressbar.color\", \"#29d\")\n#nprogress\n  .bar\n    height them"
  },
  {
    "path": "source/css/_pages/_base/_widget/noscript.styl",
    "chars": 200,
    "preview": ".noscript-warning\n  background-color #f55\n  color #fff\n  font-family sans-serif\n  font-size 1rem\n  font-weight bold\n  po"
  },
  {
    "path": "source/css/_pages/_base/_widget/pagination.styl",
    "chars": 462,
    "preview": "// Rewrite pagination\n.pagination\n  margin-top 3rem\n  justify-content center\n\n  .space\n    align-self flex-end\n\n  .page-"
  },
  {
    "path": "source/css/_pages/_base/_widget/qrcode.styl",
    "chars": 302,
    "preview": ".qr-trigger\n  cursor pointer\n  position relative\n\n  &:hover .qr-img\n    display block\n    transition all .3s\n\n.qr-img\n  "
  },
  {
    "path": "source/css/_pages/_base/_widget/scroll-btn.styl",
    "chars": 1030,
    "preview": ".scroll-down-bar\n  position absolute\n  width 100%\n  height 6rem\n  text-align center\n  cursor pointer\n  bottom 0\n\n  i.ico"
  },
  {
    "path": "source/css/_pages/_base/_widget/search.styl",
    "chars": 158,
    "preview": "#local-search-result\n  .search-list-title\n    border-left 3px solid #0d47a1\n\n  .search-list-content\n    padding 0 1.25re"
  },
  {
    "path": "source/css/_pages/_base/_widget/toc.styl",
    "chars": 1705,
    "preview": "#toc\n  visibility hidden\n\n.toc-header\n  margin-bottom .5rem\n  font-weight bold\n  line-height 1.2\n\n  &, & > i\n    font-si"
  },
  {
    "path": "source/css/_pages/_base/base.styl",
    "chars": 1263,
    "preview": "@import \"_widget/*\"\n\nhtml\n  font-size $font-size\n  letter-spacing $letter-spacing\n\nhtml, body\n  height 100%\n  font-famil"
  },
  {
    "path": "source/css/_pages/_base/color-schema.styl",
    "chars": 2554,
    "preview": ":root\n  --color-mode \"light\"\n  --body-bg-color $body-bg-color\n  --board-bg-color $board-bg-color\n  --text-color $text-co"
  },
  {
    "path": "source/css/_pages/_base/inline.styl",
    "chars": 925,
    "preview": ".fade-in-up\n  -webkit-animation-name fade-in-up\n  animation-name fade-in-up\n\n.hidden-mobile\n  display block\n\n.visible-mo"
  },
  {
    "path": "source/css/_pages/_base/keyframes.styl",
    "chars": 746,
    "preview": "@keyframes fade-in-up\n  from\n    opacity 0\n    -webkit-transform translate3d(0, 100%, 0)\n    transform translate3d(0, 10"
  },
  {
    "path": "source/css/_pages/_base/print.styl",
    "chars": 872,
    "preview": "@media print\n  header, footer, .side-col, #scroll-top-button, .post-prevnext, #comments\n    display none !important\n\n  ."
  },
  {
    "path": "source/css/_pages/_category/category-bar.styl",
    "chars": 1086,
    "preview": ".category-bar\n\n  .category-list\n    max-height 85vh\n    overflow-y auto\n    overflow-x hidden\n\n    &::-webkit-scrollbar\n"
  },
  {
    "path": "source/css/_pages/_category/category-chain.styl",
    "chars": 96,
    "preview": ".category-chains\n  display flex\n  flex-wrap wrap\n\n  & > *:not(:last-child)\n    margin-right 1em\n"
  },
  {
    "path": "source/css/_pages/_category/category-list.styl",
    "chars": 1032,
    "preview": ".category\n\n  &:not(:last-child)\n    margin-bottom 1rem\n\n  .category-sub\n    pass\n\n  .category-item, .category-subitem\n  "
  },
  {
    "path": "source/css/_pages/_index/index.styl",
    "chars": 1468,
    "preview": ".index-card\n  margin-bottom 2.5rem\n\n.index-img\n  img\n    display block\n    width 100%\n    height 10rem\n    object-fit co"
  },
  {
    "path": "source/css/_pages/_links/links.styl",
    "chars": 1321,
    "preview": ".links\n  .card\n    box-shadow none\n    min-width 33%\n    background-color transparent\n    border 0\n\n  .card-body\n    mar"
  },
  {
    "path": "source/css/_pages/_post/comment.styl",
    "chars": 531,
    "preview": "// Rewrite valine\n#valine.v[data-class=v]\n  .status-bar, .veditor, .vinput, .vbtn, p, pre code\n    color var(--text-colo"
  },
  {
    "path": "source/css/_pages/_post/highlight.styl",
    "chars": 1118,
    "preview": ".markdown-body\n  .highlight pre, pre\n    padding 1.45rem 1rem\n\n  pre code.hljs\n    padding 0\n\n  pre[class*=\"language-\"]\n"
  },
  {
    "path": "source/css/_pages/_post/markdown.styl",
    "chars": 1864,
    "preview": "// Rewrite github-markdown.css\n.markdown-body\n  font-size 1rem\n  line-height 1.6\n  font-family $font-family\n  margin-bot"
  },
  {
    "path": "source/css/_pages/_post/post-page.styl",
    "chars": 3519,
    "preview": ".post-content, post-custom\n  box-sizing border-box\n  padding-left 10%\n  padding-right 10%\n\n@media (max-width: 767px)\n  ."
  },
  {
    "path": "source/css/_pages/_post/post-tag.styl",
    "chars": 3243,
    "preview": "// fold\n.fold\n  margin 1rem 0\n  border 0.5px solid var(--fold-border-color)\n  position relative\n  clear both\n  border-ra"
  },
  {
    "path": "source/css/_pages/_tag/tag.styl",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "source/css/_pages/_tag/tags.styl",
    "chars": 136,
    "preview": ".tagcloud\n  padding 1rem 5%\n\n  a\n    display inline-block\n    padding .5rem\n\n    &:hover\n      color var(--link-hover-co"
  },
  {
    "path": "source/css/_pages/pages.styl",
    "chars": 153,
    "preview": "@import \"_base/*\"\n@import \"_index/*\"\n@import \"_post/*\"\n@import \"_archive/*\"\n@import \"_about/*\"\n@import \"_category/*\"\n@im"
  },
  {
    "path": "source/css/_variables/base.styl",
    "chars": 3950,
    "preview": "// font\n$font-size = theme-config(\"font.font_size\", \"16px\")\n$letter-spacing = theme-config(\"font.letter_spacing\", \"0.02e"
  },
  {
    "path": "source/css/gitalk.css",
    "chars": 13294,
    "preview": "@font-face {\n  font-family: octicons-link;\n  src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAA"
  },
  {
    "path": "source/css/highlight-dark.styl",
    "chars": 312,
    "preview": "if hexo-config(\"code.highlight.enable\") && hexo-config(\"dark_mode.enable\")\n  if hexo-config(\"code.highlight.highlightjs."
  },
  {
    "path": "source/css/highlight.styl",
    "chars": 281,
    "preview": "if hexo-config(\"code.highlight.enable\")\n  if hexo-config(\"code.highlight.highlightjs.light.file\")\n    @require hexo-conf"
  },
  {
    "path": "source/css/main.styl",
    "chars": 479,
    "preview": "// --------------------------------------\n// Fluid\n// https://github.com/fluid-dev/hexo-theme-fluid\n// -----------------"
  },
  {
    "path": "source/js/boot.js",
    "chars": 541,
    "preview": "/* global Fluid */\n\nFluid.boot = {};\n\nFluid.boot.registerEvents = function() {\n  Fluid.events.billboard();\n  Fluid.event"
  },
  {
    "path": "source/js/color-schema.js",
    "chars": 9085,
    "preview": "/* global Fluid */\n\n/**\n * Modified from https://blog.skk.moe/post/hello-darkmode-my-old-friend/\n */\n(function(window, d"
  },
  {
    "path": "source/js/events.js",
    "chars": 7149,
    "preview": "/* global Fluid */\n\nHTMLElement.prototype.wrap = function(wrapper) {\n  this.parentNode.insertBefore(wrapper, this);\n  th"
  },
  {
    "path": "source/js/img-lazyload.js",
    "chars": 322,
    "preview": "/* global Fluid, CONFIG */\n\n(function(window, document) {\n  for (const each of document.querySelectorAll('img[lazyload]'"
  },
  {
    "path": "source/js/leancloud.js",
    "chars": 5578,
    "preview": "/* global CONFIG */\n// eslint-disable-next-line no-console\n\n(function(window, document) {\n  // 查询存储的记录\n  function getRec"
  },
  {
    "path": "source/js/local-search.js",
    "chars": 5718,
    "preview": "/* global CONFIG */\n\n(function() {\n  // Modified from [hexo-generator-search](https://github.com/wzpan/hexo-generator-se"
  },
  {
    "path": "source/js/openkounter.js",
    "chars": 5006,
    "preview": "/* global CONFIG, Fluid */\n\n(function(window, document) {\n  'use strict';\n\n  // Get server URL from config\n  const API_S"
  },
  {
    "path": "source/js/plugins.js",
    "chars": 5546,
    "preview": "/* global Fluid, CONFIG */\n\nHTMLElement.prototype.wrap = function(wrapper) {\n  this.parentNode.insertBefore(wrapper, thi"
  },
  {
    "path": "source/js/umami-view.js",
    "chars": 2690,
    "preview": "// 从配置文件中获取 umami 的配置\nconst website_id = CONFIG.web_analytics.umami.website_id;\n// 拼接请求地址\nconst request_url = `${CONFIG."
  },
  {
    "path": "source/js/utils.js",
    "chars": 7293,
    "preview": "/* global Fluid, CONFIG */\n\nwindow.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimation"
  },
  {
    "path": "source/xml/local-search.xml",
    "chars": 1376,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<search>\n  {% if posts %}\n  {% for post in posts.toArray() %}\n  {% if post.indexi"
  }
]

About this extraction

This page contains the full source code of the fluid-dev/hexo-theme-fluid GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 176 files (328.5 KB), approximately 98.9k tokens, and a symbol index with 57 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!