From d9e1d84f08a53dc2822d850596ccc7962612a9b0 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 10 Apr 2023 10:54:27 +0800 Subject: [PATCH] refactor(deps): upgrade bootstrap from v4.6 to v5.2 - update class name of the spacing, font style, cards and toasts - update attribute names & tooltip usage - remove custom smooth scroll - syntax colors --- _data/assets/cross_origin.yml | 4 +- _includes/datetime.html | 2 +- _includes/footer.html | 8 +- _includes/post-paginator.html | 25 ++-- _includes/post-sharing.html | 10 +- _includes/read-time.html | 4 +- _includes/refactor-content.html | 2 +- _includes/related-posts.html | 31 +++-- _includes/search-loader.html | 6 +- _includes/search-results.html | 7 +- _includes/sidebar.html | 4 +- _includes/toc.html | 4 +- _includes/topbar.html | 5 +- _includes/trending-tags.html | 2 +- _includes/update-list.html | 2 +- _javascript/modules/components/back-to-top.js | 8 +- _javascript/modules/components/clipboard.js | 61 +++++----- .../modules/components/convert-title.js | 4 +- .../modules/components/locale-datetime.js | 5 +- .../modules/components/smooth-scroll.js | 109 ------------------ .../modules/components/tooltip-loader.js | 8 +- _javascript/modules/plugins.js | 1 - _javascript/page.js | 8 +- _javascript/post.js | 2 - _layouts/archives.html | 2 +- _layouts/categories.html | 10 +- _layouts/category.html | 8 +- _layouts/default.html | 17 +-- _layouts/home.html | 12 +- _layouts/page.html | 10 +- _layouts/post.html | 4 +- _layouts/tag.html | 8 +- _layouts/tags.html | 9 +- _sass/addon/commons.scss | 21 +--- _sass/addon/module.scss | 4 - _sass/addon/syntax.scss | 6 +- _sass/colors/dark-typography.scss | 4 - _sass/colors/light-typography.scss | 1 + _sass/layout/categories.scss | 17 ++- _sass/layout/home.scss | 14 --- _sass/layout/post.scss | 5 +- 41 files changed, 170 insertions(+), 304 deletions(-) delete mode 100644 _javascript/modules/components/smooth-scroll.js diff --git a/_data/assets/cross_origin.yml b/_data/assets/cross_origin.yml index 75aa59e..594e9dc 100644 --- a/_data/assets/cross_origin.yml +++ b/_data/assets/cross_origin.yml @@ -19,8 +19,8 @@ jquery: js: https://cdn.jsdelivr.net/npm/jquery@3.6.1/dist/jquery.min.js bootstrap: - css: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css - js: https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js + css: https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css + js: https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js toc: css: https://cdn.jsdelivr.net/npm/tocbot@4.20.1/dist/tocbot.min.css diff --git a/_includes/datetime.html b/_includes/datetime.html index 00aaea4..53258ba 100644 --- a/_includes/datetime.html +++ b/_includes/datetime.html @@ -12,7 +12,7 @@ data-ts="{{ include.date | date: '%s' }}" data-df="{{ df_dayjs }}" {% if include.tooltip %} - data-toggle="tooltip" data-placement="bottom" + data-bs-toggle="tooltip" data-bs-placement="bottom" {% endif %} > {{ include.date | date: df_strftime }} diff --git a/_includes/footer.html b/_includes/footer.html index eda1656..3b36c4a 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,8 +1,8 @@