8000 chore: fix typos in project files and docs · Goder-0/goder-0.github.io@fbba0a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit fbba0a4

Browse files
committed
chore: fix typos in project files and docs
1 parent c876731 commit fbba0a4

File tree

8 files changed

+47
-47
lines changed

8 files changed

+47
-47
lines changed

_config.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ timezone: Asia/Shanghai
1616

1717
title: Chirpy # the main title
1818

19-
tagline: A text-focused Jekyll theme # it will display as the sub-title
19+
tagline: A text-focused Jekyll theme # it will display as the subtitle
2020

2121
description: >- # used by seo meta and the atom feed
2222
A minimal, responsive and feature-rich Jekyll theme for technical writing.
2323
2424
# Fill in the protocol & hostname for your site.
25-
# e.g. 'https://username.github.io', note that it does not end with a '/'.
25+
# E.g. 'https://username.github.io', note that it does not end with a '/'.
2626
url: ""
2727

2828
github:
29-
username: github_username # change to your github username
29+
username: github_username # change to your GitHub username
3030

3131
twitter:
32-
username: twitter_username # change to your twitter username
32+
username: twitter_username # change to your Twitter username
3333

3434
social:
3535
# Change to your full name.
@@ -38,8 +38,8 @@ social:
3838
email: example@domain.com # change to your email address
3939
links:
4040
# The first element serves as the copyright owner's link
41-
- https://twitter.com/username # change to your twitter homepage
42-
- https://github.com/username # change to your github homepage
41+
- https://twitter.com/username # change to your Twitter homepage
42+
- https://github.com/username # change to your GitHub homepage
4343
# Uncomment below to add more social links
4444
# - https://www.facebook.com/username
4545
# - https://www.linkedin.com/in/username
@@ -71,7 +71,7 @@ analytics:
7171
cloudflare:
7272
id: # fill in your Cloudflare Web Analytics token
7373

74-
# Pageviews settings
74+
# Page views settings
7575
pageviews:
7676
provider: # now only supports 'goatcounter'
7777

@@ -83,8 +83,8 @@ pageviews:
8383
#
8484
# Available options:
8585
#
86-
# light - Use the light color scheme
87-
# dark - Use the dark color scheme
86+
# light Use the light color scheme
87+
# dark Use the dark color scheme
8888
#
8989
theme_mode: # [light | dark]
9090

@@ -106,7 +106,7 @@ social_preview_image: # string, local or CORS resources
106106
toc: true
107107

108108
comments:
109-
# Global switch for the post comment system. Keeping it empty means disabled.
109+
# Global switch for the post-comment system. Keeping it empty means disabled.
110110
provider: # [disqus | utterances | giscus]
111111
# The provider options are as follows:
112112
disqus:
@@ -136,9 +136,9 @@ assets:
136136
env: # [development | production]
137137

138138
pwa:
139-
enabled: true # the option for PWA feature (installable)
139+
enabled: true # The option for PWA feature (installable)
140140
cache:
141-
enabled: true # the option for PWA offline cache
141+
enabled: true # The option for PWA offline cache
142142
# Paths defined here will be excluded from the PWA cache.
143143
# Usually its value is the `baseurl` of another website that
144144
# shares the same domain name as the current website.

_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 unloaded or shown automatically.
2+
* This script make #search-result-wrapper switch to unload or shown automatically.
33
*/
44

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

_posts/2019-08-08-text-and-typography.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ image:
1818

1919
<!-- markdownlint-capture -->
2020
<!-- markdownlint-disable -->
21-
# H1 - heading
21+
# H1 heading
2222
{: .mt-4 .mb-0 }
2323

24-
## H2 - heading
24+
## H2 heading
2525
{: data-toc-skip='' .mt-4 .mb-0 }
2626

27-
### H3 - heading
27+
### H3 heading
2828
{: data-toc-skip='' .mt-4 .mb-0 }
2929

30-
#### H4 - heading
30+
#### H4 heading
3131
{: data-toc-skip='' .mt-4 }
3232
<!-- markdownlint-restore -->
3333

_posts/2019-08-08-write-a-new-post.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tags: [TAG] # TAG names should always be lowercase
3131

3232
### Timezone of Date
3333

34-
In order to accurately record the release date of a post, you should not only set up the `timezone` of `_config.yml`{: .filepath} but also provide the post's timezone in variable `date` of its Front Matter block. Format: `+/-TTTT`, e.g. `+0800`.
34+
To accurately record the release date of a post, you should not only set up the `timezone` of `_config.yml`{: .filepath} but also provide the post's timezone in variable `date` of its Front Matter block. Format: `+/-TTTT`, e.g. `+0800`.
3535

3636
### Categories and Tags
3737

@@ -147,7 +147,7 @@ _Image Caption_
147147

148148
#### Size
149149

150-
In order to prevent the page content layout from shifting when the image is loaded, we should set the width and height for each image.
150+
To prevent the page content layout from shifting when the image is loaded, we should set the width and height for each image.
151151

