Skip to content

Commit

Permalink
增加外挂标签
Browse files Browse the repository at this point in the history
  • Loading branch information
xlenco committed Aug 22, 2022
1 parent 140be51 commit d3f3ad5
Show file tree
Hide file tree
Showing 41 changed files with 2,697 additions and 912 deletions.
12 changes: 12 additions & 0 deletions .github/pull-request-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- 请务必在创建PR前,在右侧 Labels 选项中加上label的其中一个: [feature]、[fix]、[documentation] 。以便于Actions自动生成Releases时自动对PR进行归类。-->

**在提出此拉取请求时,我确认了以下几点(请复选框):**

- [ ] 我已阅读并理解[贡献者指南]()
- [ ] 我已检查没有与此请求重复的拉取请求。
- [ ] 我已经考虑过,并确认这份呈件对其他人很有价值。
- [ ] 我接受此提交可能不会被使用,并根据维护人员的意愿关闭拉取请求。

**填写PR内容:**

-
31 changes: 31 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
yjokname-template: 'v$RESOLVED_VERSION 🌈'
tag-template: '$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
4 changes: 1 addition & 3 deletions .github/workflows/autodeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}

steps:
- name: 检查分支
Expand Down Expand Up @@ -44,15 +43,14 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install --save
npm install hexo-algoliasearch --save
- name: 生成静态文件
run: |
hexo clean
hexo generate
hexo algolia
gulp
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ public/
.deploy*/
.deploy_git*/
.idea
themes/butterfly/.git
themes/butterfly/.git
.git/
30 changes: 19 additions & 11 deletions _config.butterfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ menu:
随便逛逛: /random/ || fas fa-shoe-prints
社交 || fas fa-bars ||hide:
友链: /link/ || fas fa-link
开往 : https://travellings.link/ || fas fa-train-subway
开往 : https://travellings.cn/ || fas fa-train-subway
朋友圈: /fcircle/ || fas fa-user-group
哔哔: /bb/ || fas fa-comment-dots
娱乐 || fas fa-cookie-bite ||hide:
音乐: /music/ || fas fa-music
# 音乐: /music/ || fas fa-music
壁纸: /Gallery/ || fas fa-images
YesPlayMusic : https://musicial.vercel.app/ || fas fa-music
Mikutap : https://mikutapmusic.vercel.app/ || fas fa-gamepad
Expand Down Expand Up @@ -94,7 +95,7 @@ favicon: /img/favicon.png

# Avatar (頭像)
avatar:
img: https://ik.imagekit.io/nicexl/head.jpg
img: /img/head.webp
effect: false

# Disable all banner image
Expand All @@ -104,14 +105,14 @@ disable_top_img: false
index_img: /img/Ycgj8Wymp.webp

# If the banner of page not setting, it will show the top_img
default_top_img:
default_top_img:

# The banner image of archive page
archive_img: https://ik.imagekit.io/nicexl/Wallpaper/book.jpg
archive_img: /img/book.webp

# If the banner of tag page not setting, it will show the top_img
# note: tag page, not tags page (子標籤頁面的 top_img)
tag_img: https://ik.imagekit.io/nicexl/Wallpaper/0e6ebd91ee468bce3f13144e10a85f64_POGF3L8jPa.jpeg
tag_img: /img/yfvt7.webp

# The banner image of tag page
# format:
Expand All @@ -120,7 +121,7 @@ tag_per_img:

# If the banner of category page not setting, it will show the top_img
# note: category page, not categories page (子分類頁面的 top_img)
category_img: https://ik.imagekit.io/nicexl/Wallpaper/3845963ba_tr6GQHL3d.jpg
category_img: /img/hggv.webp

# The banner image of category page
# format:
Expand All @@ -146,7 +147,7 @@ error_img:

# A simple 404 page
error_404:
enable: true
enable: false
subtitle: 'Page Not Found'
background: https://i.loli.net/2020/05/19/aKOcLiyPl2JQdFD.png

Expand Down Expand Up @@ -445,7 +446,7 @@ cnzz_analytics:

# Cloudflare Analytics
# https://www.cloudflare.com/zh-tw/web-analytics/
cloudflare_analytics: af5185b0eacb4c0a9008164846b8e2fa
cloudflare_analytics: f6e86b4bf56546559a58d7d3cfde580d

