Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
4e70d71
Create jekyll.yml
Hxin-25 Jul 22, 2025
3d7cb0a
Update _config.yml.Change name
Hxin-25 Jul 22, 2025
21583af
Create 20250720-树莓派配置科学上网.md
Hxin-25 Jul 22, 2025
73b5c72
Rename 20250720-树莓派配置科学上网.md to 2025-07-20-Pi.md
Hxin-25 Jul 22, 2025
1721022
Update 2025-07-20-Pi.md 增加文章说明
Hxin-25 Jul 22, 2025
7bb7cd4
Update README.md
Hxin-25 Jul 22, 2025
9438aef
删除不是自己的文章
Jul 22, 2025
77c8531
更新网站配置与个人信息
Jul 23, 2025
98abbbe
feat(project): 全面整合数字花园风格并新增文件柜功能
Jul 23, 2025
5f27c96
全面整合数字花园风格并新增文件柜功
Jul 23, 2025
cccb5d8
Liquid syntax error (line 41): Unknown tag 'endif'
Jul 23, 2025
8393026
删除主页图片缩略图
Jul 23, 2025
dfb9776
Update CNAME
Hxin-25 Jul 23, 2025
6160bd6
Delete _posts/2025-07-20-raspberry-pi-proxy-setup.md
Hxin-25 Jul 23, 2025
7e1ce08
Update index.html
Hxin-25 Jul 23, 2025
e6ea840
Update about.html
Hxin-25 Jul 23, 2025
5bd3545
Change author
Hxin-25 Jul 23, 2025
4d94564
Update about.html
Hxin-25 Jul 23, 2025
a04c97f
更改底部Powered
Jul 23, 2025
44c40e1
Merge remote-tracking branch 'origin/master'
Jul 23, 2025
1d4a752
测试about
Jul 23, 2025
2851ab4
关于网站说明
Jul 23, 2025
644a1c7
修改about页面
Jul 23, 2025
2a509ce
Create 2025-10-15-Test.md
Hxin-25 Oct 15, 2025
ba66498
20251120更新整体项目
Nov 20, 2025
68e7619
更新帖子相关配置
Nov 20, 2025
881820c
更新主页背景和Github个人链接
Nov 20, 2025
2ec0943
Delete .idea directory
Hxin-25 Nov 20, 2025
88b8d90
Update _config.yml
Hxin-25 Nov 20, 2025
47b1aee
Update _config.yml
Hxin-25 Nov 20, 2025
7a007db
Update SEOTitle in _config.yml
Hxin-25 Nov 20, 2025
9fa5ec0
Update tags from '读书' to 'Books'
Hxin-25 Nov 20, 2025
18d132e
Update 2025-04-05-lianjie.markdown
Hxin-25 Nov 20, 2025
658267c
Update index.html
Hxin-25 Nov 20, 2025
3034c9f
Update 2025-04-05-lianjie.markdown
Hxin-25 Nov 20, 2025
f42aec0
创建 2025-11-25-Tools.markdown
Hxin-25 Nov 25, 2025
0c7c4de
Update Tools.markdown for clarity and tag removal更新帖子
Hxin-25 Nov 25, 2025
ee15b4a
Revise content to emphasize action over perfection更新文章内容
Hxin-25 Nov 25, 2025
a1bf4d2
更新 2025-11-25-Tools.markdown
Hxin-25 Nov 25, 2025
702d8b8
更新 2025-11-25-Tools.markdown
Hxin-25 Nov 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
65 changes: 65 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
13 changes: 0 additions & 13 deletions .gitignore

This file was deleted.

15 changes: 12 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
---
layout: default
title: 404
hide-in-nav: true
description: "你来到了没有知识的荒原 :("
header-img: "img/404-bg.jpg"
permalink: /404.html
---


<!-- Page Header -->
{% include intro-header.html type="page" short='true' %}
<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="site-heading" id="tag-heading">
<h1>404</h1>
<span class="subheading">{{ page.description }}</span>
</div>
</div>
</div>
</div>
</header>

<script>
document.body.classList.add('page-fullscreen');
Expand Down
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

11 changes: 6 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
source 'https://rubygems.org'
gem 'jekyll-paginate'

gem "jekyll", "~> 4.0"
gem "rake"