152152
```markdown
153153
![Desktop View](/assets/img/sample/mockup.png){: width="700" height="400" }
@@ -284,7 +284,7 @@ If you want to embed a video file directly, use the following syntax:
284284
{% include embed/video.html src='{URL}' %}
285285
```
286286

287-
Where `URL` is an URL to a video file e.g. `/path/to/sample/video.mp4`.
287+
Where `URL` is a URL to a video file e.g. `/path/to/sample/video.mp4`.
288288

289289
You can also specify additional attributes for the embedded video file. Here is a full list of attributes allowed.
290290

@@ -295,7 +295,7 @@ You can also specify additional attributes for the embedded video file. Here is
295295
- `muted=true` — audio will be initially silenced
296296
- `types` — specify the extensions of additional video formats separated by `|`. Ensure these files exist in the same directory as your primary video file.
297297

298-
Consider an example utilizing all of the above:
298+
Consider an example using all of the above:
299299

300300
```liquid
301301
{%
@@ -318,14 +318,14 @@ If you want to embed an audio file directly, use the following syntax:
318318
{% include embed/audio.html src='{URL}' %}
319319
```
320320

321-
Where `URL` is an URL to an audio file e.g. `/path/to/audio.mp3`.
321+
Where `URL` is a URL to an audio file e.g. `/path/to/audio.mp3`.
322322

323323
You can also specify additional attributes for the embedded audio file. Here is a full list of attributes allowed.
324324

325325
- `title='Text'` — title for an audio that appears below the audio and looks same as for images
326326
- `types` — specify the extensions of additional audio formats separated by `|`. Ensure these files exist in the same directory as your primary audio file.
327327

328-
Consider an example utilizing all of the above:
328+
Consider an example using all of the above:
329329

330330
```liquid
331331
{%
@@ -365,7 +365,7 @@ There are several types of prompts: `tip`, `info`, `warning`, and `danger`. They
365365
```
366366
{: .nolineno }
367367

368-
### Filepath Hightlight
368+
### Filepath Highlight
369369

