Skip to content

Commit 5fb5151

Browse files
committed
add jekyll.yml
Signed-off-by: husharp <[email protected]>
1 parent fde46f0 commit 5fb5151

File tree

22 files changed

+99
-187
lines changed

22 files changed

+99
-187
lines changed

.github/workflows/jekyll.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
6+
name: Deploy Jekyll site to Pages
7+
on:
8+
# Runs on pushes targeting the default branch
9+
push:
10+
branches: ["master"]
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
jobs:
24+
# Build job
25+
build:
26+
runs-on: ubuntu-24.04
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
- name: Setup Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: '3.3' # Not needed with a `.ruby-version` or `.tool-versions`
34+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
35+
- name: Setup Pages
36+
id: pages
37+
uses: actions/configure-pages@v4
38+
- name: Build with Jekyll
39+
# Outputs to the './_site' directory by default
40+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
41+
env:
42+
JEKYLL_ENV: production
43+
- name: Upload artifact
44+
# Automatically uploads an artifact from the './_site' directory by default
45+
uses: actions/upload-pages-artifact@v3
46+
# Deployment job
47+
deploy:
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
runs-on: ubuntu-latest
52+
needs: build
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

Gemfile.lock

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

_layouts/blog.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532
{% if page.side_by_side == "translation" %}
3633
<style>
@@ -66,7 +63,7 @@
6663
padding: 0px 40px 0px 0px;
6764
}
6865
.side-by-side tbody tr td:nth-child(2) {
69-
padding: 0px 0px 0px 20px;
66+
padding: 0px 0px 0px 40px;
7067
}
7168
</style>
7269
{% elsif page.side_by_side == "comment" %}
@@ -104,12 +101,12 @@
104101
width: 85%;
105102
}
106103
.side-by-side tbody tr td:nth-child(2) {
104+
padding: 0px 0px 0px 0px;
107105
position: absolute;
108-
top: 0;
109106
width: 15%;
110-
padding: 0;
111-
font-size: 0.9rem;
112-
text-align: left;
107+
}
108+
.side-by-side tbody tr td:nth-child(2) p {
109+
font-size: 0.9rem
113110
}
114111
.side-content {
115112
top: 0;
@@ -156,7 +153,7 @@ <h1>{{page.title}}</h1>
156153
{% endfor %}
157154
</ul>
158155
{% endif %}
159-
</div>
156+
</div>
160157

161158
<!-- Set Content -->
162159
<div style="float: right;">

_posts/2024-12-23-2024-retrospect.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ side_by_side: comment
99
* content
1010
{:toc}
1111

12+
今年总共读了 39 本书,看了 99 部影视,听了 600h+ 播客。在此记录分享一些个人喜爱的作品,夹杂着一些联想来帮助强化个人*信念之网*与记忆。
1213

1314
[NOTE] 信念之网:通过观察(实指法)传递信念,信念交织组成了一张巨大的信念之网,从内到外:自明性(逻辑真理)、常识、证言(权威)、假说。 ——《蒯因著作集(第5卷)》
1415

15-
今年总共读了 39 本书,看了 99 部影视,听了 600h+ 播客。在此记录分享一些个人喜爱的作品,夹杂着一些联想来帮助强化个人*信念之网*与记忆。
16-
1716
## 政治与社会
1817

1918
* [当代政治哲学](https://book.douban.com/subject/26389495/):今年最费神的一本。作为导论满分,要是各个学科导论能做到这本书的质量和延伸那该多好呀

_site/collections.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -87,7 +84,7 @@ <h1>Collection</h1>
8784

8885

8986

90-
</div>
87+
</div>
9188

9289
<!-- Set Content -->
9390
<div style="float: right;">

_site/cpu/2020/09/28/hust-cpu-study.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -582,7 +579,7 @@ <h3 id="8流水传输实验海明码与crc思路一致">8、流水传输实验
582579

583580

584581

585-
</div>
582+
</div>
586583

587584
<!-- Set Content -->
588585
<div style="float: right;">

_site/cpu/2020/10/05/hust-cpu-study_2.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -589,7 +586,7 @@ <h3 id="11补码-1-位乘法器设计实验">11.补码 1 位乘法器设计实
589586

590587

591588

592-
</div>
589+
</div>
593590

594591
<!-- Set Content -->
595592
<div style="float: right;">

_site/cpu/2020/10/19/hust-cpu-study_3.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -1177,7 +1174,7 @@ <h4 id="3组相联特点">3.组相联特点</h4>
11771174

11781175

11791176

1180-
</div>
1177+
</div>
11811178

11821179
<!-- Set Content -->
11831180
<div style="float: right;">

_site/cpu/2020/11/13/hust-cpu-study_4.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -483,7 +480,7 @@ <h3 id="三mips-微程序-cpu-设计">三、MIPS 微程序 CPU 设计</h3>
483480

484481

485482

486-
</div>
483+
</div>
487484

488485
<!-- Set Content -->
489486
<div style="float: right;">

_site/distributed/2023/05/20/Flashback-in-TiKV.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -687,7 +684,7 @@ <h3 id="参考文档">参考文档</h3>
687684

688685

689686

690-
</div>
687+
</div>
691688

692689
<!-- Set Content -->
693690
<div style="float: right;">

_site/feed.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.2">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2024-12-23T20:51:25+01:00</updated><id>http://localhost:4000/feed.xml</id><entry><title type="html">阅读与观影:2024 片段</title><link href="http://localhost:4000/life/2024/12/23/2024-retrospect.html" rel="alternate" type="text/html" title="阅读与观影:2024 片段" /><published>2024-12-23T13:51:28+01:00</published><updated>2024-12-23T13:51:28+01:00</updated><id>http://localhost:4000/life/2024/12/23/2024-retrospect</id><content type="html" xml:base="http://localhost:4000/life/2024/12/23/2024-retrospect.html"><![CDATA[<ul id="markdown-toc">
1+
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.2">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2024-12-23T21:38:04+01:00</updated><id>http://localhost:4000/feed.xml</id><entry><title type="html">阅读与观影:2024 片段</title><link href="http://localhost:4000/life/2024/12/23/2024-retrospect.html" rel="alternate" type="text/html" title="阅读与观影:2024 片段" /><published>2024-12-23T13:51:28+01:00</published><updated>2024-12-23T13:51:28+01:00</updated><id>http://localhost:4000/life/2024/12/23/2024-retrospect</id><content type="html" xml:base="http://localhost:4000/life/2024/12/23/2024-retrospect.html"><![CDATA[<ul id="markdown-toc">
22
<li><a href="#政治与社会" id="markdown-toc-政治与社会">政治与社会</a></li>
33
<li><a href="#历史" id="markdown-toc-历史">历史</a> <ul>
44
<li><a href="#德国" id="markdown-toc-德国">德国</a></li>
@@ -15,10 +15,10 @@
1515
<li><a href="#对于-2025-的期待" id="markdown-toc-对于-2025-的期待">对于 2025 的期待</a></li>
1616
</ul>
1717
18-
<p>[NOTE] 信念之网:通过观察(实指法)传递信念,信念交织组成了一张巨大的信念之网,从内到外:自明性(逻辑真理)、常识、证言(权威)、假说。 ——《蒯因著作集(第5卷)》</p>
19-
2018
<p>今年总共读了 39 本书,看了 99 部影视,听了 600h+ 播客。在此记录分享一些个人喜爱的作品,夹杂着一些联想来帮助强化个人<em>信念之网</em>与记忆。</p>
2119
20+
<p>[NOTE] 信念之网:通过观察(实指法)传递信念,信念交织组成了一张巨大的信念之网,从内到外:自明性(逻辑真理)、常识、证言(权威)、假说。 ——《蒯因著作集(第5卷)》</p>
21+
2222
<h2 id="政治与社会">政治与社会</h2>
2323
2424
<ul>

_site/life/2020/07/06/Rain-at-2-years.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -100,7 +97,7 @@ <h1>见雨思友焉</h1>
10097

10198

10299

103-
</div>
100+
</div>
104101

105102
<!-- Set Content -->
106103
<div style="float: right;">

_site/life/2020/07/18/HuSharp-origin.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
max-width: 100%;
2929
padding: 1em;
3030
}
31-
.side-content {
32-
top: 0;
33-
}
3431
</style>
3532

3633
<!-- Begin Jekyll SEO tag v2.8.0 -->
@@ -98,7 +95,7 @@ <h1>HuSharp 的由来</h1>
9895

9996

10097

101-
</div>
98+
</div>
10299

103100
<!-- Set Content -->
104101
<div style="float: right;">

0 commit comments

Comments
 (0)