Skip to content

Commit bd7158f

Browse files
committed
首次发布代码
0 parents  commit bd7158f

File tree

132 files changed

+5588
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+5588
-0
lines changed

.jekyll-metadata

53 KB
Binary file not shown.

404.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
layout: default
3+
permalink: /404.html
4+
title: 404
5+
index: no
6+
---
7+
8+
<center><h1>404</h1></center>
9+
10+
Page Not Found.
11+
12+
页面很可能被转移到新的地址,请尝试搜索。
13+
14+
<!-- 若使用algolia,则保留如下代码>
15+
<div id="search-searchbar"></div>
16+
<div class="post-list" id="search-hits">
17+
</div>
18+
{% include algolia.html %}
19+
<!-- 若使用algolia,则保留如上代码>
20+
21+
<!-- 若使用本地搜索,则保留如下代码>
22+
<!-- HTML elements for search -->
23+
<input type="text" id="search-input" placeholder="搜索:标题、标签、时间、摘要" style="
24+
transition: box-shadow .4s ease,background .4s ease,-webkit-box-shadow .4s ease;
25+
display: inline-block;
26+
margin: 0 12px 12px 0;
27+
background: #f5f5f500;
28+
border: 1px solid rgba(0, 0, 0, 0.15);
29+
border-radius: 6px;
30+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
31+
transition: all 0.23s ease-in-out 0s;
32+
line-height: 1.7;
33+
color: #202020;
34+
max-width: 100%;
35+
margin-bottom: 15px;
36+
padding: 0.5rem 0.75rem;
37+
font-size: 1rem;
38+
line-height: 1.7;
39+
width: 325px;
40+
"/>
41+
42+
<ul id="results-container"></ul>
43+
44+
<!-- script pointing to jekyll-search.js -->
45+
46+
<script src="/js/simple-jekyll-search.js"></script>
47+
48+
<script>
49+
SimpleJekyllSearch({
50+
searchInput: document.getElementById('search-input'),
51+
resultsContainer: document.getElementById('results-container'),
52+
json: '/search.json',
53+
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>',
54+
noResultsText: '没有搜索到文章',
55+
limit: 20,
56+
fuzzy: false
57+
})
58+
</script>
59+
60+
<!-- 若使用本地搜索,则保留如上代码 -->

Gemfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
gemspec
5+
gem "jekyll-feed"
6+
gem "jekyll-paginate"
7+
gem "jekyll-redirect-from"
8+
gem "jekyll-seo-tag"
9+
gem "jekyll-sitemap"
10+
gem "jekyll-tagging"
11+
gem "jekyll-tagging-related_posts"
12+
gem "kramdown-parser-gfm"
13+
14+
gem 'jekyll', '~> 3.6'
15+
16+
group :jekyll_plugins do
17+
gem 'jekyll-algolia', '~> 1.0'
18+
end
19+
gem "webrick", "~> 1.7"

