Commit d1586435 authored by 吕祺's avatar 吕祺 ⛹🏽

fix

parent 5d07be5c
...@@ -22,6 +22,8 @@ compile_articles: ...@@ -22,6 +22,8 @@ compile_articles:
- node utils/articleAggregate.js - node utils/articleAggregate.js
- git remote show origin - git remote show origin
- sh utils/commit.sh - sh utils/commit.sh
- rm -r /home/gitlab-runner/deploy/cms/ronghui/out
- cp -r out /home/gitlab-runner/deploy/cms/ronghui
# compress_images: # compress_images:
# stage: build # stage: build
...@@ -52,16 +54,16 @@ deploy: ...@@ -52,16 +54,16 @@ deploy:
- /home/gitlab-runner/sh/ossutil64 cp -f out oss://touhou-cms/ -r - /home/gitlab-runner/sh/ossutil64 cp -f out oss://touhou-cms/ -r
preview: # preview:
stage: deploy # stage: deploy
# when: manual # # when: manual
environment: # environment:
name: preview # name: preview
script: # script:
- yarn # - yarn
- npm run export # - npm run export
- rm -r /home/gitlab-runner/deploy/cms/ronghui/out # - rm -r /home/gitlab-runner/deploy/cms/ronghui/out
- cp -r out /home/gitlab-runner/deploy/cms/ronghui # - cp -r out /home/gitlab-runner/deploy/cms/ronghui
......
...@@ -35,6 +35,10 @@ collections: ...@@ -35,6 +35,10 @@ collections:
- label: "frontPage" - label: "frontPage"
name: "frontPage" name: "frontPage"
file: "content/frontPage.md" file: "content/frontPage.md"
fields:
- label: 'articles'
name: "articles"
widget: list
fields: fields:
- { label: "Title", name: "title", widget: "string" } - { label: "Title", name: "title", widget: "string" }
- { label: "type", name: "type", widget: "string", required: false} - { label: "type", name: "type", widget: "string", required: false}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment