Skip to content

Commit

Permalink
chore(cache): remove git cache
Browse files Browse the repository at this point in the history
git rm -r --cached .
  • Loading branch information
eallion committed Jul 27, 2021
1 parent 767410c commit 0e15bab
Show file tree
Hide file tree
Showing 668 changed files with 38,971 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space # 缩进方式
indent_size = 4 # 缩进大小
end_of_line = lf # 换行符
charset = utf-8 # 文档编码格式
trim_trailing_whitespace = true # true 为去掉行尾空格
insert_final_newline = true # 结尾是否插入新行
max_line_length = off # 达到字符数后是否强制换行

[*.{yml,toml,yaml,json}]
indent_style = space
indent_size = 2

[*.{md,txt}]
indent_style = space
trim_trailing_whitespace = false
33 changes: 33 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto

# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.go text eol=lf
*.js text eol=lf
*.css text eol=lf
*.html text eol=lf
*.xml text eol=lf
*.md text eol=lf
*.json text eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.gif binary

# SVG files should not be modified
*.svg -text

# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

# RC files (like .babelrc or .eslintrc)
*.*rc text

# Ignore files (like .npmignore or .gitignore)
*.*ignore text
3 changes: 3 additions & 0 deletions .github/workflows/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners

* @eallion
119 changes: 119 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Build Hugo and Deploy

on:
push:
branches:
- main
schedule:
- cron: 0 16 * * *

jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Asia/Shanghai

- uses: actions/checkout@v2
with:
submodules: false
fetch-depth: 1

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: false

- name: Build Hugo
run: |
hugo version
hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.personal_token }}
external_repository: eallion/eallion.github.io
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
allow_empty_commit: true
# commit_message: ${{ GitHub.event.head_commit.message }}
full_commit_message: ${{ github.event.head_commit.message }}
cname: eallion.com
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

#- name: Deploy to Firebase
# uses: lowply/[email protected]
# env:
# FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
# FIREBASE_PROJECT: ${{ secrets.FIREBASE_PROJECT }}
# TARGET_BRANCH: main

#- name: Deploy to Tencent CloudBase
# id: deployStatic
# uses: TencentCloudBase/[email protected]
# with:
# secretId: ${{ secrets.CLOUDBASE_SECRET_ID }}
# secretKey: ${{ secrets.CLOUDBASE_SECRET_KEY }}
# envId: ${{ secrets.CLOUDBASE_ENV_ID }}
# staticSrcPath: public

#- name: Sync to Gitee
# uses: eallion/git-mirror-action@master
# env:
# SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
# with:
# source-repo: "https://github.com/eallion/eallion.github.io.git"
# destination-repo: "[email protected]:eallion/eallion.git"
# branch: "gh-pages"
# run: |
# cd public
# rm -rf .git
# git config --global user.name "Charles Chin"
# git config --global user.email ${{ secrets.GITEE_EMAIL }}
# git init
# git add .
# git commit -m "${{ GitHub.event.head_commit.message }}"
# git push -f https://${{ secrets.GITEE_USERNAME }}:${{ secrets.GITEE_TOKEN }}@gitee.com/eallion/eallion.git HEAD:gh-pages
# cd ..

#- name: Build Gitee Pages
# uses: yanglbme/gitee-pages-action@master
# with:
# gitee-username: ${{ secrets.GITEE_USERNAME }}
# gitee-password: ${{ secrets.GITEE_PASSWORD }}
# gitee-repo: eallion/eallion
# branch: gh-pages
# # directory: /
# https: true

## 部署到阿里云 OSS
#- name: Deploy to OSS
# uses: saltbo/uptoc@master
# with:
# driver: oss
# region: cn-shanghai
# bucket: ${{ secrets.bucket }}
# exclude: public/images,public/photos
# dist: public
# env:
# UPTOC_UPLOADER_AK: ${{ secrets.ACCESS_KEY_ID }}
# UPTOC_UPLOADER_SK: ${{ secrets.ACCESS_KEY_SECRET }}

# 部署到腾讯云 COS
#- name: Deploy to COS
# uses: saltbo/uptoc@master
# with:
# driver: cos
# region: ap-shanghai
# bucket: ${{ secrets.COS_CN_BUCKET }}
## exclude: public/images,public/photos
# dist: public
# env:
# UPTOC_UPLOADER_AK: ${{ secrets.SECRET_COS_ID }}
# UPTOC_UPLOADER_SK: ${{ secrets.SECRET_COS_KEY }}
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Build and Release Folders
bin-debug/
bin-release/
[Oo]bj/
[Bb]in/

