Skip to content

Commit 6afe5a6

Browse files
authored
refactor: correct typos in comments and identifiers (#2681)
- 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 <a> tag" → "existing <a> tag" in refactor-content.html - Fix "Archvies" → "Archives" in _archives.scss - Fix "underlinke" → "underline" in _syntax.scss
1 parent 8fd5656 commit 6afe5a6

11 files changed

Lines changed: 20 additions & 21 deletions

File tree

_includes/datetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
Date format snippet
3-
See: ${JS_ROOT}/utils/locale-dateime.js
3+
See: ${JS_ROOT}/modules/components/locale-datetime.js
44
-->
55

66
{% assign df_strftime = site.data.locales[include.lang].df.post.strftime | default: '%d/%m/%Y' %}

_includes/language-alias.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{% comment %}
2-
32
Convert the alias of the syntax language to the official name
43

54
See: <https://github.com/rouge-ruby/rouge/wiki/List-of-supported-languages-and-lexers>
6-
75
{% endcomment %}
86

97
{% assign _lang = include.language | default: '' %}
@@ -20,13 +18,13 @@
2018
{% when 'coffeescript', 'coffee', 'coffee-script' %}
2119
{{ 'CoffeeScript' }}
2220
{% when 'cs', 'csharp' %}
23-
{{ 'C#' }}
21+
{{ 'C#' }}
2422
{% when 'erl' %}
2523
{{ 'Erlang' }}
2624
{% when 'graphql' %}
27-
{{ 'GraphQL' }}
25+
{{ 'GraphQL' }}
2826
{% when 'haskell', 'hs' %}
29-
{{ 'Haskell' }}
27+
{{ 'Haskell' }}
3028
{% when 'javascript', 'js' %}
3129
{{ 'JavaScript' }}
3230
{% when 'make', 'mf', 'gnumake', 'bsdmake' %}
@@ -39,22 +37,22 @@
3937
{{ 'Objective-C' }}
4038
{% when 'perl', 'pl' %}
4139
{{ 'Perl' }}
42-
{% when 'php','php3','php4','php5' %}
40+
{% when 'php', 'php3', 'php4', 'php5' %}
4341
{{ 'PHP' }}
4442
{% when 'py' %}
4543
{{ 'Python' }}
4644
{% when 'rb' %}
4745
{{ 'Ruby' }}
48-
{% when 'rs','no_run','ignore','should_panic' %}
46+
{% when 'rs', 'no_run', 'ignore', 'should_panic' %}
4947
{{ 'Rust' }}
5048
{% when 'bash', 'zsh', 'ksh', 'sh' %}
5149
{{ 'Shell' }}
5250
{% when 'st', 'squeak' %}
5351
{{ 'Smalltalk' }}
54-
{% when 'tex'%}
52+
{% when 'tex' %}
5553
{{ 'TeX' }}
5654
{% when 'latex' %}
57-
{{ 'LaTex' }}
55+
{{ 'LaTeX' }}
5856
{% when 'ts', 'typescript' %}
5957
{{ 'TypeScript' }}
6058
{% when 'vb', 'visualbasic' %}

_includes/media-url.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{%- comment -%} Add media resources subpath prefix {%- endcomment -%}
1818
{% assign url = include.subpath | default: '' | append: '/' | append: url %}
1919

20-
{%- comment -%} Prepend CND URL {%- endcomment -%}
20+
{%- comment -%} Prepend CDN URL {%- endcomment -%}
2121
{% if site.cdn %}
2222
{% assign url = site.cdn | append: '/' | append: url %}
2323
{% endif %}

_includes/post-paginator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- The paginator for post list on HomgPage. -->
1+
<!-- The paginator for post list on HomePage. -->
22

33
<nav aria-label="Page Navigation">
44
<ul class="pagination align-items-center mt-4 mb-0">

_includes/refactor-content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
{% assign _parent = _right | slice: 1, 4 %}
174174

175175
{% if _parent == '</a>' %}
176-
<!-- add class to exist <a> tag -->
176+
<!-- add class to existing <a> tag -->
177177
{% assign _size = _img_content | size | minus: 1 %}
178178
{% capture _class %}
179179
class="img-link{% unless _lqip %} shimmer{% endunless %}"

_javascript/modules/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export { initToc } from './components/toc';
77
export { loadMermaid } from './components/mermaid';
88
export { modeWatcher } from './components/mode-toggle';
99
export { back2top } from './components/back-to-top';
10-
export { loadTooptip } from './components/tooltip-loader';
10+
export { loadTooltip } from './components/tooltip-loader';

_javascript/modules/components/search-display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This script make #search-result-wrapper switch to unload or shown automatically.
2+
* This script makes #search-result-wrapper switch to unload or shown automatically.
33
*/
44

55
const btnSbTrigger = document.getElementById('sidebar-trigger');

_javascript/modules/components/tooltip-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Tooltip from 'bootstrap/js/src/tooltip';
22

3-
export function loadTooptip() {
3+
export function loadTooltip() {
44
const tooltipTriggerList = document.querySelectorAll(
55
'[data-bs-toggle="tooltip"]'
66
);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { back2top, loadTooptip, modeWatcher } from '../components';
1+
import { back2top, loadTooltip, modeWatcher } from '../components';
22

33
export function basic() {
44
modeWatcher();
55
back2top();
6-
loadTooptip();
6+
loadTooltip();
77
}

_sass/base/_syntax.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ code {
7878
}
7979

8080
a > &.highlighter-rouge {
81-
padding-bottom: 0; /* show link's underlinke */
81+
padding-bottom: 0; /* show link's underline */
8282
color: inherit;
8383
}
8484

@@ -137,7 +137,8 @@ div[class^='language-'] {
137137
height: v.$code-dot-size;
138138
border-radius: 50%;
139139
background-color: var(--code-header-muted-color);
140-
box-shadow: (v.$code-dot-size + v.$code-dot-gap) 0 0
140+
box-shadow:
141+
(v.$code-dot-size + v.$code-dot-gap) 0 0
141142
var(--code-header-muted-color),
142143
(v.$code-dot-size + v.$code-dot-gap) * 2 0 0
143144
var(--code-header-muted-color);

0 commit comments

Comments
 (0)