Skip to content

Commit c0a14e0

Browse files
committed
Initial GitHub pages site with Jekyll
1 parent e63e787 commit c0a14e0

File tree

153 files changed

+174
-132895
lines changed

Some content is hidden

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

153 files changed

+174
-132895
lines changed

.gitignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
.DS_Store
2-
Thumbs.db
3-
db.json
4-
*.log
5-
node_modules/
6-
public/
7-
.deploy*/
8-
_multiconfig.yml
1+
_site
2+
.sass-cache
3+
.jekyll-cache
4+
.jekyll-metadata
5+
vendor
6+
Gemfile.lock

404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: page
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

Gemfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
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+
end
21+
22+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
23+
# and associated library.
24+
platforms :mingw, :x64_mingw, :mswin, :jruby do
25+
gem "tzinfo", ">= 1", "< 3"
26+
gem "tzinfo-data"
27+
end
28+
29+
# Performance-booster for watching directories on Windows
30+
gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
31+
32+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
33+
# do not have a Java counterpart.
34+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

_config.yml

Lines changed: 56 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,56 @@
1-
# Hexo Configuration
2-
## Docs: https://hexo.io/docs/configuration.html
3-
## Source: https://github.com/hexojs/hexo/
4-
5-
# Site
6-
title: Paul's blog
7-
subtitle: '不积跬步,无以至千里'
8-
description: '创作永不停止,爱是永不止息'
9-
keywords: 'linux,Android'
10-
author: xiexulei
11-
language: en
12-
timezone: 'Asia/Shanghai'
13-
14-
# URL
15-
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
16-
url: https://xuleixie.github.io
17-
permalink: :year/:month/:day/:title/
18-
permalink_defaults:
19-
pretty_urls:
20-
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
21-
trailing_html: true # Set to false to remove trailing '.html' from permalinks
22-
23-
# Directory
24-
source_dir: source
25-
public_dir: public
26-
tag_dir: tags
27-
archive_dir: archives
28-
category_dir: categories
29-
code_dir: downloads/code
30-
i18n_dir: :lang
31-
skip_render:
32-
33-
# Writing
34-
new_post_name: :title.md # File name of new posts
35-
default_layout: post
36-
titlecase: false # Transform title into titlecase
37-
external_link:
38-
enable: true # Open external links in new tab
39-
field: site # Apply to the whole site
40-
exclude: ''
41-
filename_case: 0
42-
render_drafts: false
43-
post_asset_folder: true
44-
marked:
45-
prependRoot: true
46-
postAsset: true
47-
relative_link: false
48-
future: true
49-
highlight:
50-
enable: true
51-
line_number: true
52-
auto_detect: false
53-
tab_replace: ''
54-
wrap: true
55-
hljs: false
56-
prismjs:
57-
enable: false
58-
preprocess: true
59-
line_number: true
60-
tab_replace: ''
61-
62-
# Home page setting
63-
# path: Root path for your blogs index page. (default = '')
64-
# per_page: Posts displayed per page. (0 = disable pagination)
65-
# order_by: Posts order. (Order by date descending by default)
66-
index_generator:
67-
path: ''
68-
per_page: 10
69-
order_by: -date
70-
71-
# Category & Tag
72-
default_category: uncategorized
73-
category_map:
74-
tag_map:
75-
76-
# Metadata elements
77-
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
78-
meta_generator: true
79-
80-
# Date / Time format
81-
## Hexo uses Moment.js to parse and display date
82-
## You can customize the date format as defined in
83-
## http://momentjs.com/docs/#/displaying/format/
84-
date_format: YYYY-MM-DD
85-
time_format: HH:mm:ss
86-
## updated_option supports 'mtime', 'date', 'empty'
87-
updated_option: 'mtime'
88-
89-
# Pagination
90-
## Set per_page to 0 to disable pagination
91-
per_page: 10
92-
pagination_dir: page
93-
94-
# Include / Exclude file(s)
95-
## include:/exclude: options only apply to the 'source/' folder
96-
include:
97-
exclude:
98-
ignore:
99-
100-
# Extensions
101-
## Plugins: https://hexo.io/plugins/
102-
## Themes: https://hexo.io/themes/
103-
theme: jekyll-theme-minimal
104-
inverse: true
105-
# Deployment
106-
## Docs: https://hexo.io/docs/one-command-deployment
107-
deploy:
108-
type: 'git'
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
#
11+
# If you need help with YAML syntax, here are some quick references for you:
12+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13+
# https://learnxinyminutes.com/docs/yaml/
14+
#
15+
# Site settings
16+
# These are used to personalize your new site. If you look in the HTML files,
17+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18+
# You can create any custom variable you would like, and they will be accessible
19+
# in the templates via {{ site.myvariable }}.
20+
21+
title: Your awesome title
22+
23+
description: >- # this means to ignore newlines until "baseurl:"
24+
Write an awesome description for your new site here. You can edit this
25+
line in _config.yml. It will appear in your document head meta (for
26+
Google search results) and in your feed.xml site description.
27+
baseurl: "" # the subpath of your site, e.g. /blog
28+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
29+
twitter_username: jekyllrb
30+
github_username: jekyll
31+
32+
# Build settings
33+
theme: minima
34+
remote_theme: "jekyll/minima@1e8a445"
35+
plugins:
36+
- jekyll-feed
37+
port: 4001
38+
# Exclude from processing.
39+
# The following items will not be processed, by default.
40+
# Any item listed under the `exclude:` key here will be automatically added to
41+
# the internal "default list".
42+
#
43+
# Excluded items can be processed by explicitly listing the directories or
44+
# their entries' file path in the `include:` list.
45+
#
46+
# exclude:
47+
# - .sass-cache/
48+
# - .jekyll-cache/
49+
# - gemfiles/
50+
# - Gemfile
51+
# - Gemfile.lock
52+
# - node_modules/
53+
# - vendor/bundle/
54+
# - vendor/cache/
55+
# - vendor/gems/
56+
# - vendor/ruby/
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: post
3+
title: "Welcome to Jekyll!"
4+
date: 2025-03-27 16:32:42 +0800
5+
categories: jekyll update
6+
---
7+
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.
8+
9+
Jekyll requires blog post files to be named according to the following format:
10+
11+
`YEAR-MONTH-DAY-title.MARKUP`
12+
13+
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
14+
15+
Jekyll also offers powerful support for code snippets:
16+
17+
{% highlight ruby %}
18+
def print_hi(name)
19+
puts "Hi, #{name}"
20+
end
21+
print_hi('Tom')
22+
#=> prints 'Hi, Tom' to STDOUT.
23+
{% endhighlight %}
24+
25+
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
26+
27+
[jekyll-docs]: https://jekyllrb.com/docs/home
28+
[jekyll-gh]: https://github.com/jekyll/jekyll
29+
[jekyll-talk]: https://talk.jekyllrb.com/

about.markdown

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: page
3+
title: About
4+
permalink: /about/
5+
---
6+
7+
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/)
8+
9+
You can find the source code for Minima at GitHub:
10+
[jekyll][jekyll-organization] /
11+
[minima](https://github.com/jekyll/minima)
12+
13+
You can find the source code for Jekyll at GitHub:
14+
[jekyll][jekyll-organization] /
15+
[jekyll](https://github.com/jekyll/jekyll)
16+
17+
18+
[jekyll-organization]: https://github.com/jekyll

index.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
# Feel free to add content and custom Front Matter to this file.
3+
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
4+
5+
layout: home
6+
---

0 commit comments

Comments
 (0)