Skip to content

Commit

Permalink
Import the framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Nov 17, 2019
1 parent 06e93dc commit 5186d04
Show file tree
Hide file tree
Showing 104 changed files with 4,640 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# The 404 page
# © 2017-2019 Cotes Chung
# MIT License
layout: page
title: "404: Page not found"

permalink: /404.html

redirect_from: # Same as site.blocklist
- /norobots/
- /assets/
- /tabs/
- /categories/
- /tags/
- /posts/

dynamic_title: true
---

<div class="lead">
<p>Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. </p>
<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>
</div>
13 changes: 13 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
source 'https://rubygems.org'

gem 'jekyll', '>=3.8.6'

# Official Plugins
group :jekyll_plugins do
gem 'jekyll-paginate'
gem 'jekyll-redirect-from'
gem 'jekyll-seo-tag'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2019 Cotes Chung

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
166 changes: 166 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
# The Site Settings
# © 2017-2019 Cotes Chung
# MIT licensed


# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
#--------------------------

title: Chirpy

description: 'A text-based Jekyll theme.'

# Replace with your domain, e.g. "https://username.github.io"
url: 'https://www.example.com'

author: Chirpy # change to your full name

logo: /assets/img/sample/profile.jpg # Support network resources.

github:
username: github_username # change to your github username

twitter:
username: twitter_username # change to your twitter username

social:
name: Chirpy # change to your full name
email: example@doamin.com # change to your email address
links:
- https://twitter.com/username # change to your twitter homepage
- https://github.com/username # change to your github homepage
# - https://www.facebook.com/username
# - https://www.linkedin.com/in/username

google_site_verification: google_meta_tag_verification # change to your verification string

#--------------------------

# Change to your Google Analytics ID
google_analytics:
id: 'UA-*********-*'
# Switch for Google Analytics pageviews. DO NOT enable it unless you know how to deploy the Google Analytics superProxy.
pv: false

disqus:
shortname: 'disqus' # Change to your Disqus shortname.
comments: true # boolean type, the gobal switch of posts' comments.

# The year your website was first run.
first_run: 2019

# boolean type, gobal switch for ToC in posts.
toc: true


# if your site type is Project Pages site, change below value to '/projectname'
baseurl: ''

paginate: 10

markdown: kramdown

highlighter: rouge

kramdown:
input: GFM
syntax_highlighter: rouge
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
css_class: 'highlight'
# default_lang: console
span:
line_numbers: false
block:
line_numbers: true
start_line: 1

permalink: /posts/:title/

defaults:
-
scope:
path: "" # An empty string here means all files in the project
type: posts
values:
layout: post
comments: true # Enable comments in posts.
toc: true # Display TOC column in posts.
location: Post
breadcrumb:
-
label: Posts
url: /
-
scope:
path: _drafts
values:
comments: false
-
scope:
path: tags
values:
location: Tag
breadcrumb:
-
label: Home
url: /
-
label: Tags
url: /tabs/tags/
-
scope:
path: categories
values:
location: Category
breadcrumb:
-
label: Home
url: /
-
label: Categories
url: /tabs/categories/
-
scope:
path: tabs
values:
layout: page
dynamic_title: true # hide title in mobile screens.
breadcrumb:
-
label: Home
url: /

timezone: Asia/Shanghai

sass:
sass_dir: /assets/css
style: compressed

compress_html:
clippings: all
comments: ["<!-- ", " -->"]
endings: [html, head, body, dt, dd, rt, rp, optgroup, option, colgroup, caption, thead, tbody, tfoot, tr, td, th]
profile: false
blanklines: false
ignore:
envs: []

exclude:
- vendor/ # Avoid Jekyll mistakenly read the vender directory in Travis-CI's VM .
- Gemfile.lock
- Gemfile
- run.sh
- build.sh
- init.sh
- pv.sh

sitemap_exclude: # Sitemap will exclude the following items.
- /norobots/
- /assets/
- /tabs/
- /categories/
- /tags/
- /posts/
- /404.html
- /redirects.json
- /search.json
17 changes: 17 additions & 0 deletions _data/label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# The label text of site.
# © 2017-2019 Cotes Chung
# MIT Licensed

tabs:
- { name: "Home" }
- { name: "Categories", path: tabs, url: categories }
- { name: "Tags", path: tabs, url: tags }
- { name: "Archives", path: tabs, url: archives }
- { name: "About", path: tabs, url: about }

