Skip to content

Commit a3f476c

Browse files
author
zhihong
committed
second commit
1 parent be7d158 commit a3f476c

21 files changed

Lines changed: 622 additions & 0 deletions

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_MIRROR__HTTPS://RUBYGEMS__ORG/: "https://gems.ruby-china.com"

.github/workflows/jekyll.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
8+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: [$default-branch]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Setup Ruby
37+
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
38+
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
39+
with:
40+
ruby-version: '3.1' # Not needed with a .ruby-version file
41+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42+
cache-version: 0 # Increment this number if you need to re-download cached gems
43+
- name: Setup Pages
44+
id: pages
45+
uses: actions/configure-pages@v5
46+
- name: GitHub API authentication
47+
env:
48+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
- name: Build with Jekyll
50+
# Outputs to the './_site' directory by default
51+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
52+
env:
53+
JEKYLL_ENV: production
54+
- name: Upload artifact
55+
# Automatically uploads an artifact from the './_site' directory by default
56+
uses: actions/upload-pages-artifact@v3
57+
58+
# Deployment job
59+
deploy:
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: build
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v4

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
www.bugkiller.blog

Gemfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
source "https://gems.ruby-china.com"
2+
3+
gem "github-pages", group: :jekyll_plugins
4+
5+
gem "tzinfo-data"
6+
gem "wdm", "~> 0.1.0" if Gem.win_platform?
7+
8+
# If you have any plugins, put them here!
9+
group :jekyll_plugins do
10+
gem "jekyll-paginate"
11+
gem "jekyll-sitemap"
12+
gem "jekyll-gist"
13+
gem "jekyll-feed"
14+
gem "jemoji"
15+
gem "jekyll-include-cache"
16+
gem "jekyll-algolia"
17+
end

_config.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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+
# Site settings
12+
# These are used to personalize your new site. If you look in the HTML files,
13+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14+
# You can create any custom variable you would like, and they will be accessible
15+
# in the templates via {{ site.myvariable }}.
16+
title: Bug Killer's Blog
17+
# email: zhihong0u0@foxmail.com
18+
description: >- # this means to ignore newlines until "baseurl:"
19+
Write an awesome description for your new site here. You can edit this
20+
line in _config.yml. It will appear in your document head meta (for
21+
Google search results) and in your feed.xml site description.
22+
# twitter_username: username
23+
github_username: upupupCoder
24+
minimal_mistakes_skin: default
25+
search: true
26+
github: [metadata]
27+
# Build settings
28+
markdown: kramdown
29+
remote_theme: mmistakes/minimal-mistakes
30+
# Outputting
31+
permalink: /:categories/:title/
32+
paginate: 5 # amount of posts to show
33+
paginate_path: /page:num/
34+
timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
35+
36+
include:
37+
- _pages
38+
39+
# Exclude from processing.
40+
# The following items will not be processed, by default. Create a custom list
41+
# to override the default setting.
42+
# exclude:
43+
# - Gemfile
44+
# - Gemfile.lock
45+
# - node_modules
46+
# - vendor/bundle/
47+
# - vendor/cache/
48+
# - vendor/gems/
49+
# - vendor/ruby/
50+
51+
# Plugins (previously gems:)
52+
plugins:
53+
- jekyll-paginate
54+
- jekyll-sitemap
55+
- jekyll-gist
56+
- jekyll-feed
57+
- jemoji
58+
- jekyll-include-cache
59+
60+
author:
61+
name : "ZiHon"
62+
avatar : "/assets/images/bio-photo.jpg"
63+
bio : "My awesome biography constrained to a sentence or two goes here."
64+
links:
65+
- label: "Website"
66+
icon: "fa-solid fa-house"
67+
url: "https://www.bugkiller.blog"
68+
- label: "GitHub"
69+
icon: "fa-brands fa-github"
70+
url: "https://github.com/upupupCoder"
71+
- label: "Bilibili"
72+
icon: "fa-brands fa-bilibili"
73+
url: "https://space.bilibili.com/390761879?spm_id_from=333.1296.0.0"
74+
75+
footer:
76+
links:
77+
- label: "GitHub"
78+
icon: "fa-brands fa-github"
79+
url: "https://github.com/upupupCoder"
80+
- label: "Bilibili"
81+
icon: "fa-brands fa-bilibili"
82+
url: "https://space.bilibili.com/390761879?spm_id_from=333.1296.0.0"
83+
84+
defaults:
85+
# _posts
86+
- scope:
87+
path: ""
88+
type: posts
89+
values:
90+
layout: single
91+
author_profile: true
92+
read_time: true
93+
comments: true
94+
share: true
95+
related: true
96+
# _pages
97+
- scope:
98+
path: "_pages"
99+
type: pages
100+
values:
101+
layout: single
102+
author_profile: true
103+
104+
category_archive:
105+
type: liquid
106+
path: /categories/
107+
tag_archive:
108+
type: liquid
109+
path: /tags/

_data/navigation.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
main:
2+
# - title: "Posts"
3+
# url: /posts/
4+
- title: "Categories"
5+
url: /categories/
6+
- title: "Tags"
7+
url: /tags/
8+
- title: "About"
9+
url: /about/
10+

_pages/404.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Page Not Found"
3+
excerpt: "Page not found. Your pixels are in another canvas."
4+
sitemap: false
5+
permalink: /404.html
6+
---
7+
8+
Sorry, but the page you were trying to view does not exist.

_pages/about.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
permalink: /about/
3+
title: "About"
4+
---
5+
6+
Tempor velit sint sunt ipsum tempor enim ad qui ullamco. Est dolore anim ad velit duis dolore minim sunt aliquip amet commodo labore. Ut eu pariatur aute ea aute excepteur laborum. Esse ea esse excepteur minim mollit qui cillum excepteur ex dolore magna. Labore deserunt fugiat incididunt incididunt sint ea. Consequat dolore aute laboris quis proident quis non et est consectetur ex eiusmod sit culpa.
7+
8+
Cupidatat ea do et in excepteur in. Ad nostrud ut est esse eu duis ea sunt eiusmod. Aliquip tempor veniam sint elit fugiat. Velit incididunt laboris amet incididunt labore dolore irure velit excepteur commodo deserunt laborum. Consectetur eu fugiat veniam veniam Lorem labore magna eiusmod. Ea occaecat reprehenderit pariatur consectetur minim labore ut aliquip.

_pages/category-archive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Posts by Category"
3+
layout: categories
4+
permalink: /categories/
5+
author_profile: true
6+
---

_pages/tag-archive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Posts by Tag"
3+
permalink: /tags/
4+
layout: tags
5+
author_profile: true
6+
---

0 commit comments

Comments
 (0)