Skip to content

Commit b845c82

Browse files
committed
Import the framework.
1 parent 5d0e72d commit b845c82

File tree

103 files changed

+4640
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+4640
-0
lines changed

404.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# The 404 page
3+
# © 2017-2019 Cotes Chung
4+
# MIT License
5+
layout: page
6+
title: "404: Page not found"
7+
8+
permalink: /404.html
9+
10+
redirect_from: # Same as site.blocklist
11+
- /norobots/
12+
- /assets/
13+
- /tabs/
14+
- /categories/
15+
- /tags/
16+
- /posts/
17+
18+
dynamic_title: true
19+
---
20+
21+
<div class="lead">
22+
<p>Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. </p>
23+
<p><a href="{{ site.baseurl }}/">Head back Home</a> to try finding it again, or search for it on the <a href="{{ site.baseurl }}/tabs/archives">Archives page</a>.</p>
24+
</div>

Gemfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'jekyll', '>=3.8.6'
4+
5+
# Official Plugins
6+
group :jekyll_plugins do
7+
gem 'jekyll-paginate'
8+
gem 'jekyll-redirect-from'
9+
gem 'jekyll-seo-tag'
10+
end
11+
12+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
13+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2019 Cotes Chung
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

_config.yml

+166
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# The Site Settings
2+
# © 2017-2019 Cotes Chung
3+
# MIT licensed
4+
5+
6+
# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
7+
#--------------------------
8+
9+
title: Chirpy
10+
11+
description: 'A text-based Jekyll theme.'
12+
13+
# Replace with your domain, e.g. "https://username.github.io"
14+
url: 'https://www.example.com'
15+
16+
author: Chirpy # change to your full name
17+
18+
logo: /assets/img/sample/profile.jpg # Support network resources.
19+
20+
github:
21+
username: github_username # change to your github username
22+
23+
twitter:
24+
username: twitter_username # change to your twitter username
25+
26+
social:
27+
name: Chirpy # change to your full name
28+
email: [email protected] # change to your email address
29+
links:
30+
- https://twitter.com/username # change to your twitter homepage
31+
- https://github.com/username # change to your github homepage
32+
# - https://www.facebook.com/username
33+
# - https://www.linkedin.com/in/username
34+
35+
google_site_verification: google_meta_tag_verification # change to your verification string
36+
37+
#--------------------------
38+
39+
# Change to your Google Analytics ID
40+
google_analytics:
41+
id: 'UA-*********-*'
42+
# Switch for Google Analytics pageviews. DO NOT enable it unless you know how to deploy the Google Analytics superProxy.
43+
pv: false
44+
45+
disqus:
46+
shortname: 'disqus' # Change to your Disqus shortname.
47+
comments: true # boolean type, the gobal switch of posts' comments.
48+
49+
# The year your website was first run.
50+
first_run: 2019
51+
52+
# boolean type, gobal switch for ToC in posts.
53+
toc: true
54+
55+
56+
# if your site type is Project Pages site, change below value to '/projectname'
57+
baseurl: ''
58+
59+
paginate: 10
60+
61+
markdown: kramdown
62+
63+
highlighter: rouge
64+
65+
kramdown:
66+
input: GFM
67+
syntax_highlighter: rouge
68+
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
69+
css_class: 'highlight'
70+
# default_lang: console
71+
span:
72+
line_numbers: false
73+
block:
74+
line_numbers: true
75+
start_line: 1
76+
77+
permalink: /posts/:title/
78+
79+
defaults:
80+
-
81+
scope:
82+
path: "" # An empty string here means all files in the project
83+
type: posts
84+
values:
85+
layout: post
86+
comments: true # Enable comments in posts.
87+
toc: true # Display TOC column in posts.
88+
location: Post
89+
breadcrumb:
90+
-
91+
label: Posts
92+
url: /
93+
-
94+
scope:
95+
path: _drafts
96+
values:
97+
comments: false
98+
-
99+
scope:
100+
path: tags
101+
values:
102+
location: Tag
103+
breadcrumb:
104+
-
105+
label: Home
106+
url: /
107+
-
108+
label: Tags
109+
url: /tabs/tags/
110+
-
111+
scope:
112+
path: categories
113+
values:
114+
location: Category
115+
breadcrumb:
116+
-
117+
label: Home
118+
url: /
119+
-
120+
label: Categories
121+
url: /tabs/categories/
122+
-
123+
scope:
124+
path: tabs
125+
values:
126+
layout: page
127+
dynamic_title: true # hide title in mobile screens.
128+
breadcrumb:
129+
-
130+
label: Home
131+
url: /
132+
133+
timezone: Asia/Shanghai
134+
135+
sass:
136+
sass_dir: /assets/css
137+
style: compressed
138+
139+
compress_html:
140+
clippings: all
141+
comments: ["<!-- ", " -->"]
142+
endings: [html, head, body, dt, dd, rt, rp, optgroup, option, colgroup, caption, thead, tbody, tfoot, tr, td, th]
143+
profile: false
144+
blanklines: false
145+
ignore:
146+
envs: []
147+
148+
exclude:
149+
- vendor/ # Avoid Jekyll mistakenly read the vender directory in Travis-CI's VM .
150+
- Gemfile.lock
151+
- Gemfile
152+
- run.sh
153+
- build.sh
154+
- init.sh
155+
- pv.sh
156+
157+
sitemap_exclude: # Sitemap will exclude the following items.
158+
- /norobots/
159+
- /assets/
160+
- /tabs/
161+
- /categories/
162+
- /tags/
163+
- /posts/
164+
- /404.html
165+
- /redirects.json
166+
- /search.json