panel:
lastmod: "Recent Update"
trending_tags: "Trending Tags"
toc: "Contents"

search_hint: "Search" # text show on search bar
8 changes: 8 additions & 0 deletions _includes/date-format.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!--
Define the liquid date formats.
© 2019 Cotes Chung
Published under the MIT License
-->

{% assign TOOLTIP_DATE = "%a, %b %e, %Y, %l:%M %p %z" %}
{% assign POST_DATE = "%b %e, %Y" %}
24 changes: 24 additions & 0 deletions _includes/disqus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
The Disqus lazy loading.
Powered by: https://osvaldas.info/lazy-loading-disqus-comments
© 2019 Cotes Chung
MIT License
-->

<div id="disqus" class="pt-2 pb-4">
<p class="font-italic text-muted small">Comments powered by <a href="https://disqus.com/">Disqus</a>.</p>
</div>

<script src="{{ site.baseurl }}/assets/lib/jquery.disqusloader.min.js"></script>
<script>
var options = {
scriptUrl: '//{{ site.disqus.shortname }}.disqus.com/embed.js',

disqusConfig: function() {
this.page.url = '{{ site.url | append: site.baseurl | append: page.url }}';
this.page.identifier = '{{ page.url }}';
}
};

$.disqusLoader('#disqus', options);
</script>
34 changes: 34 additions & 0 deletions _includes/favicons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
The Favicons for Web, Android, Microsoft, and iOS (iPhone and iPad) Apps
Generated by: https://www.favicon-generator.org/
© 2019 Cotes Chung
Published under the MIT license
-->

{% capture icon_url %}{{ site.baseurl }}/assets/img/favicons{% endcapture %}

<link rel="shortcut icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">
<link rel="icon" href="{{ icon_url }}/favicon.ico" type="image/x-icon">

<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon.png">
<link rel="apple-touch-icon" href="{{ icon_url }}/apple-icon-precomposed.png">
<link rel="apple-touch-icon" sizes="57x57" href="{{ icon_url }}/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="{{ icon_url }}/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="{{ icon_url }}/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="{{ icon_url }}/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="{{ icon_url }}/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="{{ icon_url }}/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="{{ icon_url }}/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="{{ icon_url }}/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="{{ icon_url }}/apple-icon-180x180.png">

<link rel="icon" type="image/png" sizes="192x192" href="{{ icon_url }}/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ icon_url }}/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="{{ icon_url }}/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ icon_url }}/favicon-16x16.png">

<link rel="manifest" href="{{ icon_url }}/manifest.json">
<meta name='msapplication-config' content='{{ icon_url }}/browserconfig.xml'>
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="{{ icon_url }}/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
9 changes: 9 additions & 0 deletions _includes/fixlinenos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!--
Fixed kramdown code highlight rendering:
https://github.com/penibelst/jekyll-compress-html/issues/101
https://github.com/penibelst/jekyll-compress-html/issues/71#issuecomment-188144901
-->
{% if _content contains '<pre class="highlight">' %}
{% assign _content = _content | replace: '<pre class="highlight"><code', '<code' %}
{% assign _content = _content | replace: '</code></pre>', '</code>' %}
{% endif %}
24 changes: 24 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
The Footer
© 2017-2019 Cotes Chung
MIT License
-->

<footer class="d-flex w-100 justify-content-center">
<div class="d-flex justify-content-between align-items-center">
<div class="copyright">
{% assign first = site.first_run | plus: 0 %}
{% assign last = 'now' | date: "%Y" | plus: 0 %}
<p class="mb-0">
© {% if last > first %}{{ first }}-{% endif %}{{-last-}}
<a href="{{ site.social.links[0] }}" class="ml-1">{{ site.social.name }}</a>.
<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>.
</p>
</div>
<div class="license">
<p class="mb-0">
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>.
</p>
</div>
</div> <!-- div.d-flex -->
</footer>
14 changes: 14 additions & 0 deletions _includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!--
The GA snippet
© 2017-2019 Cotes Chung
MIT License
-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', '{{ site.google_analytics.id }}', 'auto');
ga('send', 'pageview');
</script>
Loading

0 comments on commit 5186d04

Please sign in to comment.