Skip to content

Commit f485dfa

Browse files
committed
Remove the image files
1 parent 83ab2d1 commit f485dfa

18 files changed

+42
-49
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Language: English | [简体中文](docs/README.zh-CN.md)
99

1010
A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation. Designed to help you record and share your knowledge easily. [Live Demo »](https://chirpy.cotes.info)
1111

12-
[![Devices Mockup](https://raw.githubusercontent.com/cotes2020/jekyll-theme-chirpy/master/assets/img/sample/devices-mockup.png)](https://chirpy.cotes.info)
12+
[![Devices Mockup](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/devices-mockup.png)](https://chirpy.cotes.info)
1313

1414
## Table of Contents
1515

@@ -134,7 +134,7 @@ For security reasons, GitHub Pages build runs on `safe` mode, which restricts us
134134
1. Push any commit to `origin/master` to trigger the GitHub Actions workflow. Once the build is complete and successful, a new remote branch named `gh-pages` will appear to store the built site files.
135135

136136
2. Browse to your repo's landing page on GitHub and select the branch `gh-pages` as the [publishing source](https://docs.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) throught _Settings__Options__GitHub Pages_:
137-
![gh-pages-sources](https://raw.githubusercontent.com/cotes2020/jekyll-theme-chirpy/master/assets/img/sample/gh-pages-sources.png)
137+
![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190809/gh-pages-sources.png)
138138

139139
3. Visit your website at the address indicated by GitHub.
140140

Diff for: _config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ url: ''
2121

2222
author: your_full_name # change to your full name
2323

24-
avatar: /assets/img/sample/avatar.jpg # support internet resources
25-
2624
github:
2725
username: github_username # change to your github username
2826

@@ -88,6 +86,8 @@ theme_mode: # [light|dark]
8886
# e.g. 'https://cdn.com'
8987
img_cdn: ''
9088

89+
# the avatar on sidebar, support local or CORS resources
90+
avatar: https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/avatar.jpg
9191

9292
# boolean type, the global switch for ToC in posts.
9393
toc: true

Diff for: _posts/2019-08-08-text-and-typography.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ categories: [Blogging, Demo]
66
tags: [typography]
77
math: true
88
mermaid: true
9-
image: /assets/img/sample/devices-mockup.png
9+
image: https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/devices-mockup.png
1010
---
1111

1212
This post is to show Markdown syntax rendering on [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/fork), you can also use it as an example of writing. Now, let's start looking at text and typography.
@@ -97,34 +97,34 @@ Click the hook will locate the footnote[^footnote], and here is another footnote
9797

9898
- Default (with caption)
9999

100-
![Desktop View](/assets/img/sample/mockup.png)
100+
![Desktop View](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190808/mockup.png)
101101
_Full screen width and center alignment_
102102

103103
<br>
104104

105105
- Specify width
106106

107-
![Desktop View](/assets/img/sample/mockup.png){: width="400"}
107+
![Desktop View](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190808/mockup.png){: width="400"}
108108
_400px image width_
109109

110110
<br>
111111

112112
- Left aligned
113113

114-
![Desktop View](/assets/img/sample/mockup.png){: width="350" .normal}
114+
![Desktop View](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190808/mockup.png){: width="350" .normal}
115115

116116
<br>
117117

118118
- Float to left
119119

120-
![Desktop View](/assets/img/sample/mockup.png){: width="240" .left}
120+
![Desktop View](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190808/mockup.png){: width="240" .left}
121121
"A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space."
122122

123123
<br>
124124

125125
- Float to right
126126

127-
![Desktop View](/assets/img/sample/mockup.png){: width="240" .right}
127+
![Desktop View](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190808/mockup.png){: width="240" .right}
128128
"A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space. A repetitive and meaningless text is used to fill the space."
129129

130130
<br>

Diff for: _posts/2019-08-09-getting-started.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ git clone https://github.com/USERNAME/USERNAME.github.io.git -b master --singl
1818

1919
### Setting up the local envrionment
2020

21-
If you would like to run or build the project on your local machine, please follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll` and `Bundler`.
21+
If you would like to run or build the project on your local machine, please follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of `Ruby`, `RubyGems`, `Jekyll` and `Bundler`.
2222

2323
Before running or building for the first time, please complete the installation of the Jekyll plugins. Go to the root directory of project and run:
2424

@@ -51,12 +51,11 @@ $ bash tools/init.sh
5151
What it does is:
5252

5353
1. Remove some files or directories from your repository:
54-
5554
- `.travis.yml`
5655
- files under `_posts`
5756
- folder `docs`
5857

59-
2. If you use the `--no-gh` option, the directory `.github` will be deleted. Otherwise, setup the GitHub Action workflow by removing extension `.hook` of `.github/workflows/pages-deploy.yml.hook`, and then remove the other files and directories in folder `.github`.
58+
2. If you use the `--no-gh` option, the directory `.github` will be deleted. Otherwise, setup the GitHub Action workflow by removing extension `.hook` of `.github/workflows/pages-deploy.yml.hook`, and then remove the other files and directories in folder `.github`.
6059

6160
3. Automatically create a commit to save the changes.
6261

@@ -104,7 +103,7 @@ For security reasons, GitHub Pages build runs on `safe` mode, which restricts us
104103
1. Push any commit to `origin/master` to trigger the GitHub Actions workflow. Once the build is complete and successful, a new remote branch named `gh-pages` will appear to store the built site files.
105104

106105
2. Browse to your repo's landing page on GitHub and select the branch `gh-pages` as the [publishing source](https://docs.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site) throught _Settings__Options__GitHub Pages_:
107-
![gh-pages-sources](/assets/img/sample/gh-pages-sources.png){: width="650" class="normal"}
106+
![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190809/gh-pages-sources.png){: width="650" class="normal"}
108107

109108
3. Visit your website at the address indicated by GitHub.
110109

Diff for: _posts/2019-08-11-customize-the-favicon.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ In [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/), the image fi
1111

1212
With a square image (PNG, JPG or GIF) in hand, open the site [*Favicon & App Icon Generator*](https://www.favicon-generator.org/) and upload your original image.
1313

14-
![upload-image](/assets/img/sample/upload-image.png)
14+
![upload-image](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190811/upload-image.png)
1515

1616
Click button <kbd>Create Favicon</kbd> and wait a moment for the website to generate the icons of various sizes automatically.
1717

18-
![download-icons](/assets/img/sample/download-icons.png){: width="600"}
18+
![download-icons](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190811/download-icons.png){: width="600"}
1919

2020
Download the generated package, unzip and delete the following two from the extracted files:
2121

2222
- browserconfig.xml
2323
- manifest.json
24-
24+
2525
Now, copy the remaining image files (`.PNG` and `.ICO`) from the extracted `.zip` file to cover the original files in the folder `assets/img/favicons/`.
2626

2727
The following table helps you understand the changes to the icon file:

Diff for: _posts/2021-01-03-enable-google-pv.md

+24-30
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,28 @@ This post is to enable Page Views on the [**Chirpy**][chirpy-homepage] theme bas
1212
## Set up Google Analytics
1313

1414
### Create GA account and property
15-
First, you need to setup your account on Google analytics. While your create your account, you must create your first **Property** as well.
1615

17-
1. Head to <https://https://analytics.google.com/> and click on **Start Measuring**
16+
First, you need to setup your account on Google analytics. While your create your account, you must create your first **Property** as well.
1817

18+
1. Head to <https://analytics.google.com/> and click on **Start Measuring**
1919
2. Enter your desired *Account Name* and choose the desired checkboxes
20-
2120
3. Enter your desired *Property Name*. This is the name of the tracker project that appears on your Google Analytics dashboard
22-
2321
4. Enter the required information *About your business*
24-
2522
5. Hit *Create* and accept any license popup to setup your Google Analytics account and create your property
2623

2724
### Create Data Stream
2825

2926
With your property created, you now need to set up Data Stream to track your blog traffic. After you signup, the prompt should automatically take you to creating your first **Data Stream**. If not, follow these steps:
3027

3128
1. Go to **Admin** on the left column
32-
3329
2. Select the desired property from the drop down on the second column
34-
3530
3. Click on **Data Streams**
36-
3731
4. Add a stream and click on **Web**
38-
3932
5. Enter your blog's URL
4033

4134
It should look like this:
4235

43-
![google-analytics-data-stream](/assets/img/sample/01-google-analytics-data-stream.png)
36+
![google-analytics-data-stream](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20210103/01-google-analytics-data-stream.png)
4437

4538
Now, click on the new data stream and grab the **Measurement ID**. It should look something like `G-V6XXXXXXXX`. Copy this to your `_config.yml` file
4639

@@ -49,7 +42,6 @@ google_analytics:
4942
id: 'G-V6XXXXXXX' # Fill with your Google Analytics ID
5043
pv:
5144
# The Google Analytics pageviews switch.
52-
# DO NOT enable it unless you know how to deploy the Google Analytics superProxy.
5345
enabled: false
5446
# the next options only valid when `google_analytics.pv` is enabled.
5547
proxy_url: ''
@@ -59,11 +51,11 @@ google_analytics:
5951
6052
When you push these changes to your blog, you should start seeing the traffic on your Google Analytics. Play around with Google Analytics dashboard to get familiar with the options available as it takes like 5 mins to pickup your changes. You should now be able to monitor your traffic in realtime.
6153
62-
![google-analytics-realtime](/assets/img/sample/02-google-analytics-realtime.png)
54+
![google-analytics-realtime](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20210103/02-google-analytics-realtime.png)
6355
6456
## Setup Page Views
6557
66-
There is a detailed [tutorial](https://developers.google.com/analytics/solutions/google-analytics-super-proxy) available to set up Google Analytics superProxy. But, if you are interested to just quickly get your Chirpy-based blog display page views, follow along. These steps were tested on a Linux machine. If you are running Windows, you can use Git bash terminal to run linux-like commands.
58+
There is a detailed [tutorial](https://developers.google.com/analytics/solutions/google-analytics-super-proxy) available to set up Google Analytics superProxy. But, if you are interested to just quickly get your Chirpy-based blog display page views, follow along. These steps were tested on a Linux machine. If you are running Windows, you can use Git bash terminal to run Unix-like commands.
6759
6860
### Setup Google App Engine
6961
@@ -134,18 +126,22 @@ There is a detailed [tutorial](https://developers.google.com/analytics/solutions
134126
4. Enter any random key for `XSRF_KEY`, your `config.py` should look similar to this
135127

136128
```python
137-
#!/usr/bin/python2.7
138-
__author__ = 'pete.frisella@gmail.com (Pete Frisella)'
139-
# OAuth 2.0 Client Settings
140-
AUTH_CONFIG = {
141-
'OAUTH_CLIENT_ID': 'YOUR_CLIENT_ID',
142-
'OAUTH_CLIENT_SECRET': 'YOUR_CLIENT_SECRET',
143-
'OAUTH_REDIRECT_URI': '%s%s' % (
144-
'https://chirpy-test-XXXXXX.ue.r.appspot.com',
145-
'/admin/auth')
146-
}
147-
# XSRF Settings
148-
XSRF_KEY = 'OnceUponATimeThereLivedALegend'
129+
#!/usr/bin/python2.7
130+
131+
__author__ = 'pete.frisella@gmail.com (Pete Frisella)'
132+
133+
# OAuth 2.0 Client Settings
134+
AUTH_CONFIG = {
135+
'OAUTH_CLIENT_ID': 'YOUR_CLIENT_ID',
136+
'OAUTH_CLIENT_SECRET': 'YOUR_CLIENT_SECRET',
137+
'OAUTH_REDIRECT_URI': '%s%s' % (
138+
'https://chirpy-test-XXXXXX.ue.r.appspot.com',
139+
'/admin/auth'
140+
)
141+
}
142+
143+
# XSRF Settings
144+
XSRF_KEY = 'OnceUponATimeThereLivedALegend'
149145
```
150146
**Tip:** You can configure a custom domain instead of `https://PROJECT_ID.REGION_ID.r.appspot.com`. But, for the sake of keeping it simple, we will be using the Google provided default URL.
151147

@@ -189,7 +185,7 @@ XSRF_KEY = 'OnceUponATimeThereLivedALegend'
189185

190186
If everything went good, you'll get this screen:
191187

192-
![superProxy-deployed](/assets/img/sample/03-superProxy-deployed.png)
188+
![superProxy-deployed](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20210103/03-superProxy-deployed.png)
193189

194190
### Create Google Analytics Query
195191

@@ -215,14 +211,14 @@ After <kbd>Run Query</kbd>, copy the generated contents of **API Query URI** at
215211

216212
After the query is saved on GAE, a **Public Endpoint** (public access address) will be generated, and we will get the query result in JSON format when accessing it. Finally, click <kbd>Enable Endpoint</kbd> in **Public Request Endpoint** to make the query effective, and click <kbd>Start Scheduling</kbd> in **Scheduling** to start the scheduled task.
217213

218-
![superproxy-query](/assets/img/sample/04-superproxy-query.png)
214+
![superproxy-query](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20210103/04-superproxy-query.png)
219215

220216

221217
## Configure Chirpy to Display Page View
222218

223219
Once all the hard part is done, it is very easy to enable the Page View on Chirpy theme. Your superProxy dashboard should look something like below and you can grab the required values.
224220

225-
![superproxy-dashboard](/assets/img/sample/05-superproxy-dashboard.png)
221+
![superproxy-dashboard](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20210103/05-superproxy-dashboard.png)
226222

227223
Update the `_config.yml` file of [**Chirpy**][chirpy-homepage] project with the values from your dashboard, to look similar to the following:
228224

@@ -231,13 +227,11 @@ google_analytics:
231227
id: 'G-XXXXXXXXXX' # Fill with your Google Analytics ID
232228
pv:
233229
# The Google Analytics pageviews switch.
234-
# DO NOT enable it unless you know how to deploy the Google Analytics superProxy.
235230
enabled: true
236231
# the next options only valid when `google_analytics.pv` is enabled.
237232
proxy_url: 'https://PROJECT_ID.REGION_ID.r.appspot.com'
238233
proxy_endpoint: 'https://PROJECT_ID.REGION_ID.r.appspot.com/query?id=<ID FROM SUPER PROXY>'
239234
cache: false # pv data local cache, good for the users from GFW area.
240-
241235
```
242236
243237
Now, you should see the Page View enabled on your blog.
-18.4 KB
Binary file not shown.

Diff for: assets/img/sample/02-google-analytics-realtime.png

-22.3 KB
Binary file not shown.

Diff for: assets/img/sample/03-superProxy-deployed.png

-20.4 KB
Binary file not shown.

Diff for: assets/img/sample/04-superproxy-query.png

-15.9 KB
Binary file not shown.

Diff for: assets/img/sample/05-superproxy-dashboard.png

-23 KB
Binary file not shown.

Diff for: assets/img/sample/avatar.jpg

-17.7 KB
Binary file not shown.

Diff for: assets/img/sample/devices-mockup.png

-52.4 KB
Binary file not shown.

Diff for: assets/img/sample/download-icons.png

-9.6 KB
Binary file not shown.

Diff for: assets/img/sample/gh-pages-sources.png

-13 KB
Binary file not shown.

Diff for: assets/img/sample/mockup.png

-31.3 KB
Binary file not shown.

Diff for: assets/img/sample/upload-image.png

-35.1 KB
Binary file not shown.

Diff for: docs/README.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Language: [English](../README.md) | 简体中文
99

1010
一个不一样的 Jekyll 主题,采用响应式设计,方便记录、管理、分享你的知识和经验。[懂的进 »](https://chirpy.cotes.info)
1111

12-
[![Devices Mockup](https://raw.githubusercontent.com/cotes2020/jekyll-theme-chirpy/master/assets/img/sample/devices-mockup.png)](https://chirpy.cotes.info)
12+
[![Devices Mockup](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/commons/devices-mockup.png)](https://chirpy.cotes.info)
1313

1414
> :bulb: 中文版文档存在更新不及时的风险(开源文档以英文为主,请见谅)。如果发现中、英文内容不匹配的情况,一切以英文版内容为准。如果您愿意的话,可提交 issue 提醒作者更新中文版 README,谢谢。
1515
@@ -139,7 +139,7 @@ $ docker run -it --rm \
139139

140140
2. 回到 GitHub 上的仓库, 通过 _Settings_
141141
_Options__GitHub Pages_ 选择分支 `gh-pages` 作为[_发布源_](https://docs.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site):
142-
![gh-pages-sources](https://raw.githubusercontent.com/cotes2020/jekyll-theme-chirpy/master/assets/img/sample/gh-pages-sources.png)
142+
![gh-pages-sources](https://cdn.jsdelivr.net/gh/cotes2020/chirpy-images/posts/20190809/gh-pages-sources.png)
143143

144144
3. 按照 GitHub 指示的地址去访问你的网站。
145145

0 commit comments

Comments
 (0)