Skip to content

Commit ee4c926

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

File tree

16 files changed

+37
-35
lines changed

16 files changed

+37
-35
lines changed

_data/locales/fr-FR.yml

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 1 deletion
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

Lines changed: 8 additions & 4 deletions
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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/categories.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/commons.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/home.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/misc.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)