Gemfile.lock

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
PATH
2+
remote: .
3+
specs:
4+
jekyll-theme-tactile (0.2.0)
5+
jekyll (> 3.6, < 5.0)
6+
jekyll-seo-tag (~> 2.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
activesupport (6.0.5.1)
12+
concurrent-ruby (~> 1.0, >= 1.0.2)
13+
i18n (>= 0.7, < 2)
14+
minitest (~> 5.1)
15+
tzinfo (~> 1.1)
16+
zeitwerk (~> 2.2, >= 2.2.2)
17+
addressable (2.8.0)
18+
public_suffix (>= 2.0.2, < 5.0)
19+
algolia_html_extractor (2.6.4)
20+
json (~> 2.0)
21+
nokogiri (~> 1.10)
22+
algoliasearch (1.27.5)
23+
httpclient (~> 2.8, >= 2.8.3)
24+
json (>= 1.5.1)
25+
ast (2.4.2)
26+
colorator (1.1.0)
27+
concurrent-ruby (1.1.10)
28+
em-websocket (0.5.3)
29+
eventmachine (>= 0.12.9)
30+
http_parser.rb (~> 0)
31+
eventmachine (1.2.7)
32+
ffi (1.15.5)
33+
filesize (0.2.0)
34+
forwardable-extended (2.6.0)
35+
http_parser.rb (0.8.0)
36+
httpclient (2.8.3)
37+
i18n (0.9.5)
38+
concurrent-ruby (~> 1.0)
39+
jekyll (3.9.2)
40+
addressable (~> 2.4)
41+
colorator (~> 1.0)
42+
em-websocket (~> 0.5)
43+
i18n (~> 0.7)
44+
jekyll-sass-converter (~> 1.0)
45+
jekyll-watch (~> 2.0)
46+
kramdown (>= 1.17, < 3)
47+
liquid (~> 4.0)
48+
mercenary (~> 0.3.3)
49+
pathutil (~> 0.9)
50+
rouge (>= 1.7, < 4)
51+
safe_yaml (~> 1.0)
52+
jekyll-algolia (1.7.1)
53+
algolia_html_extractor (~> 2.6)
54+
algoliasearch (~> 1.26)
55+
filesize (~> 0.1)
56+
jekyll (>= 3.6, < 5.0)
57+
json (~> 2.0)
58+
nokogiri (~> 1.6)
59+
progressbar (~> 1.9)
60+
verbal_expressions (~> 0.1.5)
61+
jekyll-feed (0.16.0)
62+
jekyll (>= 3.7, < 5.0)
63+
jekyll-paginate (1.1.0)
64+
jekyll-redirect-from (0.16.0)
65+
jekyll (>= 3.3, < 5.0)
66+
jekyll-sass-converter (1.5.2)
67+
sass (~> 3.4)
68+
jekyll-seo-tag (2.8.0)
69+
jekyll (>= 3.8, < 5.0)
70+
jekyll-sitemap (1.4.0)
71+
jekyll (>= 3.7, < 5.0)
72+
jekyll-tagging (1.1.0)
73+
nuggets
74+
jekyll-tagging-related_posts (1.2.0)
75+
jekyll (>= 3.9, < 5.0)
76+
jekyll-watch (2.2.1)
77+
listen (~> 3.0)
78+
json (2.6.2)
79+
kramdown (2.4.0)
80+
rexml
81+
kramdown-parser-gfm (1.1.0)
82+
kramdown (~> 2.0)
83+
liquid (4.0.3)
84+
listen (3.7.1)
85+
rb-fsevent (~> 0.10, >= 0.10.3)
86+
rb-inotify (~> 0.9, >= 0.9.10)
87+
mercenary (0.3.6)
88+
minitest (5.16.2)
89+
nokogiri (1.13.7-arm64-darwin)
90+
racc (~> 1.4)
91+
nuggets (1.6.1)
92+
parallel (1.22.1)
93+
parser (3.1.2.0)
94+
ast (~> 2.4.1)
95+
pathutil (0.16.2)
96+
forwardable-extended (~> 2.6)
97+
progressbar (1.11.0)
98+
public_suffix (4.0.7)
99+
racc (1.6.0)
100+
rack (2.2.4)
101+
rainbow (3.1.1)
102+
rb-fsevent (0.11.1)
103+
rb-inotify (0.10.1)
104+
ffi (~> 1.0)
105+
regexp_parser (2.5.0)
106+
rexml (3.2.5)
107+
rouge (3.29.0)
108+
rubocop (1.31.2)
109+
json (~> 2.3)
110+
parallel (~> 1.10)
111+
parser (>= 3.1.0.0)
112+
rainbow (>= 2.2.2, < 4.0)
113+
regexp_parser (>= 1.8, < 3.0)
114+
rexml (>= 3.2.5, < 4.0)
115+
rubocop-ast (>= 1.18.0, < 2.0)
116+
ruby-progressbar (~> 1.7)
117+
unicode-display_width (>= 1.4.0, < 3.0)
118+
rubocop-ast (1.19.1)
119+
parser (>= 3.1.1.0)
120+
rubocop-github (0.18.0)
121+
rubocop (>= 1.0.0)
122+
rubocop-performance
123+
rubocop-rails
124+
rubocop-performance (1.14.2)
125+
rubocop (>= 1.7.0, < 2.0)
126+
rubocop-ast (>= 0.4.0)
127+
rubocop-rails (2.15.2)
128+
activesupport (>= 4.2.0)
129+
rack (>= 1.1)
130+
rubocop (>= 1.7.0, < 2.0)
131+
ruby-progressbar (1.11.0)
132+
safe_yaml (1.0.5)
133+
sass (3.7.4)
134+
sass-listen (~> 4.0.0)
135+
sass-listen (4.0.0)
136+
rb-fsevent (~> 0.9, >= 0.9.4)
137+
rb-inotify (~> 0.9, >= 0.9.7)
138+
thread_safe (0.3.6)
139+
tzinfo (1.2.10)
140+
thread_safe (~> 0.1)
141+
unicode-display_width (2.2.0)
142+
verbal_expressions (0.1.5)
143+
webrick (1.7.0)
144+
zeitwerk (2.6.0)
145+
146+
PLATFORMS
147+
arm64-darwin-21
148+
149+
DEPENDENCIES
150+
jekyll (~> 3.6)
151+
jekyll-algolia (~> 1.0)
152+
jekyll-feed
153+
jekyll-paginate
154+
jekyll-redirect-from
155+
jekyll-seo-tag
156+
jekyll-sitemap
157+
jekyll-tagging
158+
jekyll-tagging-related_posts
159+
jekyll-theme-tactile!
160+
kramdown-parser-gfm
161+
rubocop-github (~> 0.16)
162+
webrick (~> 1.7)
163+
164+
BUNDLED WITH
165+
2.3.18

LICENSE

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
CC0 1.0 Universal
2+
3+
Statement of Purpose
4+
5+
The laws of most jurisdictions throughout the world automatically confer
6+
exclusive Copyright and Related Rights (defined below) upon the creator and
7+
subsequent owner(s) (each and all, an "owner") of an original work of
8+
authorship and/or a database (each, a "Work").
9+
10+
Certain owners wish to permanently relinquish those rights to a Work for the
11+
purpose of contributing to a commons of creative, cultural and scientific
12+
works ("Commons") that the public can reliably and without fear of later
13+
claims of infringement build upon, modify, incorporate in other works, reuse
14+
and redistribute as freely as possible in any form whatsoever and for any
15+
purposes, including without limitation commercial purposes. These owners may
16+
contribute to the Commons to promote the ideal of a free culture and the
17+
further production of creative, cultural and scientific works, or to gain
18+
reputation or greater distribution for their Work in part through the use and
19+
efforts of others.可以的。
20+
21+
For these and/or other purposes and motivations, and without any expectation
22+
of additional consideration or compensation, the person associating CC0 with a
23+
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
24+
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
25+
and publicly distribute the Work under its terms, with knowledge of his or her
26+
Copyright and Related Rights in the Work and the meaning and intended legal
27+
effect of CC0 on those rights.
28+
29+
1. Copyright and Related Rights. A Work made available under CC0 may be
30+
protected by copyright and related or neighboring rights ("Copyright and
31+
Related Rights"). Copyright and Related Rights include, but are not limited
32+
to, the following:
33+
34+
i. the right to reproduce, adapt, distribute, perform, display, communicate,
35+
and translate a Work;
36+
37+
ii. moral rights retained by the original author(s) and/or performer(s);
38+
39+
iii. publicity and privacy rights pertaining to a person's image or likeness
40+
depicted in a Work;
41+
42+
iv. rights protecting against unfair competition in regards to a Work,
43+
subject to the limitations in paragraph 4(a), below;
44+
45+
v. rights protecting the extraction, dissemination, use and reuse of data in
46+
a Work;
47+
48+
vi. database rights (such as those arising under Directive 96/9/EC of the
49+
European Parliament and of the Council of 11 March 1996 on the legal
50+
protection of databases, and under any national implementation thereof,
51+
including any amended or successor version of such directive); and
52+
53+
vii. other similar, equivalent or corresponding rights throughout the world
54+
based on applicable law or treaty, and any national implementations thereof.
55+
56+
2. Waiver. To the greatest extent permitted by, but not in contravention of,
57+
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
58+
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
59+
and Related Rights and associated claims and causes of action, whether now
60+
known or unknown (including existing as well as future claims and causes of
61+
action), in the Work (i) in all territories worldwide, (ii) for the maximum
62+
duration provided by applicable law or treaty (including future time
63+
extensions), (iii) in any current or future medium and for any number of
64+
copies, and (iv) for any purpose whatsoever, including without limitation
65+
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
66+
the Waiver for the benefit of each member of the public at large and to the
67+
detriment of Affirmer's heirs and successors, fully intending that such Waiver
68+
shall not be subject to revocation, rescission, cancellation, termination, or
69+
any other legal or equitable action to disrupt the quiet enjoyment of the Work
70+
by the public as contemplated by Affirmer's express Statement of Purpose.
71+
72+
3. Public License Fallback. Should any part of the Waiver for any reason be
73+
judged legally invalid or ineffective under applicable law, then the Waiver
74+
shall be preserved to the maximum extent permitted taking into account
75+
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
76+
is so judged Affirmer hereby grants to each affected person a royalty-free,
77+
non transferable, non sublicensable, non exclusive, irrevocable and
78+
unconditional license to exercise Affirmer's Copyright and Related Rights in
79+
the Work (i) in all territories worldwide, (ii) for the maximum duration
80+
provided by applicable law or treaty (including future time extensions), (iii)
81+
in any current or future medium and for any number of copies, and (iv) for any
82+
purpose whatsoever, including without limitation commercial, advertising or
83+
promotional purposes (the "License"). The License shall be deemed effective as
84+
of the date CC0 was applied by Affirmer to the Work. Should any part of the
85+
License for any reason be judged legally invalid or ineffective under
86+
applicable law, such partial invalidity or ineffectiveness shall not
87+
invalidate the remainder of the License, and in such case Affirmer hereby
88+
affirms that he or she will not (i) exercise any of his or her remaining
89+
Copyright and Related Rights in the Work or (ii) assert any associated claims
90+
and causes of action with respect to the Work, in either case contrary to
91+
Affirmer's express Statement of Purpose.
92+
93+
4. Limitations and Disclaimers.
94+
95+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
96+
surrendered, licensed or otherwise affected by this document.
97+
98+
b. Affirmer offers the Work as-is and makes no representations or warranties
99+
of any kind concerning the Work, express, implied, statutory or otherwise,
100+
including without limitation warranties of title, merchantability, fitness
101+
for a particular purpose, non infringement, or the absence of latent or
102+
other defects, accuracy, or the present or absence of errors, whether or not
103+
discoverable, all to the greatest extent permissible under applicable law.
104+
105+
c. Affirmer disclaims responsibility for clearing rights of other persons
106+
that may apply to the Work or any use thereof, including without limitation
107+
any person's Copyright and Related Rights in the Work. Further, Affirmer
108+
disclaims responsibility for obtaining any necessary consents, permissions
109+
or other rights required for any use of the Work.
110+
111+
d. Affirmer understands and acknowledges that Creative Commons is not a
112+
party to this document and has no duty or obligation with respect to this
113+
CC0 or use of the Work.
114+
115+
For more information, please see
116+
<http://creativecommons.org/publicdomain/zero/1.0/>

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
1. A blog on Github Page。**若Folk,请将我的全部文章移除**
2+
3+
2. 你需要学会如何删除html和css的注释。对于html,删除`<!-- -->`直到其所包含的代码的高亮正常。对于css,删除`/*``*/`直到其所包含的代码的高亮正常。
4+
5+
3. 本地运行示例:
6+
7+
`bundle install` (首次运行需要)
8+
9+
`bundle exec jekyll server`
10+
11+
4. 关于使用搜索功能,参考[这篇文章](https://pathos.page/algolia-jekyll-blog.html)

0 commit comments

Comments
 (0)