diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..4ecf58f2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,28 @@ +--- +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 + + + +#### To Reproduce +Steps to reproduce the behavior: +1. Go to '...', click on '....' +2. Scroll down to '....' +3. See error + + + +#### Screenshots + + diff --git a/.github/ISSUE_TEMPLATE/bug_report_zh.md b/.github/ISSUE_TEMPLATE/bug_report_zh.md new file mode 100644 index 00000000..1c27b0d1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report_zh.md @@ -0,0 +1,34 @@ +--- +name: Bug 报告 +about: 创建一份 Bug 报告帮助我们优化产品 +title: '' +labels: ':bug: bug' +assignees: '' +--- + + + + + + + +#### 请确认 +- [ ] 是当前最新的 [Release 版本](https://github.com/fluid-dev/hexo-theme-fluid/releases) +- [ ] 本地 `hexo clean && hexo s`,并且清除浏览器缓存,仍可复现 +- [ ] 已经排除是其他 Hexo 插件影响 + +#### Bug 描述 + + + +#### 复现步骤 +该 Bug 复现步骤如下: +1. 在 xxx 页面点击 xxx 按钮 +2. 然后向下滚动 +3. 会出现 xxx + + + +#### 截图 + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..8c92f514 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +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 + + +#### Describe the solution you'd like + + +#### Describe alternatives you've considered + diff --git a/.github/ISSUE_TEMPLATE/feature_request_zh.md b/.github/ISSUE_TEMPLATE/feature_request_zh.md new file mode 100644 index 00000000..f1588471 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request_zh.md @@ -0,0 +1,20 @@ +--- +name: 功能需求或优化 +about: 创建一份合理可行的建议帮助我们提升产品 +title: '' +labels: ':sparkles: enhancement' +assignees: '' +--- + +#### 如是功能需求,请确定符合以下情况 +- [ ] 难以通过[自定义](https://hexo.fluid-dev.com/docs/guide/#自定义-js-css-html)实现 +- [ ] 难以通过第三方插件实现 + +#### 请描述该需求尝试解决的问题 + + +#### 请描述您认为可行的解决方案 + + +#### 考虑过的替代方案 + diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 00000000..fe7d5845 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,11 @@ +--- +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 + diff --git a/.github/ISSUE_TEMPLATE/question_zh.md b/.github/ISSUE_TEMPLATE/question_zh.md new file mode 100644 index 00000000..4291a8cd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question_zh.md @@ -0,0 +1,19 @@ +--- +name: 问题求助 +about: 提出一个使用过程中遇到的问题,需要得到帮助 +--- + + + + + + +#### 请确认 +- [ ] 是当前最新的 [Release 版本](https://github.com/fluid-dev/hexo-theme-fluid/releases) +- [ ] 在 [用户指南](https://hexo.fluid-dev.com/docs/) 中没有找到解决办法 + +#### 问题描述 + diff --git a/.github/workflows/cr.yaml b/.github/workflows/cr.yaml new file mode 100644 index 00000000..d114e459 --- /dev/null +++ b/.github/workflows/cr.yaml @@ -0,0 +1,28 @@ +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 \ No newline at end of file diff --git a/.github/workflows/limit.yaml b/.github/workflows/limit.yaml new file mode 100644 index 00000000..3afadd57 --- /dev/null +++ b/.github/workflows/limit.yaml @@ -0,0 +1,18 @@ +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 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..c16761b4 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,27 @@ +name: Publish Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 14 + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/themes/fluid/layout/_partials/header/banner.ejs b/themes/fluid/layout/_partials/header/banner.ejs index 52c4fccd..8ad04822 100644 --- a/themes/fluid/layout/_partials/header/banner.ejs +++ b/themes/fluid/layout/_partials/header/banner.ejs @@ -5,7 +5,7 @@ var banner_mask_alpha = parseFloat(page.banner_mask_alpha || theme.index.banner_ var subtitle = page.subtitle || page.title %> -