Skip to content

Commit 8282b77

Browse files
committed
Squashed commit of the following:
commit 46e2bdfa6eacc084dcafe95197339c2705a1d17d Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sat Dec 21 19:23:15 2024 +0000 Update critical file(s) according to Chirpy v7.2.4 commit 1d4d35af851aa6f7d2bd2d5b30e22fefdae8689d Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Dec 15 13:06:48 2024 +0000 Update critical file(s) according to Chirpy v7.2.3 commit aa0fd48ad0de60984ecdd04961d931c490d2b80a Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Fri Dec 6 17:07:40 2024 +0000 Update critical file(s) according to Chirpy v7.2.2 commit 333ce4603ed85585cb8c93a7001951af43e0362b Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Thu Dec 5 13:34:44 2024 +0000 Update critical file(s) according to Chirpy v7.2.1 commit 59ad287fb0144fd9a3e1b46826a18fdce42646d1 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Thu Nov 28 09:00:29 2024 +0000 Update critical file(s) according to Chirpy v7.2.0 commit 7ab45bd41f5811316714825105f3575fa7d415cd Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Mon Sep 23 12:05:45 2024 +0000 Update critical file(s) according to Chirpy v7.1.1 commit 6ae78258092c8e1b1b30f53bbc9ce8ba98703e78 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Sep 1 12:45:16 2024 +0000 Update critical file(s) according to Chirpy v7.1.0 commit 00252fd7b8701a2274fcdc90a8555a1ae19a0b1e Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sat May 18 11:02:10 2024 +0000 Update critical file(s) according to Chirpy v7.0.1 commit 32f4cbe2f7318501848edda9431144a9cbe796af Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sat May 11 08:16:14 2024 +0000 Update critical file(s) according to Chirpy v7.0.0 commit 88378f61690c392718733d6efc819c1b699ac53c Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sat Mar 23 18:32:27 2024 +0000 Update critical file(s) according to Chirpy v6.5.5 commit 586b285258a99c7ed0145b3d9f20779913db04f7 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Fri Mar 22 19:45:34 2024 +0000 Update critical file(s) according to Chirpy v6.5.4 commit c403568b4c11c6585c260e98a142658039ecdf17 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Thu Mar 7 20:15:44 2024 +0000 Update critical file(s) according to Chirpy v6.5.3 commit b8605de1ba6de5a66b5a6ad4b3ca6264b2d7b730 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Thu Feb 29 19:53:46 2024 +0000 Update critical file(s) according to Chirpy v6.5.2 commit 953dbb08e36148ed4fbb813c9a0ca2d2a0f75a51 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Mon Feb 26 18:21:19 2024 +0000 Update critical file(s) according to Chirpy v6.5.1 commit b160f258a0fc8150e5113f37b001ecb8aeb7c309 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Wed Feb 14 16:21:01 2024 +0000 Update critical file(s) according to Chirpy v6.5.0 commit 8486ea4 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sat Jan 13 14:04:21 2024 +0000 Update critical file(s) according to Chirpy v6.4.2 commit 756d37c Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Wed Jan 10 18:13:49 2024 +0000 Update critical file(s) according to Chirpy v6.4.1 commit d03f0bb Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Wed Jan 10 15:12:49 2024 +0000 Update critical file(s) according to Chirpy v6.4.0 commit 1efe631 Author: Dmitry Kosarev <kosarevDM@gmail.com> Date: Thu Dec 28 10:03:08 2023 +0100 build(deps): specify the minor version number of ruby (#15) See also: cotes2020/jekyll-theme-chirpy#1431 Co-authored-by: Dmitry Kosarev <kosarevdmlive@outlook.com> commit 1565392 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Nov 12 21:17:50 2023 +0000 Update critical file(s) according to Chirpy v6.3.1 commit aea4a8f Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Fri Nov 10 12:16:23 2023 +0000 Update critical file(s) according to Chirpy v6.3.0 commit f05cdc5 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Tue Oct 10 04:56:49 2023 +0000 Update critical file(s) according to Chirpy v6.2.3 commit bcb2c56 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Sep 10 18:40:05 2023 +0000 Update critical file(s) according to Chirpy v6.2.2 commit c3ef063 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Sep 10 16:43:47 2023 +0000 Update critical file(s) according to Chirpy v6.2.1 commit 74bf950 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Sep 10 13:24:09 2023 +0000 Update critical file(s) according to Chirpy v6.2.0 commit 2605fed Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Jul 2 13:52:03 2023 +0000 Update critical file(s) according to Chirpy v6.1.0 commit 7c3f58d Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Fri May 19 16:50:33 2023 +0000 Update critical file(s) according to Chirpy v6.0.1 commit 3c5c4e9 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Tue May 16 19:05:24 2023 +0000 Update critical file(s) according to Chirpy v6.0.0 commit 918d7a0 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Thu Mar 30 21:48:39 2023 +0000 Update critical file(s) according to Chirpy v5.6.1 commit ff0f0b8 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Fri Mar 17 18:23:14 2023 +0000 Update critical file(s) according to Chirpy v5.6.0 commit 8511681 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Feb 5 19:18:58 2023 +0000 Update critical file(s) according to Chirpy v5.5.2 commit afc1abf Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Jan 29 22:18:12 2023 +0000 Update critical file(s) according to Chirpy v5.5.1 commit 1832a36 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Sun Jan 29 21:05:40 2023 +0000 Update critical file(s) according to Chirpy v5.5.0 commit 02a5de7 Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Tue Dec 27 17:32:37 2022 +0000 Update critical file(s) according to Chirpy v5.4.0 commit 9b2c9ba Author: GitHub Actions <github-actions[bot]@users.noreply.github.com> Date: Fri Nov 25 15:03:09 2022 +0000 Update critical file(s) according to Chirpy v5.3.2 commit d942891 Author: Travis-CI <deploy@travis-ci.com> Date: Tue Oct 25 13:31:31 2022 +0000 Update critical file(s) according to Chirpy v5.3.1 commit 1b74cf9 Author: Travis-CI <deploy@travis-ci.com> Date: Fri Sep 23 13:58:58 2022 +0000 Update critical file(s) according to Chirpy v5.3.0 commit e6a207d Author: Travis-CI <deploy@travis-ci.com> Date: Fri Jun 17 16:17:19 2022 +0000 Update critical file(s) according to Chirpy v5.2.1 commit 6c8b7ca Author: Travis-CI <deploy@travis-ci.com> Date: Thu Jun 9 10:06:34 2022 +0000 Update critical file(s) according to Chirpy v5.2.0 commit d1ef8d4 Author: Travis-CI <deploy@travis-ci.com> Date: Mon Feb 14 17:30:02 2022 +0000 Update critical file(s) according to Chirpy v5.1.0 commit 3b07fcc Author: Travis-CI <deploy@travis-ci.com> Date: Fri Jan 7 18:52:12 2022 +0000 Update critical file(s) according to Chirpy v5.0.2 commit a8cd880 Author: Travis-CI <deploy@travis-ci.com> Date: Tue Jan 4 19:50:28 2022 +0000 Update critical file(s) according to Chirpy v5.0.1 commit fc54bc5 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue Jan 4 18:58:29 2022 +0800 Update the doc's link in README commit bf93d13 Author: Travis-CI <deploy@travis-ci.com> Date: Sun Jan 2 16:53:02 2022 +0000 Update critical file(s) according to Chirpy v5.0.0 commit 23942a9 Author: Travis-CI <deploy@travis-ci.com> Date: Mon Nov 29 12:35:47 2021 +0000 Update critical file(s) according to Chirpy v4.3.4 commit 66a784c Author: Travis-CI <deploy@travis-ci.com> Date: Sun Oct 24 20:18:05 2021 +0000 Update critical file(s) according to Chirpy v4.3.3 commit b8446c9 Author: Travis-CI <deploy@travis-ci.com> Date: Thu Oct 14 18:13:57 2021 +0000 Update critical file(s) according to Chirpy v4.3.2 commit 479cdc3 Author: Travis-CI <deploy@travis-ci.com> Date: Fri Oct 1 10:58:50 2021 +0000 Update critical file(s) according to Chirpy v4.3.1 commit ff41859 Author: Travis-CI <deploy@travis-ci.com> Date: Wed Sep 29 20:03:26 2021 +0000 Update critical file(s) according to Chirpy v4.3.0 commit c2a7480 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun Sep 26 01:20:50 2021 +0800 Update README commit 4abf09e Author: Travis-CI <deploy@travis-ci.com> Date: Thu Sep 16 13:22:01 2021 +0000 Update critical file(s) according to Chirpy v4.2.1 commit 2327ec8 Author: Travis-CI <deploy@travis-ci.com> Date: Wed Sep 15 17:53:28 2021 +0000 Update critical file(s) according to Chirpy v4.2.0 commit 45ff5ba Author: Travis-CI <deploy@travis-ci.com> Date: Mon Aug 9 08:49:14 2021 +0000 Update critical file(s) according to Chirpy v4.1.1 commit 1d16d38 Author: Travis-CI <deploy@travis-ci.com> Date: Wed Jul 21 16:54:21 2021 +0000 Update critical file(s) according to Chirpy v4.1.0 commit 1a82b89 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed Jul 21 22:33:34 2021 +0800 Update README commit d84dd10 Author: Travis-CI <deploy@travis-ci.com> Date: Wed Jun 23 16:55:07 2021 +0000 Update critical file(s) according to Chirpy v4.0.2 commit 14988e3 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed Jun 23 23:26:23 2021 +0800 Update README commit 53ccb82 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri Jun 4 19:42:36 2021 +0800 Improve the gitignore commit 81cfa31 Author: Chao Xiang <hixcwork@163.com> Date: Tue May 11 21:46:25 2021 +0800 fix usage on Customing Stylesheet commit c9806df Author: Travis-CI <deploy@travis-ci.com> Date: Fri May 7 19:36:50 2021 +0000 Update critical file(s) according to Chirpy v4.0.1 commit 67a9ca6 Author: Travis-CI <deploy@travis-ci.com> Date: Fri Apr 30 06:22:50 2021 +0000 Update critical file(s) according to Chirpy v4.0.0 commit e6b807e Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri Apr 30 14:08:12 2021 +0800 Update README to v4.0.0 commit 15f6f71 Author: Travis-CI <deploy@travis-ci.com> Date: Fri Apr 2 08:29:15 2021 +0000 Update critical file(s) according to Chirpy v3.3.0 commit 1d7d7cf Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu Apr 1 04:09:47 2021 +0800 Update the ruby setup in gh-actions commit dff8e09 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon Mar 1 19:08:40 2021 +0800 Update the Gemfile commit 565ce44 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu Feb 11 02:58:14 2021 +0800 Fix the license link in readme commit 31ed013 Author: Travis-CI <deploy@travis-ci.com> Date: Wed Feb 10 13:36:18 2021 +0000 [Automation] Update critical file(s) according to Chirpy v3.2.0 commit 3c4df16 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri Feb 5 22:42:29 2021 +0800 Improve the readme commit 4bbd30d Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed Feb 3 20:12:23 2021 +0800 Update 404.html according to the theme (v3.1.0) commit 7a2365c Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue Feb 2 01:37:35 2021 +0800 Update the site config according to the theme (v3.1.0) commit 32cd311 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue Jan 26 05:13:40 2021 +0800 Init commit
1 parent b695bed commit 8282b77

File tree

15 files changed

+296
-45
lines changed

15 files changed

+296
-45
lines changed

.devcontainer/devcontainer.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Jekyll",
3+
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye",
4+
"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
5+
"postCreateCommand": "bash .devcontainer/post-create.sh",
6+
"customizations": {
7+
"vscode": {
8+
"settings": {
9+
"terminal.integrated.defaultProfile.linux": "zsh"
10+
},
11+
"extensions": [
12+
// Liquid tags auto-complete
13+
"killalau.vscode-liquid-snippets",
14+
// Liquid syntax highlighting and formatting
15+
"Shopify.theme-check-vscode",
16+
// Shell
17+
"timonwong.shellcheck",
18+
"mkhl.shfmt",
19+
// Common formatter
20+
"EditorConfig.EditorConfig",
21+
"esbenp.prettier-vscode",
22+
"stylelint.vscode-stylelint",
23+
"yzhang.markdown-all-in-one",
24+
// Git
25+
"mhutchie.git-graph"
26+
]
27+
}
28+
}
29+
}

