Skip to content

Commit 3fe0b1b

Browse files
committed
博客样式修改
1 parent 4f66dd3 commit 3fe0b1b

25 files changed

Lines changed: 182 additions & 288 deletions

.github/dependabot.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 20
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: weekly

.github/workflows/jekyll.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/pages-deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: "Build and Deploy"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- .gitignore
8+
- README.md
9+
- LICENSE
10+
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Setup Ruby
32+
uses: ruby/setup-ruby@v1
33+
with:
34+
ruby-version: "3.3"
35+
bundler-cache: true
36+
37+
- name: Setup Pages
38+
id: pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Build
42+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
43+
env:
44+
JEKYLL_ENV: production
45+
46+
- name: Upload site artifact
47+
uses: actions/upload-pages-artifact@v3
48+
49+
deploy:
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
runs-on: ubuntu-latest
54+
needs: build
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ _site
44
.jekyll-metadata
55
vendor
66
Gemfile.lock
7+
node_modules
8+
.bundle

404.html

Lines changed: 0 additions & 25 deletions
This file was deleted.

Gemfile

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
11
source "https://gems.ruby-china.com"
2-
gem "webrick", "~> 1.7"
3-
# Hello! This is where you manage which Jekyll version is used to run.
4-
# When you want to use a different version, change it below, save the
5-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
6-
#
7-
# bundle exec jekyll serve
8-
#
9-
# This will help ensure the proper Jekyll version is running.
10-
# Happy Jekylling!
11-
# gem "jekyll", "~> 4.4.1"
12-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
13-
# gem "minima", github: "jekyll/minima", ref: "1e8a445"
14-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
15-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
16-
gem "github-pages", "~> 232", group: :jekyll_plugins
17-
# If you have any plugins, put them here!
18-
# group :jekyll_plugins do
19-
# gem "jekyll-feed", "~> 0.12"
20-
# gem 'jekyll-sass-converter', '~> 1.5.2'
21-
# end
2+
3+
gem "jekyll-theme-chirpy", "~> 7.0"
4+
5+
group :jekyll_plugins do
6+
gem "jekyll-paginate"
7+
gem "jekyll-redirect-from"
8+
gem "jekyll-seo-tag"
9+
gem "jekyll-archives"
10+
gem "jekyll-sitemap"
11+
end
2212

2313
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
2414
# and associated library.
@@ -33,7 +23,3 @@ gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
3323
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
3424
# do not have a Java counterpart.
3525
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
36-
37-
gem "jekyll-github-metadata"
38-
39-
gem "jekyll-compose", group: [:jekyll_plugins]

_config.yml

Lines changed: 66 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,77 @@
1-
title: 为你创作
2-
url: https://xuleixie.github.io/
3-
# author:
4-
# name: xulei Xie
5-
# email: xuleixie@gmail.com
1+
lang: zh-CN
2+
timezone: Asia/Shanghai
63

7-
# The `>` after `description:` means to ignore line-breaks until next key.
8-
# If you want to omit the line-break after the end of text, use `>-` instead.
9-
description: >
10-
联系电话:13068718942,微信同号,注明来意
4+
title: 系统工程/科学
5+
tagline: 站在巨人的肩膀上,追求卓越,探索发现
6+
description: >-
7+
站在巨人的肩膀上,追求卓越,探索发现
8+
url: "https://xuleixie.github.io"
9+
baseurl: ""
1110

12-
# Build settings
11+
theme: jekyll-theme-chirpy
1312

14-
# If you clone the Minima repo and build locally, use this setting.
15-
# theme: minima
13+
github:
14+
username: xuleixie
1615

17-
# As of November 2023, GitHub Pages still uses Minima 2.5.1 (https://pages.github.com/versions/).
18-
# If you want to use the latest Minima version on GitHub Pages, use the following setting and
19-
# add a line comment on "theme: minima" above.
20-
remote_theme: jekyll/minima@v2.5.2
16+
twitter:
17+
username: xiexulei3
18+
19+
social:
20+
name: xulei Xie
21+
email: xuleixie@gmail.com
22+
links:
23+
- https://github.com/xuleixie
24+
- https://x.com/xiexulei3
25+
26+
theme_mode: dark
27+
28+
avatar: ""
29+
30+
toc: true
31+
32+
paginate: 10
2133