_data/label.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The label text of site.
2+
# © 2017-2019 Cotes Chung
3+
# MIT Licensed
4+
5+
tabs:
6+
- { name: "Home" }
7+
- { name: "Categories", path: tabs, url: categories }
8+
- { name: "Tags", path: tabs, url: tags }
9+
- { name: "Archives", path: tabs, url: archives }
10+
- { name: "About", path: tabs, url: about }
11+
12+
panel:
13+
lastmod: "Recent Update"
14+
trending_tags: "Trending Tags"
15+
toc: "Contents"
16+
17+
search_hint: "Search" # text show on search bar

_includes/date-format.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!--
2+
Define the liquid date formats.
3+
© 2019 Cotes Chung
4+
Published under the MIT License
5+
-->
6+
7+
{% assign TOOLTIP_DATE = "%a, %b %e, %Y, %l:%M %p %z" %}
8+
{% assign POST_DATE = "%b %e, %Y" %}

_includes/disqus.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!--
2+
The Disqus lazy loading.
3+
Powered by: https://osvaldas.info/lazy-loading-disqus-comments
4+
© 2019 Cotes Chung
5+
MIT License
6+
-->
7+
8+
<div id="disqus" class="pt-2 pb-4">
9+
<p class="font-italic text-muted small">Comments powered by <a href="https://disqus.com/">Disqus</a>.</p>
10+
</div>
11+
12+
<script src="{{ site.baseurl }}/assets/lib/jquery.disqusloader.min.js"></script>
13+
<script>
14+
var options = {
15+
scriptUrl: '//{{ site.disqus.shortname }}.disqus.com/embed.js',
16+
17+
disqusConfig: function() {
18+
this.page.url = '{{ site.url | append: site.baseurl | append: page.url }}';
19+
this.page.identifier = '{{ page.url }}';
20+
}
21+
};
22+
23+
$.disqusLoader('#disqus', options);
24+
</script>