# Microsoft Clarity
# https://clarity.microsoft.com/
Expand Down Expand Up @@ -676,7 +677,7 @@ aside:
card_tags:
enable: true
limit: 40 # if set 0 will show all
color: false
color: true
sort_order: # Don't modify the setting unless you know how it works
card_archives:
enable: true
Expand Down Expand Up @@ -858,9 +859,16 @@ css_prefix: true
inject:
head:
- <script src="/js/ClientWorker.js"></script>
- <meta name="msvalidate.01" content="45638703FCDBAEC549D1FA7EBFAB12BC" />
- <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js?id=JmsRdzV6syTLtUyn&ck=JmsRdzV6syTLtUyn"></script>
- <script async src="https://fastly.jsdelivr.net/npm/clientworker/dist/autoupdate.min.js"></script>
- <script async src="https://npm.elemecdn.com/[email protected]/dist/jquery.min.js"></script>
- <link rel="stylesheet" type="text/css" href="https://fastly.jsdelivr.net/gh/xlenco/JS-X@main/mainColor/heoMainColor.css">
# - <link rel="stylesheet" href="/xxx.css">
bottom:
- <script async data-pjax src="/js/rightmenu.js"></script>
- <canvas id="universe"></canvas>
- <script defer src="/js/custom.js"></script>
- <script defer src="/js/universe.js"></script>
# - <script src="xxxx"></script>

Expand Down Expand Up @@ -934,4 +942,4 @@ CDN:
# meting_js:
# prismjs_js:
# prismjs_lineNumber_js:
# prismjs_autoloader:
# prismjs_autoloader:
72 changes: 68 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ code_dir: downloads/code
i18n_dir: :lang
skip_render:
- config.yaml
- 404.html

# Writing
new_post_name: :title.md # File name of new posts
Expand Down Expand Up @@ -83,8 +84,10 @@ theme: butterfly
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: ''

# - type: git
# repo: [email protected]:xlenco/xlenco.github.io.git
# branch: master
# ignore_hidden: false

nofollow:
enable: true
Expand All @@ -97,7 +100,9 @@ feed:
type:
- atom
- rss
path: atom.xml
path:
- atom.xml
- rss.xml
limit: 20
hub:
content:
Expand Down Expand Up @@ -135,5 +140,64 @@ sitemap:
tags: true
categories: true

# enable: 开启/关闭 推送
# count: 每次提交最新的10篇文章
# https://github.com/lete114/hexo-seo-autopush
hexo_seo_autopush:
baidu:
enable: false
count: 100
bing:
enable: true
count: 10
google:
enable: false
count: 10
google_file: google_service_account.json # 谷歌服务账户

# hexo-electric-clock
electric_clock:
priority: 5
enable: true
enable_page: all
layout:
type: class
name: sticky_layout
index: 0
temple_html: '<div class="card-widget card-clock"><div class="card-glass"><div class="card-background"><div class="card-content"><div id="hexo_electric_clock"><img id="card-clock-loading" src="https://ik.imagekit.io/nicexl/loading_Nxe_XduJU.gif" style="height: 120px; width: 100%;" data-ll-status="loading" class="entered loading"></div></div></div></div></div>'

# Ice Kano Plus_in
# Hexo Github Canlendar
# Author: Ice Kano
githubcalendar:
enable: true
enable_page: /
user: xlenco
layout:
type: id
name: recent-posts
index: 0
githubcalendar_html: '<div class="recent-post-item" style="width:100%;height:auto;padding:10px;"><div id="github_loading" style="width:10%;height:100%;margin:0 auto;display: block"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50" xml:space="preserve"><path fill="#d0d0d0" d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z" transform="rotate(275.098 25 25)"><animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite"></animateTransform></path></svg></div><div id="github_container"></div></div>'
pc_minheight: 280px
mobile_minheight: 0px
color: "['#ebedf0', '#a2f7af', '#6ce480', '#54ad63', '#469252', '#31753c', '#1f5f2a', '#13531f', '#084111', '#032b09', '#000000']"
api: https://calendar-api-mu.vercel.app/api
# api: https://python-gitee-calendar-api.vercel.app/api
calendar_js: https://fastly.jsdelivr.net/gh/xlenco/JS-X@main/hexo_githubcalendar.js
plus_style: ""


# tag-plugins-plus
# see https://akilar.top/posts/615e2dec/
tag_plugins:
enable: true # 开关
priority: 5 #过滤器优先权
issues: false #issues标签依赖注入开关
link:
placeholder: /img/link.svg #link_card标签默认的图标图片
CDN:
anima: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/font-awesome-animation.min.css #动画标签anima的依赖
# jquery: https://npm.elemecdn.com/jquery@latest/dist/jquery.min.js #issues标签依赖
issues: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/issues.js #issues标签依赖
# iconfont: //at.alicdn.com/t/font_2032782_8d5kxvn09md.js #参看https://akilar.top/posts/d2ebecef/
carousel: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/carousel-touch.js
tag_plugins_css: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/tag_plugins.css
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ gulp.task('mini-font', (cb) => {
// 运行gulp命令时依次执行以下任务
gulp.task('default', gulp.parallel(
'compress', 'minify-css', 'minify-html','mini-font'
))
))
Loading

0 comments on commit d3f3ad5

Please sign in to comment.