.devcontainer/post-create.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -f package.json ]; then
4+
bash -i -c "nvm install --lts && nvm install-latest-npm"
5+
npm i
6+
npm run build
7+
fi
8+
9+
# Install dependencies for shfmt extension
10+
curl -sS https://webi.sh/shfmt | sh &>/dev/null
11+
12+
# Add OMZ plugins
13+
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
14+
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
15+
sed -i -E "s/^(plugins=\()(git)(\))/\1\2 zsh-syntax-highlighting zsh-autosuggestions\3/" ~/.zshrc
16+
17+
# Avoid git log use less
18+
echo -e "\nunset LESS" >>~/.zshrc

.github/workflows/pages-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Ruby
4343
uses: ruby/setup-ruby@v1
4444
with:
45-
ruby-version: 3.2
45+
ruby-version: 3.3
4646
bundler-cache: true
4747

4848
- name: Build site
@@ -53,7 +53,7 @@ jobs:
5353
- name: Test site
5454
run: |
5555
bundle exec htmlproofer _site \
56-
\-\-disable-external=true \
56+
\-\-disable-external \
5757
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5858
5959
- name: Upload site artifact

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Gemfile.lock
55

66
# Jekyll cache
77
.jekyll-cache
8+
.jekyll-metadata
89
_site
910