370370
```md
371371
`/path/to/a/file.extend`{: .filepath}

_posts/2019-08-09-getting-started.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $ bundle
6060

6161
### Configuration
6262

63-
Update the variables of `_config.yml`{: .filepath} as needed. Some of them are typical options:
63+
Update the variables in `_config.yml`{: .filepath} as needed. Some typical options include:
6464

6565
- `url`
6666
- `avatar`
@@ -69,17 +69,17 @@ Update the variables of `_config.yml`{: .filepath} as needed. Some of them are t
6969

7070
### Social Contact Options
7171

72-
Social contact options are displayed at the bottom of the sidebar. You can turn on/off the specified contacts in file `_data/contact.yml`{: .filepath }.
72+
Social contact options are displayed at the bottom of the sidebar. You can enable or disable specific contacts in the `_data/contact.yml`{: .filepath} file.
7373

74-
### Customizing Stylesheet
74+
### Customizing the Stylesheet
7575

76-
If you need to customize the stylesheet, copy the theme's `assets/css/jekyll-theme-chirpy.scss`{: .filepath} to the same path on your Jekyll site, and then add the custom style at the end of it.
76+
To customize the stylesheet, copy the theme's `assets/css/jekyll-theme-chirpy.scss`{: .filepath} file to the same path in your Jekyll site, and add your custom styles at the end of the file.
7777

78-
Starting with version `6.2.0`, if you want to overwrite the SASS variables defined in `_sass/addon/variables.scss`{: .filepath}, copy the main sass file `_sass/main.scss`{: .filepath} into the `_sass`{: .filepath} directory in your site's source, then create a new file `_sass/variables-hook.scss`{: .filepath} and assign new value.
78+
Starting with version `6.2.0`, if you want to overwrite the SASS variables defined in `_sass/addon/variables.scss`{: .filepath}, copy the main SASS file `_sass/main.scss`{: .filepath} to the `_sass`{: .filepath} directory in your site's source, then create a new file `_sass/variables-hook.scss`{: .filepath} and assign your new values there.
7979

80-
### Customing Static Assets
80+
### Customizing Static Assets
8181

82-
Static assets configuration was introduced in version `5.1.0`. The CDN of the static assets is defined by file `_data/origin/cors.yml`{: .filepath }, and you can replace some of them according to the network conditions in the region where your website is published.
82+
Static assets configuration was introduced in version `5.1.0`. The CDN of the static assets is defined in `_data/origin/cors.yml`{: .filepath }. You can replace some of them based on to the network conditions in the region where your website is published.
8383

8484
Also, if you'd like to self-host the static assets, please refer to the [_chirpy-static-assets_](https://github.com/cotes2020/chirpy-static-assets#readme).
8585

@@ -95,42 +95,42 @@ After a few seconds, the local service will be published at _<http://127.0.0.1:4
9595

9696
## Deployment
9797

98-
Before the deployment begins, check out the file `_config.yml`{: .filepath} and make sure the `url` is configured correctly. Furthermore, if you prefer the [**project site**](https://help.github.com/en/github/working-with-github-pages/about-github-pages#types-of-github-pages-sites) and don't use a custom domain, or you want to visit your website with a base URL on a web server other than **GitHub Pages**, remember to change the `baseurl` to your project name that starts with a slash, e.g, `/project-name`.
98+
Before deploying, check the `_config.yml`{: .filepath} file and ensure the `url` is configured correctly. If you prefer a [**project site**](https://help.github.com/en/github/working-with-github-pages/about-github-pages#types-of-github-pages-sites) and don't use a custom domain, or if you want to visit your website with a base URL on a web server other than **GitHub Pages**, remember to set the `baseurl` to your project name, starting with a slash, e.g., `/project-name`.
9999

100100
Now you can choose _ONE_ of the following methods to deploy your Jekyll site.
101101

102-
### Deploy by Using GitHub Actions
102+
### Deploy Using GitHub Actions
103103

104-
There are a few things to get ready for.
104+
Prepare the following:
105105

106106
- If you're on the GitHub Free plan, keep your site repository public.
107-
- If you have committed `Gemfile.lock`{: .filepath} to the repository, and your local machine is not running Linux, go to the root of your site and update the platform list of the lock-file:
107+
- If you have committed `Gemfile.lock`{: .filepath} to the repository, and your local machine is not running Linux, update the platform list of the lock file:
108108

109109
```console
110110
$ bundle lock --add-platform x86_64-linux
111111
```
112112

113-
Next, configure the _Pages_ service.
113+
Next, configure the _Pages_ service:
114114

115-
1. Browse to your repository on GitHub. Select the tab _Settings_, then click _Pages_ in the left navigation bar. Then, in the **Source** section (under _Build and deployment_), select [**GitHub Actions**][pages-workflow-src] from the dropdown menu.
116-
![Build source](pages-source-light.png){: .light .border .normal w='375' h='140' }
117-
![Build source](pages-source-dark.png){: .dark .normal w='375' h='140' }
115+
1. Go to your repository on GitHub. Select the _Settings_ tab, then click _Pages_ in the left navigation bar. In the **Source** section (under _Build and deployment_), select [**GitHub Actions**][pages-workflow-src] from the dropdown menu.
116+
![Build source](pages-source-light.png){: .light .border .normal w='375' h='140' }
117+
![Build source](pages-source-dark.png){: .dark .normal w='375' h='140' }
118118

119119
2. Push any commits to GitHub to trigger the _Actions_ workflow. In the _Actions_ tab of your repository, you should see the workflow _Build and Deploy_ running. Once the build is complete and successful, the site will be deployed automatically.
120120

121-
At this point, you can go to the URL indicated by GitHub to access your site.
121+
You can now visit the URL provided by GitHub to access your site.
122122

123-
### Manually Build and Deploy
123+
### Manual Build and Deployment
124124

125-
On self-hosted servers, you cannot enjoy the convenience of **GitHub Actions**. Therefore, you should build the site on your local machine and then upload the site files to the server.
125+
For self-hosted servers, you will need to build the site on your local machine and then upload the site files to the server.
126126

127-
Go to the root of the source project, and build your site as follows:
127+
Navigate to the root of the source project, and build your site with the following command:
128128

129129
```console
130130
$ JEKYLL_ENV=production bundle exec jekyll b
131131
```
132132

133-
Unless you specified the output path, the generated site files will be placed in folder `_site`{: .filepath} of the project's root directory. Now you should upload those files to the target server.
133+
Unless you specified the output path, the generated site files will be placed in the `_site`{: .filepath} folder of the project's root directory. Upload these files to your target server.
134134

135135
[nodejs]: https://nodejs.org/
136136
[starter]: https://github.com/cotes2020/chirpy-starter

_sass/addon/module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
}
124124

125125
%text-highlight {
126-
color: var(--text-muted-hightlight-color);
126+
color: var(--text-muted-highlight-color);
127127
font-weight: 600;
128128
}
129129

_sass/colors/typography-dark.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/* Common color */
1212
--text-color: rgb(175, 176, 177);
1313
--text-muted-color: #868686;
14-
--text-muted-hightlight-color: #aeaeae;
14+
--text-muted-highlight-color: #aeaeae;
1515
--heading-color: #cccccc;
1616
--label-color: #a7a7a7;
1717
--blockquote-border-color: rgb(66, 66, 66);

_sass/colors/typography-light.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/* Common color */
1212
--text-color: #34343c;
1313
--text-muted-color: #757575;
14-
--text-muted-hightlight-color: inherit;
14+
--text-muted-highlight-color: inherit;
1515
--heading-color: #2a2a2a;
1616
--label-color: #585858;
1717
--blockquote-border-color: #eeeeee;

0 commit comments

Comments
 (0)
0