Copy

CC的部落格更新啦

语雀专用测试文章
CC康纳百川   Dec 15, 2020 08:00 pm  编辑

如果你看到这句话

想必我已经成功配置了云端写作

本文首发在语雀,自动同步更新

一个无趣的人

关于写作格式 我想说

---
title: 语雀专用测试文章
tags: [语雀, 测试]
categories: [语雀, 测试]
cover: "https://cdn.jsdelivr.net/gh/ccknbc-backup/photos/blog/2020-10-12~18_03_32.webp"
top_img: false
copyright_author_href: "https://www.ccknbc.cc/"
keywords: "语雀,测试"
description: 语雀测试专用文章
id: 16
date: 2020-12-15 20:00:00
updated: 2020-12-16 10:30:00
---

如上所见,其他内容无需注意, cover  请使用引号,不然同步过去会识别成 md  格式链接导致报错
如果遇到上传到语雀的图片无法加载的问题,可以参考这个处理方式  #41
外链图片则在前面加上英文感叹号 !  即可,格式如下:

cover: 'https://cdn.jsdelivr.net/gh/ccknbc-backup/photos/blog/2020-10-12~18_03_32.webp'
!https://cdn.jsdelivr.net/gh/ccknbc-backup/photos/blog/2020-10-12~18_03_32.webp

虽然还有很多 bug,但还是不错的

jsd 外链引入图片测试

https://cdn.jsdelivr.net/gh/ccknbc-backup/photos/blog/2020-10-12~18_03_32.webp

语雀上传图片测试

oNGhAigG.webp

name: 更新部落格

on:
push:
branches:
- master
repository_dispatch:
workflow_dispatch:
inputs:
name:
description: "手动触发"
required: false

jobs:
deploy:
name: Deploy Hexo Public To Pages
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master

- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: "12.x"

- name: Install HEXO CI
run: |
npm install hexo-cli -g

- name: Catch
uses: actions/cache@v2
id: cache-dependencies
with:
path: node_modules
key: ${{runner.OS}}-${{hashFiles('**/package-lock.json')}}

- name: Install Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
npm install

- name: Generate
env:
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
YUQUE_TOKEN: ${{ secrets.YUQUE_TOKEN }}
run: |
npm run start

- name: Deploy
run: |
cd ./public
git init
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "$(date +"%Z %Y-%m-%d %A %H:%M:%S") Updated By Github Actions"
git push --force --quiet "https://ccknbc:${{ secrets.GH_TOKEN }}@github.com/ccknbc/ccknbc.github.io.git" master:master
git push --force --quiet "https://${{ secrets.CD_USER }}:${{ secrets.CD_TOKEN }}@e.coding.net/ccknbc/blog/butterfly.git" master:master
git push --force --quiet "https://ccknbc:${{ secrets.GT_TOKEN }}@gitee.com/ccknbc/ccknbc.git" master:master

- name: Update Gitee Pages
uses: yanglbme/gitee-pages-action@master
with:
gitee-username: ccknbc
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: ccknbc/ccknbc
{
"name": "ccknbc-blog",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "yuque-hexo sync && hexo clean && hexo generate && hexo algolia && gulp",
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"yuqueConfig": {
"postPath": "source/_posts/语雀",
"cachePath": "yuque.json",
"mdNameFormat": "title",
"adapter": "markdown",
"concurrency": 5,
"baseUrl": "https://www.yuque.com/api/v2",
"login": "ccknbc",
"repo": "blog",
"onlyPublished": true,
"onlyPublic": true
},
"hexo": {
"version": "5.2.0"
},
"dependencies": {
"cheerio": "^1.0.0-rc.3",
"hexo": "^5.2.0",
"hexo-algoliasearch": "^1.0.0",
"hexo-charts": "^1.0.3",
"hexo-cli": "^4.2.0",
"hexo-deployer-git": "^2.1.0",
"hexo-filter-nofollow": "^2.0.2",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-baidu-sitemap": "^0.1.9",
"hexo-generator-category": "^1.0.0",
"hexo-generator-feed": "^3.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-sitemap": "^2.1.0",
"hexo-generator-tag": "^1.0.0",
"hexo-render-pug": "^2.1.4",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-marked": "^3.3.0",
"hexo-renderer-pug": "^1.0.0",
"hexo-renderer-stylus": "^2.0.1",
"hexo-server": "^2.0.0",
"hexo-tag-mmedia": "^0.1.9",
"hexo-translate-title-vss": "^1.0.14",
"hexo-wordcount": "^6.0.1",
"yuque-hexo": "^1.6.5"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-clean-css": "^4.3.0",
"gulp-cli": "2.3.0",
"gulp-html-minifier-terser": "^6.0.1",
"gulp-htmlclean": "^2.7.22",
"gulp-uglify": "^3.0.2",
"workbox-build": "^6.0.2"
}
}

这是一篇测试文章

本文阅读完毕,您可以邮件回复 | 直达评论区 »
 
Copyright © 2020 CC的部落格, All rights reserved.
您收到这封邮件是因为您订阅了本站的邮件更新通知

想更改您接收这些电子邮件的方式?
你可以 更新您的偏好 或 取消订阅更新

Email Marketing Powered by Mailchimp