1011
# RubyGems
@@ -16,7 +17,11 @@ package-lock.json
1617

1718
# IDE configurations
1819
.idea
19-
.vscode
20+
.vscode/*
21+
!.vscode/settings.json
22+
!.vscode/extensions.json
23+
!.vscode/tasks.json
2024

2125
# Misc
26+
_sass/vendors
2227
assets/js/dist

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["ms-vscode-remote.remote-containers"]
3+
}

.vscode/settings.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
// Prettier
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.formatOnSave": true,
5+
// Shopify Liquid
6+
"files.associations": {
7+
"*.html": "liquid"
8+
},
9+
"[markdown]": {
10+
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
11+
},
12+
// Formatter
13+
"[html][liquid]": {
14+
"editor.defaultFormatter": "Shopify.theme-check-vscode"
15+
},
16+
"[shellscript]": {
17+
"editor.defaultFormatter": "mkhl.shfmt"
18+
},
19+
// Disable vscode built-in stylelint
20+
"css.validate": false,
21+
"scss.validate": false,
22+
"less.validate": false,
23+
// Stylint extension settings
24+
"stylelint.snippet": ["css", "scss"],
25+
"stylelint.validate": ["css", "scss"],
26+
// Run tasks in macOS
27+
"terminal.integrated.profiles.osx": {
28+
"zsh": { "path": "/bin/zsh", "args": ["-l", "-i"] }
29+
}
30+
}

.vscode/tasks.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Run Jekyll Server",
6+
"type": "shell",
7+
"command": "./tools/run.sh",
8+
"group": {
9+
"kind": "build",
10+
"isDefault": true
11+
},
12+
"problemMatcher": [],
13+
"detail": "Runs the Jekyll server with live reload."
14+
},
15+
{
16+
"label": "Build Jekyll Site",
17+
"type": "shell",
18+
"command": "./tools/test.sh",
19+
"group": {
20+
"kind": "build"
21+
},
22+
"problemMatcher": [],
23+
"detail": "Build the Jekyll site for production."
24+
}
25+
]
26+
}

Gemfile

+3-13
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,13 @@
22

33
source "https://rubygems.org"
44

5-
gem "jekyll-theme-chirpy", "~> 6.5", ">= 6.5.5"
6-
gem 'jekyll-compose', group: [:jekyll_plugins]
5+
gem "jekyll-theme-chirpy", "~> 7.2", ">= 7.2.4"
76

8-
group :test do
9-
gem "html-proofer", "~> 4.4"
10-
end
7+
gem "html-proofer", "~> 5.0", group: :test
118

12-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
13-
# and associated library.
149
platforms :mingw, :x64_mingw, :mswin, :jruby do
1510
gem "tzinfo", ">= 1", "< 3"
1611
gem "tzinfo-data"
1712
end
1813

19-
# Performance-booster for watching directories on Windows
20-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
21-
22-
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
23-
# do not have a Java counterpart.
24-
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
14+
gem "wdm", "~> 0.2.0", :platforms => [:mingw, :x64_mingw, :mswin]

README.md

+4-17
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,19 @@ Jekyll site. The following is a list of targets:
2525
To save you time, and also in case you lose some files while copying, we extract those files/configurations of the
2626
latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes.
2727

28-
## Prerequisites
29-
30-
Follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of
31-
the basic environment. [Git](https://git-scm.com/) also needs to be installed.
32-
33-
## Installation
34-
35-
Sign in to GitHub and [**use this template**][use-template] to generate a brand new repository and name it
36-
`USERNAME.github.io`, where `USERNAME` represents your GitHub username.
37-
38-
Then clone it to your local machine and run:
28+
## Usage
3929

40-
```console
41-
$ bundle
42-
```
30+
Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).
4331

44-
## Usage
32+
## Contributing
4533

46-
Please see the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy#documentation).
34+
This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback.
4735

4836
## License
4937

5038
This work is published under [MIT][mit] License.
5139

5240
[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
5341
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/
54-
[use-template]: https://github.com/cotes2020/chirpy-starter/generate
5542
[CD]: https://en.wikipedia.org/wiki/Continuous_deployment
5643
[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ theme_mode: # [light|dark]
7070
# will be added to all image (site avatar & posts' images) paths starting with '/'
7171
#
7272
# e.g. 'https://cdn.com'
73-
img_cdn: https://raw.githubusercontent.com/nspawn/nspawn.github.io/main/_imgs
73+
cdn: https://raw.githubusercontent.com/nspawn/nspawn.github.io/main/_imgs
7474

7575
# the avatar on sidebar, support local or CORS resources
7676
avatar: /nspawn.png

_data/contact.yml

+12
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@
2626
# - type: stack-overflow
2727
# icon: 'fab fa-stack-overflow'
2828
# url: '' # Fill with your stackoverflow homepage
29+
#
30+
# - type: bluesky
31+
# icon: 'fa-brands fa-bluesky'
32+
# url: '' # Fill with your Bluesky profile link
33+
#
34+
# - type: reddit
35+
# icon: 'fa-brands fa-reddit'
36+
# url: '' # Fill with your Reddit profile link
37+
#
38+
# - type: threads
39+
# icon: 'fa-brands fa-threads'
40+
# url: '' # Fill with your Threads profile link

_data/share.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ platforms:
1515
link: "https://t.me/share/url?url=URL&text=TITLE"
1616

1717
# Uncomment below if you need to.
18-
#
18+
1919
- type: Linkedin
2020
icon: "fab fa-linkedin"
2121
link: "https://www.linkedin.com/sharing/share-offsite/?url=URL"
22-
22+
23+
- type: Weibo
24+
icon: "fab fa-weibo"
25+
link: "https://service.weibo.com/share/share.php?title=TITLE&url=URL"
26+
2327
- type: Mastodon
2428
icon: "fa-brands fa-mastodon"
2529
# See: https://github.com/justinribeiro/share-to-mastodon#properties
@@ -32,11 +36,15 @@ platforms:
3236
link: "https://fosstodon.org/"
3337
- label: photog.social
3438
link: "https://photog.social/"
35-
- label: infosec.exchange
36-
link: "https://infosec.exchange/"
37-
38-
#
39-
# - type: Weibo
40-
# icon: "fab fa-weibo"
41-
# link: "http://service.weibo.com/share/share.php?title=TITLE&url=URL"
42-
#
39+
40+
- type: Bluesky
41+
icon: "fa-brands fa-bluesky"
42+
link: "https://bsky.app/intent/compose?text=TITLE%20URL"
43+
44+
- type: Reddit
45+
icon: "fa-brands fa-square-reddit"
46+
link: "https://www.reddit.com/submit?url=URL&title=TITLE"
47+
48+
- type: Threads
49+
icon: "fa-brands fa-square-threads"
50+
link: "https://www.threads.net/intent/post?text=TITLE%20URL"

_tabs/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Nspawn Org is a hub for systemd-nspawn containers and images. Basically, we take
1212
- Debian
1313
- Fedora
1414
- Ubuntu
15-
- more...
15+
- more...

tools/run.sh

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Run jekyll serve and then launch the site
4+
5+
prod=false
6+
command="bundle exec jekyll s -l"
7+
host="127.0.0.1"
8+
9+
help() {
10+
echo "Usage:"
11+
echo
12+
echo " bash /path/to/run [options]"
13+
echo
14+
echo "Options:"
15+
echo " -H, --host [HOST] Host to bind to."
16+
echo " -p, --production Run Jekyll in 'production' mode."
17+
echo " -h, --help Print this help information."
18+
}
19+
20+
while (($#)); do
21+
opt="$1"
22+
case $opt in
23+
-H | --host)
24+
host="$2"
25+
shift 2
26+
;;
27+
-p | --production)
28+
prod=true
29+
shift
30+
;;
31+
-h | --help)
32+
help
33+
exit 0
34+
;;
35+
*)
36+
echo -e "> Unknown option: '$opt'\n"
37+
help
38+
exit 1
39+
;;
40+
esac
41+
done
42+
43+
command="$command -H $host"
44+
45+
if $prod; then
46+
command="JEKYLL_ENV=production $command"
47+
fi
48+
49+
if [ -e /proc/1/cgroup ] && grep -q docker /proc/1/cgroup; then
50+
command="$command --force_polling"
51+
fi
52+
53+
echo -e "\n> $command\n"
54+
eval "$command"

0 commit comments

Comments
 (0)