1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-03-22 19:08:15 +00:00

Compare commits

..

1 Commits
v7.5.0 ... docs

Author SHA1 Message Date
Cotes Chung
d15b898c72 docs: fix typos in tutorial 2026-03-14 23:19:38 +08:00
31 changed files with 73 additions and 98 deletions

View File

@@ -15,8 +15,7 @@ updates:
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directories:
- "/.github/workflows/**"
directory: "/"
groups:
gh-actions:
update-types:

View File

@@ -14,14 +14,14 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v5
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
ruby-version: 3.3
bundler-cache: true
- uses: actions/setup-node@v6
- uses: actions/setup-node@v5
with:
node-version: lts/*

View File

@@ -27,11 +27,11 @@ jobs:
strategy:
matrix:
ruby: ["3.3", "3.4"]
ruby: ["3.1", "3.2", "3.3"]
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v5
with:
fetch-depth: 0 # for posts's lastmod
@@ -42,7 +42,7 @@ jobs:
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v6
uses: actions/setup-node@v5
with:
node-version: lts/*

View File

@@ -24,7 +24,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v5
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@@ -11,5 +11,5 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v5
- uses: wagoid/commitlint-github-action@v6

View File

@@ -16,10 +16,10 @@ jobs:
lint-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@v5
with:
node-version: lts/*

View File

@@ -12,10 +12,10 @@ jobs:
lint-scss:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
uses: actions/setup-node@v5
with:
node-version: lts/*

View File

@@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v6
uses: actions/checkout@v5
- name: Check PR Content
id: intercept

View File

@@ -28,7 +28,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
fetch-depth: 0
# submodules: true
@@ -37,12 +37,12 @@ jobs:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
uses: actions/configure-pages@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
ruby-version: 3.3
bundler-cache: true
- name: Build site
@@ -57,7 +57,7 @@ jobs:
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
- name: Upload site artifact
uses: actions/upload-pages-artifact@v4
uses: actions/upload-pages-artifact@v3
with:
path: "_site${{ steps.pages.outputs.base_path }}"

View File

@@ -6,9 +6,9 @@ gemspec
gem "html-proofer", "~> 5.0", group: :test
platforms :windows, :jruby do
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end
gem "wdm", "~> 0.2.0", :platforms => [:windows]
gem "wdm", "~> 0.2.0", :platforms => [:mingw, :x64_mingw, :mswin]

View File

@@ -36,7 +36,6 @@ social:
# It will be displayed as the default author of the posts and the copyright owner in the Footer
name: your_full_name
email: example@domain.com # change to your email address
fediverse_handle: # fill in your fediverse handle. E.g. "@username@domain.com"
links:
# The first element serves as the copyright owner's link
- https://twitter.com/username # change to your Twitter homepage

View File

@@ -24,20 +24,20 @@ toc:
js: https://cdn.jsdelivr.net/npm/tocbot@4.36.4/dist/tocbot.min.js
fontawesome:
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.2.0/css/all.min.css
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.1.0/css/all.min.css
search:
js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js
mermaid:
js: https://cdn.jsdelivr.net/npm/mermaid@11.13.0/dist/mermaid.min.js
js: https://cdn.jsdelivr.net/npm/mermaid@11.12.0/dist/mermaid.min.js
dayjs:
js:
common: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/dayjs.min.js
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/locale/:LOCALE.js
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/plugin/relativeTime.js
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.20/plugin/localizedFormat.js
common: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/dayjs.min.js
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/locale/:LOCALE.js
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/plugin/relativeTime.js
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/plugin/localizedFormat.js
glightbox:
css: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/css/glightbox.min.css

View File

@@ -1,6 +1,6 @@
<!--
Date format snippet
See: ${JS_ROOT}/modules/components/locale-datetime.js
See: ${JS_ROOT}/utils/locale-dateime.js
-->
{% assign df_strftime = site.data.locales[include.lang].df.post.strftime | default: '%d/%m/%Y' %}

View File

@@ -50,24 +50,11 @@
{{ seo_tags }}
{%- if site.social.fediverse_handle %}
<!-- Fediverse handle/creator -->
<meta name="fediverse:creator" content="{{ site.social.fediverse_handle }}">
{% endif %}
<title>
{%- unless page.layout == 'home' -%}
{%- capture title -%}
{%- if page.collection == 'tabs' -%}
{%- assign tab_key = page.title | downcase -%}
{{- site.data.locales[include.lang].tabs[tab_key] -}}
{%- else -%}
{{- page.title -}}
{%- endif -%}
{%- endcapture -%}
{{- title | append: ' | ' -}}
{{ page.title | append: ' | ' }}
{%- endunless -%}
{{- site.title -}}
{{ site.title }}
</title>
{% include_cached favicons.html %}

View File

@@ -1,7 +1,9 @@
{% comment %}
Convert the alias of the syntax language to the official name
See: <https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers>
{% endcomment %}
{% assign _lang = include.language | default: '' %}
@@ -18,13 +20,13 @@
{% when 'coffeescript', 'coffee', 'coffee-script' %}
{{ 'CoffeeScript' }}
{% when 'cs', 'csharp' %}
{{ 'C#' }}
{{ 'C#' }}
{% when 'erl' %}
{{ 'Erlang' }}
{% when 'graphql' %}
{{ 'GraphQL' }}
{{ 'GraphQL' }}
{% when 'haskell', 'hs' %}
{{ 'Haskell' }}
{{ 'Haskell' }}
{% when 'javascript', 'js' %}
{{ 'JavaScript' }}
{% when 'make', 'mf', 'gnumake', 'bsdmake' %}
@@ -37,22 +39,22 @@
{{ 'Objective-C' }}
{% when 'perl', 'pl' %}
{{ 'Perl' }}
{% when 'php', 'php3', 'php4', 'php5' %}
{% when 'php','php3','php4','php5' %}
{{ 'PHP' }}
{% when 'py' %}
{{ 'Python' }}
{% when 'rb' %}
{{ 'Ruby' }}
{% when 'rs', 'no_run', 'ignore', 'should_panic' %}
{% when 'rs','no_run','ignore','should_panic' %}
{{ 'Rust' }}
{% when 'bash', 'zsh', 'ksh', 'sh' %}
{{ 'Shell' }}
{% when 'st', 'squeak' %}
{{ 'Smalltalk' }}
{% when 'tex' %}
{% when 'tex'%}
{{ 'TeX' }}
{% when 'latex' %}
{{ 'LaTeX' }}
{{ 'LaTex' }}
{% when 'ts', 'typescript' %}
{{ 'TypeScript' }}
{% when 'vb', 'visualbasic' %}

View File

@@ -17,7 +17,7 @@
{%- comment -%} Add media resources subpath prefix {%- endcomment -%}
{% assign url = include.subpath | default: '' | append: '/' | append: url %}
{%- comment -%} Prepend CDN URL {%- endcomment -%}
{%- comment -%} Prepend CND URL {%- endcomment -%}
{% if site.cdn %}
{% assign url = site.cdn | append: '/' | append: url %}
{% endif %}

View File

@@ -1,4 +1,4 @@
<!-- The paginator for post list on HomePage. -->
<!-- The paginator for post list on HomgPage. -->
<nav aria-label="Page Navigation">
<ul class="pagination align-items-center mt-4 mb-0">

View File

@@ -173,7 +173,7 @@
{% assign _parent = _right | slice: 1, 4 %}
{% if _parent == '</a>' %}
<!-- add class to existing <a> tag -->
<!-- add class to exist <a> tag -->
{% assign _size = _img_content | size | minus: 1 %}
{% capture _class %}
class="img-link{% unless _lqip %} shimmer{% endunless %}"

View File

@@ -7,4 +7,4 @@ export { initToc } from './components/toc';
export { loadMermaid } from './components/mermaid';
export { modeWatcher } from './components/mode-toggle';
export { back2top } from './components/back-to-top';
export { loadTooltip } from './components/tooltip-loader';
export { loadTooptip } from './components/tooltip-loader';

View File

@@ -8,7 +8,7 @@ const lightImages = '.popup:not(.dark)';
const darkImages = '.popup:not(.light)';
let selector = lightImages;
function swapImages(current, reverse) {
function updateImages(current, reverse) {
if (selector === lightImages) {
selector = darkImages;
} else {
@@ -19,7 +19,7 @@ function swapImages(current, reverse) {
reverse = GLightbox({ selector: `${selector}` });
}
return [reverse, current];
[current, reverse] = [reverse, current];
}
export function imgPopup() {
@@ -43,7 +43,7 @@ export function imgPopup() {
window.addEventListener('message', (event) => {
if (event.source === window && event.data && event.data.id === Theme.ID) {
[current, reverse] = swapImages(current, reverse);
updateImages(current, reverse);
}
});
}

View File

@@ -1,5 +1,5 @@
/**
* This script makes #search-result-wrapper switch to unload or shown automatically.
* This script make #search-result-wrapper switch to unload or shown automatically.
*/
const btnSbTrigger = document.getElementById('sidebar-trigger');