2234
plugins:
23-
- jekyll-feed
35+
- jekyll-paginate
36+
- jekyll-redirect-from
2437
- jekyll-seo-tag
25-
- jekyll-github-metadata
26-
# Minima specific settings, which are only available from Minima 3.0 onward.
27-
minima:
28-
# Minima skin selection.
29-
# Available skins are:
30-
# classic Default, light color scheme.
31-
# dark Dark variant of the classic skin.
32-
# auto Adaptive skin based on the default classic and dark skins.
33-
# solarized-light Light variant of solarized color scheme.
34-
# solarized-dark Dark variant of solarized color scheme.
35-
# solarized Adaptive skin for solarized color scheme skins.
36-
skin: solarized-dark
38+
- jekyll-archives
39+
- jekyll-sitemap
3740

38-
# If you want to link only specific pages in the site-navigation, use this and list
39-
# the `path` property (as represented via Liquid) of the pages in the order they should
40-
# be rendered.
41-
nav_pages:
42-
- about.md
41+
jekyll-archives:
42+
enabled: [categories, tags]
43+
layouts:
44+
category: category
45+
tag: tag
46+
permalinks:
47+
tag: /tags/:name/
48+
category: /categories/:name/
4349

44-
# Set to `true` to show excerpts on the homepage.
45-
# show_excerpts: true
50+
defaults:
51+
- scope:
52+
path: ""
53+
type: posts
54+
values:
55+
layout: post
56+
comments: true
57+
toc: true
58+
permalink: /posts/:title/
59+
- scope:
60+
path: _tabs
61+
values:
62+
layout: page
63+
permalink: /:title/
4664

47-
# Minima date format.
48-
# The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
49-
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
50-
#date_format: "%b-%d-%Y"
65+
sass:
66+
style: compressed
5167

52-
# Social Media Links
53-
# Renders icons via Font Awesome Free webfonts CDN, based on ordered list of entries.
54-
#
55-
# Entry keys:
56-
# * title Tooltip rendered on hovering over icon.
57-
# * icon Font Awesome icon id. `github` corresponds to `fa-github`.
58-
# * url Full URL of social profile.
59-
social_links:
60-
- title: My blog repository at GitHub
61-
icon: github
62-
url: "https://github.com/xuleixie/xuleixie.github.io"
63-
- title: My X(formerly Twitter)
64-
icon: x-twitter
65-
url: "https://x.com/xiexulei3"
68+
exclude:
69+
- "*.gem"
70+
- "*.gemspec"
71+
- docs
72+
- tools
73+
- README.md
74+
- LICENSE
75+
- rollup.config.js
76+
- package*.json
77+
- node_modules

_posts/2025-03-27-welcome-to-jekyll.markdown renamed to _posts/2025-03-27-welcome-to-jekyll.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
layout: post
3-
title: "Welcome to Jekyll!"
4-
date: 2025-03-27 16:32:42 +0800
5-
categories: jekyll update
2+
title: "Welcome to Jekyll!"
3+
date: 2025-03-27 16:32:42 +0800
4+
categories: [Jekyll, Update]
5+
tags: [jekyll, getting-started]
66
---
77
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
88

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
---
2-
layout: post
32
title: 使用jekyll构建GitHub Pages站点过程总结
43
date: 2025-03-28 17:17 +0800
4+
categories: [Jekyll, Tutorial]
5+
tags: [jekyll, github-pages, ruby]
56
---
67

7-
打开github官方文档,映入眼帘的是海量的工具,软件,教程,让人眼花缭乱。
8+
1. 查看github pages的帮助文档,地址:
9+
[https://docs.github.com/zh/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll](https://docs.github.com/zh/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll)<br>
10+
文档中提示需要安装Jekyll,Git,Ruby,bundler等工具
11+
2. 安装ruby,下载地址为:
12+
[https://rubyinstaller.org/downloads/](https://rubyinstaller.org/downloads/)
13+
14+
3. 安装bundler,命令为gem install bundler
15+
816

_posts/2025-03-28-神奇的斐波拉契数列.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)