From 6afe5a6d7bc318116056777bceaccc621699fc31 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Sat, 14 Mar 2026 19:01:21 +0800
Subject: [PATCH] refactor: correct typos in comments and identifiers (#2681)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Rename `loadTooptip` to `loadTooltip` in tooltip-loader.js, components.js, and basic.js
- Fix grammar: "This script make" → "This script makes" in search-display.js
- Fix "HomgPage" → "HomePage" in post-paginator.html
- Fix "CND URL" → "CDN URL" in media-url.html
- Fix "locale-dateime.js" → "locale-datetime.js" in datetime.html
- Fix "LaTex" → "LaTeX" in language-alias.html
- Fix "exist tag" → "existing tag" in refactor-content.html
- Fix "Archvies" → "Archives" in _archives.scss
- Fix "underlinke" → "underline" in _syntax.scss
---
_includes/datetime.html | 2 +-
_includes/language-alias.html | 16 +++++++---------
_includes/media-url.html | 2 +-
_includes/post-paginator.html | 2 +-
_includes/refactor-content.html | 2 +-
_javascript/modules/components.js | 2 +-
_javascript/modules/components/search-display.js | 2 +-
_javascript/modules/components/tooltip-loader.js | 2 +-
_javascript/modules/layouts/basic.js | 4 ++--
_sass/base/_syntax.scss | 5 +++--
_sass/pages/_archives.scss | 2 +-
11 files changed, 20 insertions(+), 21 deletions(-)
diff --git a/_includes/datetime.html b/_includes/datetime.html
index 9f954b698..b07b132aa 100644
--- a/_includes/datetime.html
+++ b/_includes/datetime.html
@@ -1,6 +1,6 @@
{% assign df_strftime = site.data.locales[include.lang].df.post.strftime | default: '%d/%m/%Y' %}
diff --git a/_includes/language-alias.html b/_includes/language-alias.html
index abfa7ba92..c2e9adbbf 100644
--- a/_includes/language-alias.html
+++ b/_includes/language-alias.html
@@ -1,9 +1,7 @@
{% comment %}
-
Convert the alias of the syntax language to the official name
See:
-
{% endcomment %}
{% assign _lang = include.language | default: '' %}
@@ -20,13 +18,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' %}
@@ -39,22 +37,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' %}
diff --git a/_includes/media-url.html b/_includes/media-url.html
index ea4107502..7ace24a53 100644
--- a/_includes/media-url.html
+++ b/_includes/media-url.html
@@ -17,7 +17,7 @@
{%- comment -%} Add media resources subpath prefix {%- endcomment -%}
{% assign url = include.subpath | default: '' | append: '/' | append: url %}
- {%- comment -%} Prepend CND URL {%- endcomment -%}
+ {%- comment -%} Prepend CDN URL {%- endcomment -%}
{% if site.cdn %}
{% assign url = site.cdn | append: '/' | append: url %}
{% endif %}
diff --git a/_includes/post-paginator.html b/_includes/post-paginator.html
index c74e978a7..5ccad708d 100644
--- a/_includes/post-paginator.html
+++ b/_includes/post-paginator.html
@@ -1,4 +1,4 @@
-
+
' %}
-
+
{% assign _size = _img_content | size | minus: 1 %}
{% capture _class %}
class="img-link{% unless _lqip %} shimmer{% endunless %}"
diff --git a/_javascript/modules/components.js b/_javascript/modules/components.js
index 95791a69f..f5dd780cd 100644
--- a/_javascript/modules/components.js
+++ b/_javascript/modules/components.js
@@ -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 { loadTooptip } from './components/tooltip-loader';
+export { loadTooltip } from './components/tooltip-loader';
diff --git a/_javascript/modules/components/search-display.js b/_javascript/modules/components/search-display.js
index 40059ac10..643051685 100644
--- a/_javascript/modules/components/search-display.js
+++ b/_javascript/modules/components/search-display.js
@@ -1,5 +1,5 @@
/**
- * This script make #search-result-wrapper switch to unload or shown automatically.
+ * This script makes #search-result-wrapper switch to unload or shown automatically.
*/
const btnSbTrigger = document.getElementById('sidebar-trigger');
diff --git a/_javascript/modules/components/tooltip-loader.js b/_javascript/modules/components/tooltip-loader.js
index c36c87996..d30e81cf7 100644
--- a/_javascript/modules/components/tooltip-loader.js
+++ b/_javascript/modules/components/tooltip-loader.js
@@ -1,6 +1,6 @@
import Tooltip from 'bootstrap/js/src/tooltip';
-export function loadTooptip() {
+export function loadTooltip() {
const tooltipTriggerList = document.querySelectorAll(
'[data-bs-toggle="tooltip"]'
);
diff --git a/_javascript/modules/layouts/basic.js b/_javascript/modules/layouts/basic.js
index b8eddf615..8e104dcc4 100644
--- a/_javascript/modules/layouts/basic.js
+++ b/_javascript/modules/layouts/basic.js
@@ -1,7 +1,7 @@
-import { back2top, loadTooptip, modeWatcher } from '../components';
+import { back2top, loadTooltip, modeWatcher } from '../components';
export function basic() {
modeWatcher();
back2top();
- loadTooptip();
+ loadTooltip();
}
diff --git a/_sass/base/_syntax.scss b/_sass/base/_syntax.scss
index 34ddbe600..b91f2c43d 100644
--- a/_sass/base/_syntax.scss
+++ b/_sass/base/_syntax.scss
@@ -78,7 +78,7 @@ code {
}
a > &.highlighter-rouge {
- padding-bottom: 0; /* show link's underlinke */
+ padding-bottom: 0; /* show link's underline */
color: inherit;
}
@@ -137,7 +137,8 @@ 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);
diff --git a/_sass/pages/_archives.scss b/_sass/pages/_archives.scss
index 86e77a89b..833f809da 100644
--- a/_sass/pages/_archives.scss
+++ b/_sass/pages/_archives.scss
@@ -112,7 +112,7 @@
}
a {
- /* post title in Archvies */
+ /* post title in Archives */
margin-left: 2.5rem;
position: relative;
top: 0.1rem;