View File

@@ -1,6 +1,6 @@
import Tooltip from 'bootstrap/js/src/tooltip';
export function loadTooltip() {
export function loadTooptip() {
const tooltipTriggerList = document.querySelectorAll(
'[data-bs-toggle="tooltip"]'
);

View File

@@ -1,7 +1,7 @@
import { back2top, loadTooltip, modeWatcher } from '../components';
import { back2top, loadTooptip, modeWatcher } from '../components';
export function basic() {
modeWatcher();
back2top();
loadTooltip();
loadTooptip();
}

View File

@@ -14,7 +14,7 @@ layout: compress
<!-- `site.alt_lang` can specify a language different from the UI -->
<html lang="{{ page.lang | default: site.alt_lang | default: site.lang }}" {{ prefer_mode }}>
{% include head.html lang=lang %}
{% include head.html %}
<body>
{% include sidebar.html lang=lang %}

View File

@@ -78,7 +78,7 @@ code {
}
a > &.highlighter-rouge {
padding-bottom: 0; /* show link's underline */
padding-bottom: 0; /* show link's underlinke */
color: inherit;
}
@@ -137,8 +137,7 @@ div[class^='language-'] {
height: v.$code-dot-size;
border-radius: 50%;
background-color: var(--code-header-muted-color);
box-shadow:
(v.$code-dot-size + v.$code-dot-gap) 0 0
box-shadow: (v.$code-dot-size + v.$code-dot-gap) 0 0
var(--code-header-muted-color),
(v.$code-dot-size + v.$code-dot-gap) * 2 0 0
var(--code-header-muted-color);

View File

@@ -112,7 +112,7 @@
}
a {
/* post title in Archives */
/* post title in Archvies */
margin-left: 2.5rem;
position: relative;
top: 0.1rem;

View File

@@ -127,7 +127,7 @@ header {
.share-mastodon {
/* See: https://github.com/justinribeiro/share-to-mastodon#properties */
--wc-stm-font-family: #{v.$font-family-base};
--wc-stm-font-family: v.$font-family-base;
--wc-stm-dialog-background-color: var(--card-bg);
--wc-stm-form-button-border: 1px solid var(--btn-border-color);
--wc-stm-form-submit-background-color: var(--sidebar-btn-bg);

View File

@@ -1,15 +1,5 @@
# Changelog
## [7.5.0](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.4.1...v7.5.0) (2026-03-15)
### Features
* add support for `fediverse:creator` meta tag ([#2593](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2593)) ([d2db439](https://github.com/cotes2020/jekyll-theme-chirpy/commit/d2db439c169c45ac683fa1c8157c6ea7e0b54b85))
### Bug Fixes
* **i18n:** localize the title ([#2610](https://github.com/cotes2020/jekyll-theme-chirpy/issues/2610)) ([52d160f](https://github.com/cotes2020/jekyll-theme-chirpy/commit/52d160f8574e8d0cddcaa46af114eb382fea1644))
## [7.4.1](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v7.4.0...v7.4.1) (2025-10-26)
### Bug Fixes

View File

@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "jekyll-theme-chirpy"
spec.version = "7.5.0"
spec.version = "7.4.1"
spec.authors = ["Cotes Chung"]
spec.email = ["cotes.chung@gmail.com"]

View File

@@ -1,6 +1,6 @@
{
"name": "jekyll-theme-chirpy",
"version": "7.5.0",
"version": "7.4.1",
"description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.",
"repository": {
"type": "git",
@@ -30,29 +30,28 @@
"bootstrap": "^5.3.8"
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@babel/plugin-transform-class-properties": "^7.28.6",
"@babel/plugin-transform-private-methods": "^7.28.6",
"@babel/preset-env": "^7.29.0",
"@commitlint/cli": "^20.4.4",
"@commitlint/config-conventional": "^20.4.4",
"@eslint/js": "^10.0.0",
"@rollup/plugin-babel": "^7.0.0",
"@babel/core": "^7.28.4",
"@babel/plugin-transform-class-properties": "^7.27.1",
"@babel/plugin-transform-private-methods": "^7.27.1",
"@babel/preset-env": "^7.28.3",
"@commitlint/cli": "^20.1.0",
"@commitlint/config-conventional": "^20.0.0",
"@rollup/plugin-babel": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@rollup/plugin-terser": "^0.4.4",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"concurrently": "^9.2.1",
"conventional-changelog-conventionalcommits": "^9.3.0",
"eslint": "^10.0.3",
"globals": "^17.4.0",
"conventional-changelog-conventionalcommits": "^9.1.0",
"eslint": "^9.38.0",
"globals": "^16.4.0",
"husky": "^9.1.7",
"purgecss": "^8.0.0",
"rollup": "^4.59.0",
"semantic-release": "^25.0.3",
"stylelint": "^17.4.0",
"stylelint-config-standard-scss": "^17.0.0"
"purgecss": "^7.0.2",
"rollup": "^4.52.5",
"semantic-release": "^25.0.1",
"stylelint": "^16.25.0",
"stylelint-config-standard-scss": "^16.0.0"
},
"prettier": {
"trailingComma": "none"