You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Language: English | [简体中文](docs/README.zh-CN.md)
9
9
10
10
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)
@@ -134,7 +134,7 @@ For security reasons, GitHub Pages build runs on `safe` mode, which restricts us
134
134
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.
135
135
136
136
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_:
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
"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."
"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."
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`.
22
22
23
23
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:
24
24
@@ -51,12 +51,11 @@ $ bash tools/init.sh
51
51
What it does is:
52
52
53
53
1. Remove some files or directories from your repository:
54
-
55
54
-`.travis.yml`
56
55
- files under `_posts`
57
56
- folder `docs`
58
57
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`.
60
59
61
60
3. Automatically create a commit to save the changes.
62
61
@@ -104,7 +103,7 @@ For security reasons, GitHub Pages build runs on `safe` mode, which restricts us
104
103
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.
105
104
106
105
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_:
Copy file name to clipboardExpand all lines: _posts/2019-08-11-customize-the-favicon.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,17 @@ In [**Chirpy**](https://github.com/cotes2020/jekyll-theme-chirpy/), the image fi
11
11
12
12
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.
Download the generated package, unzip and delete the following two from the extracted files:
21
21
22
22
- browserconfig.xml
23
23
- manifest.json
24
-
24
+
25
25
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/`.
26
26
27
27
The following table helps you understand the changes to the icon file:
Copy file name to clipboardExpand all lines: _posts/2021-01-03-enable-google-pv.md
+24-30
Original file line number
Diff line number
Diff line change
@@ -12,35 +12,28 @@ This post is to enable Page Views on the [**Chirpy**][chirpy-homepage] theme bas
12
12
## Set up Google Analytics
13
13
14
14
### 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.
16
15
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.
18
17
18
+
1. Head to <https://analytics.google.com/> and click on **Start Measuring**
19
19
2. Enter your desired *Account Name* and choose the desired checkboxes
20
-
21
20
3. Enter your desired *Property Name*. This is the name of the tracker project that appears on your Google Analytics dashboard
22
-
23
21
4. Enter the required information *About your business*
24
-
25
22
5. Hit *Create* and accept any license popup to setup your Google Analytics account and create your property
26
23
27
24
### Create Data Stream
28
25
29
26
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:
30
27
31
28
1. Go to **Admin** on the left column
32
-
33
29
2. Select the desired property from the drop down on the second column
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
46
39
@@ -49,7 +42,6 @@ google_analytics:
49
42
id: 'G-V6XXXXXXX'# Fill with your Google Analytics ID
50
43
pv:
51
44
# The Google Analytics pageviews switch.
52
-
# DO NOT enable it unless you know how to deploy the Google Analytics superProxy.
53
45
enabled: false
54
46
# the next options only valid when `google_analytics.pv` is enabled.
55
47
proxy_url: ''
@@ -59,11 +51,11 @@ google_analytics:
59
51
60
52
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.
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.
67
59
68
60
### Setup Google App Engine
69
61
@@ -134,18 +126,22 @@ There is a detailed [tutorial](https://developers.google.com/analytics/solutions
134
126
4. Enter any random key for `XSRF_KEY`, your `config.py` should look similar to this
**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.
@@ -215,14 +211,14 @@ After <kbd>Run Query</kbd>, copy the generated contents of **API Query URI** at
215
211
216
212
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.
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.
0 commit comments