# Other files and folders
.settings/

# Executables
*.swf
*.air
*.ipa
*.apk

# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.
**/.DS_Store
.favorites.json

public
public.*

cloudbaserc.json

.trash

cosconf
cos.conf
.cos.conf

ossconfig
oss.config
.oss.config

node_modules

autocorrect
23 changes: 23 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
before_script:
- apk add --update --no-cache git

image: registry.gitlab.com/pages/hugo:latest

variables:
GIT_SUBMODULE_STRATEGY: recursive

test:
script:
- hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo
except:
- main

pages:
script:
- hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo
artifacts:
paths:
- public
only:
- main
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
21 changes: 21 additions & 0 deletions CHANGELOG.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### OLD CHANGELOG

- 添加 CHANGELOG

- 国内:通过 Coding 部署至腾讯云 COS + CDN。(2020.12.27)
- 全站均在 CDN 上,所以静态文件使用了 Hugo 自带的 Asset minification。(2021.01.05)
- 嘀咕页面添加今日诗词 API。 (2021.01.11)
- 取消部署至 GitHub Pages,腾讯云 CDN 改为全球。(2021Q1)
- 部署至 Cloudflare Pages。(2021Q2)
- 部署至 Firebase。(2021Q2)
- 部署至 Vercel。(2021Q2)
- 部署至 Netlify。(2021Q2)
- 部署至 Gitee。(2021Q2)
- 页脚采用 Badge 的形式展示。(2021.5.25)
- 取消腾讯云全球 CDN,境外分开部署。(2021.06.13)
- 境外:通过 GitHub Action 部署至 GitHub Pages。 (2021.06.13)
- 页脚取消 Badge。 (2021.07.02)
- 更新部署方式。 (2021.07.05)
- 图标接入 [Boxicons](https://boxicons.com)。 (2021.07.06)
- 图标换为 iconfont (2021.07.13)
- Shrink and sticky header (2021.07.13)
70 changes: 70 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# [](https://github.com/eallion/eallion.com/compare/v1.0.6...v) (2021-07-18)


### Bug Fixes

* **content:** typo ([8e52b6d](https://github.com/eallion/eallion.com/commit/8e52b6d333e72eddc46fc6a752aa8f9392e049bb))
* **css:** fix a bug ([c9e9373](https://github.com/eallion/eallion.com/commit/c9e93731c73bc9f2b1bab5f5c1a72771bcc7cbc7))
* **link:** fix a link discernible name ([f72bfc3](https://github.com/eallion/eallion.com/commit/f72bfc329f7289b30fc5abd91bdf629e582bff1b))
* **talk:** fix go to top icon ([4c10599](https://github.com/eallion/eallion.com/commit/4c105995e556e3082cae8c127882961abef766ea))


### Features

* **posts:** enable view plain markdown on github ([0bb4245](https://github.com/eallion/eallion.com/commit/0bb4245b77f60fd928ecf73f75818d795cc4e3fe))
* **posts:** view plain markdown on github ([59965b2](https://github.com/eallion/eallion.com/commit/59965b280d9e2c6595a4e6eef5a69f448d9ff268))


### Performance Improvements

* **talk:** persistence to none ([0f2a556](https://github.com/eallion/eallion.com/commit/0f2a556a6c5662e3d095f40a06e8d6852cf33f79))



## [1.0.6](https://github.com/eallion/eallion.com/compare/9233660b46693db4ccbc151c634244d97c922c92...v1.0.6) (2021-07-03)


### Bug Fixes

* a footer badge ([6fac872](https://github.com/eallion/eallion.com/commit/6fac87251014a1d6b00a46d8a8e284f5f5fac3cb))
* atom.xml ([e1a1bab](https://github.com/eallion/eallion.com/commit/e1a1babd937c54748cf8769293aa780ced540dcd))
* autoprefixer ([54d9bd9](https://github.com/eallion/eallion.com/commit/54d9bd93aaad8601e5d13d9e2df1df33d8592724))
* badge cache ([76b85f7](https://github.com/eallion/eallion.com/commit/76b85f70d1c9c6ebdef22e84092d69b28ffacbdc))
* blank space ([3942caf](https://github.com/eallion/eallion.com/commit/3942caf9aa420d79c81996e48034616663453fda))
* EditPath ([de0464e](https://github.com/eallion/eallion.com/commit/de0464eb6e514dc57444ff1809aa4fa47a7f5b30))
* font family ([a23e029](https://github.com/eallion/eallion.com/commit/a23e029b352be9e9350cc7ed0bc4dc95f4221d55))
* footer badge cache ([4271966](https://github.com/eallion/eallion.com/commit/4271966167909c9835518ef730fb774e15220e06))
* google fonts ([bac87a9](https://github.com/eallion/eallion.com/commit/bac87a948dfcfc73be3942d838e6b0822bdc61e5))
* hidden douban movies and books in header menu ([2f659f3](https://github.com/eallion/eallion.com/commit/2f659f375dd36ae5ceddfb3f7b18e338e258e4c8))
* host url ([97f45a0](https://github.com/eallion/eallion.com/commit/97f45a0a7c3665a1a0cfa94afbfc43a168ffe22b))
* icp typo in footer ([cdb44c7](https://github.com/eallion/eallion.com/commit/cdb44c70f04f1558a296a0cf2e21bea90f82ac5a))
* indent ([c02c592](https://github.com/eallion/eallion.com/commit/c02c592a6f7636974ab081a756a1e8942ad68c89))
* owo style ([07ce424](https://github.com/eallion/eallion.com/commit/07ce4244fd5e93db04cc1ef8143185b90f71812a))
* post title style ([ea79bc2](https://github.com/eallion/eallion.com/commit/ea79bc2aab696dd63e06e09c5c95f047ebc200ed))
* post title style ([9233660](https://github.com/eallion/eallion.com/commit/9233660b46693db4ccbc151c634244d97c922c92))
* remove empty lines ([1cec621](https://github.com/eallion/eallion.com/commit/1cec621b230b99899005979df5352ffc35711599))
* remove empty lines ([46a57c1](https://github.com/eallion/eallion.com/commit/46a57c1c87b75cf49fe2e8fa1f2f0ed430c84e3f))
* typo ([9f1a5c0](https://github.com/eallion/eallion.com/commit/9f1a5c0b5e6d8290bf6aba77b723c842dad33db7))
* Uncaught ReferenceError: __webpack_require__ is not defined ([fd97843](https://github.com/eallion/eallion.com/commit/fd97843e335f6128cd5ed2484c558eaadad56c44))
* update dotfiles url ([a0b5430](https://github.com/eallion/eallion.com/commit/a0b54302e45e78cb0be70c36c82233f419183148))
* update footer by suggest ([11d4dde](https://github.com/eallion/eallion.com/commit/11d4dde8c8e39cb9e87be7328d969bb3273d3da2))
* update footer by suggest ([28ffb0a](https://github.com/eallion/eallion.com/commit/28ffb0a21086d005b8c878c18100ddc34aff0e77))
* update post title style ([724dc02](https://github.com/eallion/eallion.com/commit/724dc024ad47588eeb1f8f99931f93bb37000191))
* wrap ([6e70e65](https://github.com/eallion/eallion.com/commit/6e70e653804f21bc8fb30ec0aa577350e89354b9))


### Features

* 嘀咕页面img表情和md表情的图片正则 ([f373cc0](https://github.com/eallion/eallion.com/commit/f373cc09b4047833e9a438dbdf6a6aa506d73eb2))
* add noto serif tc for talk pages ([7389938](https://github.com/eallion/eallion.com/commit/7389938fe8e83e46a4c33fa1a65a6b0493798411))
* change jinrishici api to gushi.ci ([d431a6e](https://github.com/eallion/eallion.com/commit/d431a6ea64f87cc3ca5dab851494459f97aa59d7))
* enable changecrab ([66c1dfb](https://github.com/eallion/eallion.com/commit/66c1dfb4f01198ed85aaf38b3ed3ccbff5552b6c))
* enable gitlab ([096abcf](https://github.com/eallion/eallion.com/commit/096abcf768f32de1640bfdecf979044df8b71cf0))


### Reverts

* 97f45a0a7c3665a1a0cfa94afbfc43a168ffe22b ([9d71609](https://github.com/eallion/eallion.com/commit/9d716091843beca40cd34e9b80851262889c47a9))



20 changes: 20 additions & 0 deletions GLWTPL
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
GLWT(Good Luck With That,祝你好运)公共许可证
版权所有 © 每个人,除了作者

任何人都被允许复制、分发、修改、合并、销售、出版、再授权或
任何其它操作,但风险自负。

作者对这个项目中的代码一无所知。
代码处于可用或不可用状态,没有第三种情况。


祝你好运公共许可证
复制、分发和修改的条款和条件

0 :在不导致作者被指责或承担责任的情况下,你可以做任何你想
要做的事情。

无论是在合同行为、侵权行为或其它因使用本软件产生的情形,作
者不对任何索赔、损害承担责任。

祖宗保佑。
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Charles Chin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 0e15bab

Please sign in to comment.