_includes/favicons.html

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!--
2+
The Favicons for Web, Android, Microsoft, and iOS (iPhone and iPad) Apps
3+
Generated by: https://www.favicon-generator.org/
4+
© 2019 Cotes Chung
5+
Published under the MIT license
6+
-->
7+
8+
{% capture icon_url %}{{ site.baseurl }}/assets/img/favicons{% endcapture %}
9+
10+
<link rel="shortcut icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">
11+
<link rel="icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">
12+
13+
<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon.png">
14+
<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon-precomposed.png">
15+
<link rel="apple-touch-icon" sizes="57x57" href="{{ icon_url }}/apple-icon-57x57.png">
16+
<link rel="apple-touch-icon" sizes="60x60" href="{{ icon_url }}/apple-icon-60x60.png">
17+
<link rel="apple-touch-icon" sizes="72x72" href="{{ icon_url }}/apple-icon-72x72.png">
18+
<link rel="apple-touch-icon" sizes="76x76" href="{{ icon_url }}/apple-icon-76x76.png">
19+
<link rel="apple-touch-icon" sizes="114x114" href="{{ icon_url }}/apple-icon-114x114.png">
20+
<link rel="apple-touch-icon" sizes="120x120" href="{{ icon_url }}/apple-icon-120x120.png">
21+
<link rel="apple-touch-icon" sizes="144x144" href="{{ icon_url }}/apple-icon-144x144.png">
22+
<link rel="apple-touch-icon" sizes="152x152" href="{{ icon_url }}/apple-icon-152x152.png">
23+
<link rel="apple-touch-icon" sizes="180x180" href="{{ icon_url }}/apple-icon-180x180.png">
24+
25+
<link rel="icon" type="image/png" sizes="192x192" href="{{ icon_url }}/android-icon-192x192.png">
26+
<link rel="icon" type="image/png" sizes="32x32" href="{{ icon_url }}/favicon-32x32.png">
27+
<link rel="icon" type="image/png" sizes="96x96" href="{{ icon_url }}/favicon-96x96.png">
28+
<link rel="icon" type="image/png" sizes="16x16" href="{{ icon_url }}/favicon-16x16.png">
29+
30+
<link rel="manifest" href="{{ icon_url }}/manifest.json">
31+
<meta name='msapplication-config' content='{{ icon_url }}/browserconfig.xml'>
32+
<meta name="msapplication-TileColor" content="#ffffff">
33+
<meta name="msapplication-TileImage" content="{{ icon_url }}/ms-icon-144x144.png">
34+
<meta name="theme-color" content="#ffffff">

_includes/fixlinenos.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!--
2+
Fixed kramdown code highlight rendering:
3+
https://github.com/penibelst/jekyll-compress-html/issues/101
4+
https://github.com/penibelst/jekyll-compress-html/issues/71#issuecomment-188144901
5+
-->
6+
{% if _content contains '<pre class="highlight">' %}
7+
{% assign _content = _content | replace: '<pre class="highlight"><code', '<code' %}
8+
{% assign _content = _content | replace: '</code></pre>', '</code>' %}
9+
{% endif %}

_includes/footer.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!--
2+
The Footer
3+
© 2017-2019 Cotes Chung
4+
MIT License
5+
-->
6+
7+
<footer class="d-flex w-100 justify-content-center">
8+
<div class="d-flex justify-content-between align-items-center">
9+
<div class="copyright">
10+
{% assign first = site.first_run | plus: 0 %}
11+
{% assign last = 'now' | date: "%Y" | plus: 0 %}
12+
<p class="mb-0">
13+
© {% if last > first %}{{ first }}-{% endif %}{{-last-}}
14+
<a href="{{ site.social.links[0] }}" class="ml-1">{{ site.social.name }}</a>.
15+
<br>Powered by <a href="https://jekyllrb.com" target="_blank">Jekyll</a> & <a href="https://github.com/cotes2020/jekyll-theme-chirpy/">Chirpy</a>, hosted on <a href="https://pages.github.com/" target="_blank">GitHub Pages</a>.
16+
</p>
17+
</div>
18+
<div class="license">
19+
<p class="mb-0">
20+
The blog posts on this site are licensed under the <a href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
21+
</p>
22+
</div>
23+
</div> <!-- div.d-flex -->
24+
</footer>

_includes/google-analytics.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!--
2+
The GA snippet
3+
© 2017-2019 Cotes Chung
4+
MIT License
5+
-->
6+
<script>
7+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
8+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
9+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
10+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
11+
12+
ga('create', '{{ site.google_analytics.id }}', 'auto');
13+
ga('send', 'pageview');
14+
</script>

0 commit comments

Comments
 (0)