Skip to content

Commit ee4c926

Browse files
committed
updating to chirpy v7.1.1
1 parent c501445 commit ee4c926

16 files changed

+37
-35
lines changed

_data/locales/fr-FR.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tabs:
1414
categories: Catégories
1515
tags: Tags
1616
archives: Archives
17-
about: A propos de
17+
about: À propos
1818

1919
# the text displayed in the search bar & search results
2020
search:
@@ -32,12 +32,12 @@ copyright:
3232
license:
3333
template: Cet article est sous licence :LICENSE_NAME par l'auteur.
3434
name: CC BY 4.0
35-
link: https://creativecommons.org/licenses/by/4.0/
35+
link: https://creativecommons.org/licenses/by/4.0/deed.fr
3636

3737
# Displayed in the footer
3838
brief: Certains droits réservés.
3939
verbose: >-
40-
Sauf mention contraire, les articles de ce site sont publiés sous licence
40+
Sauf mention contraire, les articles de ce site sont publiés
4141
sous la licence Creative Commons Attribution 4.0 International (CC BY 4.0) par l'auteur.
4242
4343
meta: Propulsé par :PLATFORM avec le thème :THEME

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
33
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f7f7f7">
44
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1b1b1e">
5-
<meta name="apple-mobile-web-app-capable" content="yes">
5+
<meta name="mobile-web-app-capable" content="yes">
66
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
77
<meta
88
name="viewport"

_includes/js-selector.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@
9292
{% if jekyll.environment == 'production' %}
9393
<!-- PWA -->
9494
{% if site.pwa.enabled %}
95-
<script defer src="{{ 'app.min.js' | relative_url }}"></script>
95+
<script
96+
defer
97+
src="{{ 'app.min.js' | relative_url }}?baseurl={{ site.baseurl | default: '' }}&register={{ site.pwa.cache.enabled }}"
98+
></script>
9699
{% endif %}
97100

98101
<!-- Web Analytics -->

_javascript/pwa/app.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
import { pwa, baseurl } from '../../_config.yml';
21
import Toast from 'bootstrap/js/src/toast';
32

43
if ('serviceWorker' in navigator) {
5-
if (pwa.enabled) {
6-
const swUrl = `${baseurl}/sw.min.js`;
4+
// Get Jekyll config from URL parameters
5+
const src = new URL(document.currentScript.src);
6+
const register = src.searchParams.get('register');
7+
const baseUrl = src.searchParams.get('baseurl');
8+
9+
if (register) {
10+
const swUrl = `${baseUrl}/sw.min.js`;
711
const notification = document.getElementById('notification');
812
const btnRefresh = notification.querySelector('.toast-body>button');
913
const popupWindow = Toast.getOrCreateInstance(notification);
1014

1115
navigator.serviceWorker.register(swUrl).then((registration) => {
12-
// In case the user ignores the notification
16+
// Restore the update window that was last manually closed by the user
1317
if (registration.waiting) {
1418
popupWindow.show();
1519
}

_javascript/pwa/sw.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { baseurl } from '../../_config.yml';
2-
3-
importScripts(`${baseurl}/assets/js/data/swconf.js`);
1+
importScripts('./assets/js/data/swconf.js');
42

53
const purge = swconf.purge;
64
const interceptor = swconf.interceptor;

assets/js/dist/app.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/categories.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/commons.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/home.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/misc.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/page.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/post.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/sw.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jekyll-theme-chirpy.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "jekyll-theme-chirpy"
5-
spec.version = "7.1.0"
5+
spec.version = "7.1.1"
66
spec.authors = ["Cotes Chung"]
77
spec.email = ["cotes.chung@gmail.com"]
88

package.json

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jekyll-theme-chirpy",
3-
"version": "7.1.0",
3+
"version": "7.1.1",
44
"description": "A minimal, responsive, and feature-rich Jekyll theme for technical writing.",
55
"repository": {
66
"type": "git",
@@ -31,22 +31,21 @@
3131
"@babel/core": "^7.25.2",
3232
"@babel/plugin-transform-class-properties": "^7.25.4",
3333
"@babel/preset-env": "^7.25.4",
34-
"@commitlint/cli": "^19.4.0",
35-
"@commitlint/config-conventional": "^19.2.2",
34+
"@commitlint/cli": "^19.5.0",
35+
"@commitlint/config-conventional": "^19.5.0",
3636
"@rollup/plugin-babel": "^6.0.4",
3737
"@rollup/plugin-node-resolve": "^15.2.3",
3838
"@rollup/plugin-terser": "^0.4.4",
39-
"@rollup/plugin-yaml": "^4.1.2",
4039
"@semantic-release/changelog": "^6.0.3",
4140
"@semantic-release/exec": "^6.0.3",
4241
"@semantic-release/git": "^10.0.1",
43-
"concurrently": "^8.2.2",
42+
"concurrently": "^9.0.1",
4443
"conventional-changelog-conventionalcommits": "^8.0.0",
45-
"husky": "^9.1.5",
44+
"husky": "^9.1.6",
4645
"purgecss": "^6.0.0",
47-
"rollup": "^4.21.0",
48-
"semantic-release": "^24.1.0",
49-
"stylelint": "^16.8.2",
46+
"rollup": "^4.21.3",
47+
"semantic-release": "^24.1.1",
48+
"stylelint": "^16.9.0",
5049
"stylelint-config-standard-scss": "^13.1.0"
5150
},
5251
"prettier": {

rollup.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import babel from '@rollup/plugin-babel';
22
import terser from '@rollup/plugin-terser';
33
import { nodeResolve } from '@rollup/plugin-node-resolve';
4-
import yaml from '@rollup/plugin-yaml';
54
import fs from 'fs';
65
import pkg from './package.json';
76

@@ -43,7 +42,7 @@ function build(filename, { src = SRC_DEFAULT, jekyll = false } = {}) {
4342
format: 'iife',
4443
name: 'Chirpy',
4544
banner,
46-
sourcemap: !isProd
45+
sourcemap: !isProd && !jekyll
4746
},
4847
watch: {
4948
include: `${src}/**`
@@ -55,7 +54,6 @@ function build(filename, { src = SRC_DEFAULT, jekyll = false } = {}) {
5554
plugins: ['@babel/plugin-transform-class-properties']
5655
}),
5756
nodeResolve(),
58-
yaml(),
5957
isProd && terser(),
6058
jekyll && insertFrontmatter()
6159
]

0 commit comments

Comments
 (0)