gem "webrick", "~> 1.7"
gem 'jekyll', '~> 3.9'
gem 'jekyll-paginate'
gem 'kramdown'
gem 'kramdown-parser-gfm'
gem 'rouge'
gem 'webrick' # Required for Ruby 3.0+, good to have just in case
75 changes: 75 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
colorator (1.1.0)
concurrent-ruby (1.3.5)
csv (3.3.5)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.17.2)
forwardable-extended (2.6.0)
http_parser.rb (0.8.0)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
jekyll (3.10.0)
addressable (~> 2.4)
colorator (~> 1.0)
csv (~> 3.0)
em-websocket (~> 0.5)
i18n (>= 0.7, < 2)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
webrick (>= 1.0)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.1.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.4.4)
rouge (3.30.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
webrick (1.9.1)

PLATFORMS
ruby

DEPENDENCIES
jekyll (~> 3.9)
jekyll-paginate
kramdown
kramdown-parser-gfm
rouge
webrick

BUNDLED WITH
1.17.2
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(grunt) {
module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({
Expand Down Expand Up @@ -30,7 +30,7 @@ module.exports = function(grunt) {
},
banner: '/*!\n' +
' * <%= pkg.title %> v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Copyright 2025 <%= pkg.author %>\n' +
' */\n',
usebanner: {
dist: {
Expand Down
18 changes: 2 additions & 16 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -186,9 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2015-2016 Huxpro

https://github.com/Huxpro/
Copyright 2013-2015 Iron Summit Media Strategies, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -202,15 +200,3 @@
See the License for the specific language governing permissions and
limitations under the License.


=======================================================================
Hux Blog Subcomponents:

The Hux Blog project contains subcomponents with separate copyright
notices and license terms. Your use of the source code for the these
subcomponents is subject to the terms and conditions of the following
licenses.

(MIT License) Clean Blog Jekyll Theme: https://github.com/BlackrockDigital/startbootstrap-clean-blog-jekyll/
https://github.com/BlackrockDigital/startbootstrap-clean-blog-jekyll/blob/master/LICENSE
Copyright (c) 2013-2016 Blackrock Digital LLC.
71 changes: 13 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,63 +1,18 @@
[Hux Blog](https://huangxuan.me)
================================
# Hxin's Blog

> I never expected this to become popular.
This is Hxin's personal blog.

![](http://huangxuan.me/img/blog-desktop.jpg)
## How to Run Locally

1. Install dependencies:
```bash
bundle install
npm install
```

[User Manual 👉](_doc/Manual.md)
--------------------------------------------------
2. Run the server:
```bash
bundle exec jekyll serve
```

### Getting Started

1. You will need [Ruby](https://www.ruby-lang.org/en/) and [Bundler](https://bundler.io/) to use [Jekyll](https://jekyllrb.com/). Following [Using Jekyll with Bundler](https://jekyllrb.com/tutorials/using-jekyll-with-bundler/) to fullfill the enviromental requirement.

2. Installed dependencies in the `Gemfile`:

```sh
$ bundle install
```

3. Serve the website (`localhost:4000` by default):

```sh
$ bundle exec jekyll serve # alternatively, npm start
```

### Development (Build From Source)

To modify the theme, you will need [Grunt](https://gruntjs.com/). There are numbers of tasks you can find in the `Gruntfile.js`, includes minifing JavaScript, compiling `.less` to `.css`, adding banners to keep the Apache 2.0 license intact, watching for changes, etc.

Yes, they were inherited and are extremely old-fashioned. There is no modularization and transpilation, etc.

Critical Jekyll-related code are located in `_include/` and `_layouts/`. Most of them are [Liquid](https://github.com/Shopify/liquid/wiki) templates.

This theme uses the default code syntax highlighter of jekyll, [Rouge](http://rouge.jneen.net/), which is compatible with Pygments theme so just pick any pygments theme css (e.g. from [here](http://jwarby.github.io/jekyll-pygments-themes/languages/javascript.html) and replace the content of `highlight.less`.


### Interesting to know more? Checkout the [full user manual](_doc/Manual.md)!


Other Resources
---------------

Ports
- [**Hexo**](https://github.com/Kaijun/hexo-theme-huxblog) by @kaijun
- [**React-SSR**](https://github.com/LucasIcarus/huxpro.github.io/tree/ssr) by @LucasIcarus

[Starter/Boilerplate](https://github.com/huxpro/huxblog-boilerplate)
- Out of date. Helps wanted for updating it on par with the main repo

Translation
- [🇨🇳 中文文档(有点过时)](https://github.com/Huxpro/huxpro.github.io/blob/master/_doc/README.zh.md)


License
-------

Apache License 2.0.
Copyright (c) 2015-present Huxpro

Hux Blog is derived from [Clean Blog Jekyll Theme (MIT License)](https://github.com/BlackrockDigital/startbootstrap-clean-blog-jekyll/)
Copyright (c) 2013-2016 Blackrock Digital LLC.
3. Open [http://127.0.0.1:4000](http://127.0.0.1:4000) in your browser.
54 changes: 0 additions & 54 deletions Rakefile

This file was deleted.

Loading