Skip to content

Commit

Permalink
Update critical file(s) according to Chirpy v5.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lamngockhuong committed May 6, 2023
1 parent 2cc9627 commit d3a714f
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 70 deletions.
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true

[*.js]
indent_size = 4
[*.{js,css,scss}]
quote_type = single

[*.{yml,yaml}]
quote_type = double

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Setup Pages
id: pages
uses: actions/configure-pages@v1
uses: actions/configure-pages@v3

- name: Setup Ruby
uses: ruby/setup-ruby@v1
Expand Down
29 changes: 15 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# hidden files
.*
!.git*
!.editorconfig
!.nojekyll
!.husky
!.commitlintrc.json
!.versionrc.json
!.stylelintrc.json

# bundler cache
_site
# Bundler cache
.bundle
vendor
Gemfile.lock

# rubygem
# Jekyll cache
.jekyll-cache
_site

# RubyGems
*.gem

# npm dependencies
# NPM dependencies
node_modules
package-lock.json

# IDE configurations
.idea
.vscode

# Misc
assets/js/dist
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gem "jekyll-theme-chirpy", "~> 5.5", ">= 5.5.2"
gem "jekyll-theme-chirpy", "~> 5.6", ">= 5.6.1"

group :test do
gem "html-proofer", "~> 3.18"
Expand Down
47 changes: 23 additions & 24 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ theme: jekyll-theme-chirpy

# Change the following value to '/PROJECT_NAME' ONLY IF your site type is GitHub Pages Project sites
# and doesn't have a custom domain.
baseurl: ''
baseurl: ""

# The language of the webpage › http://www.lingoes.net/en/translator/langcode.htm
# If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed,
# otherwise, the layout language will use the default value of 'en'.
lang: en


# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
timezone: Asia/Ho_Chi_Minh

Expand All @@ -27,7 +26,7 @@ description: >- # used by seo meta and the atom feed
Khuong Dev, This is just a dev notebook, nothing more, nothing less
# fill in the protocol & hostname for your site, e.g., 'https://username.github.io'
url: 'https://dev.ngockhuong.com'
url: "https://dev.ngockhuong.com"

github:
username: lamngockhuong
Expand Down Expand Up @@ -81,47 +80,47 @@ img_cdn: 'https://raw.githubusercontent.com/lamngockhuong/dev-images/main'
# the avatar on sidebar, support local or CORS resources
avatar: '/commons/avatar.jpg'

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

comments:
active: giscus # The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable
active: giscus # The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable
# The active options are as follows:
disqus:
shortname: # fill with the Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
shortname: # fill with the Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
# utterances settings › https://utteranc.es/
utterances:
repo: # <gh-username>/<repo>
issue_term: # < url | pathname | title | ...>
repo: # <gh-username>/<repo>
issue_term: # < url | pathname | title | ...>
# Giscus options › https://giscus.app
giscus:
repo: lamngockhuong/dev # <gh-username>/<repo>
repo: lamngockhuong/dev # <gh-username>/<repo>
repo_id: R_kgDOG1emnQ
category: General
category_id: DIC_kwDOG1emnc4CBMag
mapping: # optional, default to 'pathname'
input_position: # optional, default to 'bottom'
lang: # optional, default to the value of `site.lang`
mapping: # optional, default to 'pathname'
input_position: # optional, default to 'bottom'
lang: # optional, default to the value of `site.lang`
reactions_enabled: # optional, default to the value of `1`

# Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets
assets:
self_host:
enabled: # boolean, keep empty means false
enabled: # boolean, keep empty means false
# specify the Jekyll environment, empty means both
# only works if `assets.self_host.enabled` is 'true'
env: # [development|production]
env: # [development|production]

pwa:
enabled: true # the option for PWA feature
enabled: true # the option for PWA feature

paginate: 10

# ------------ The following options are not recommended to be modified ------------------

kramdown:
syntax_highlighter: rouge
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
syntax_highlighter_opts: # Rouge Options › https://github.com/jneen/rouge#full-options
css_class: highlight
# default_lang: console
span:
Expand All @@ -137,12 +136,12 @@ collections:

defaults:
- scope:
path: '' # An empty string here means all files in the project
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.
comments: true # Enable comments in posts.
toc: true # Display TOC column in posts.
# DO NOT modify the following parameter unless you are confident enough
# to update the code of all other post links in this project.
permalink: /posts/:title/
Expand All @@ -151,8 +150,8 @@ defaults:
values:
comments: false
- scope:
path: ''
type: tabs # see `site.collections`
path: ""
type: tabs # see `site.collections`
values:
layout: page
permalink: /:title/
Expand All @@ -177,13 +176,13 @@ compress_html:
envs: [development]

exclude:
- '*.gem'
- '*.gemspec'
- "*.gem"
- "*.gemspec"
- tools
- README.md
- CHANGELOG.md
- LICENSE
- gulpfile.js
- rollup.config.js
- node_modules
- package*.json

Expand Down
38 changes: 18 additions & 20 deletions _data/contact.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
# The contact options.

-
type: github
icon: 'fab fa-github'
-
type: twitter
icon: 'fab fa-twitter'
-
type: email
icon: 'fas fa-envelope'
noblank: true # open link in current tab
-
type: rss
icon: 'fas fa-rss'
noblank: true
- type: github
icon: "fab fa-github"

- type: twitter
icon: "fab fa-twitter"

- type: email
icon: "fas fa-envelope"
noblank: true # open link in current tab

- type: rss
icon: "fas fa-rss"
noblank: true
# Uncomment and complete the url below to enable more contact options
# -
# type: mastodon
#
# - type: mastodon
# icon: 'fab fa-mastodon' # icons powered by <https://fontawesome.com/>
# url: '' # Fill with your Mastodon account page, rel="me" will be applied for verification
# -
# type: linkedin
#
# - type: linkedin
# icon: 'fab fa-linkedin' # icons powered by <https://fontawesome.com/>
# url: '' # Fill with your Linkedin homepage
# -
# type: stack-overflow
#
# - type: stack-overflow
# icon: 'fab fa-stack-overflow'
# url: '' # Fill with your stackoverflow homepage
15 changes: 7 additions & 8 deletions _data/share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
# Icons from <https://fontawesome.com/>

platforms:
-
type: Twitter
- type: Twitter
icon: "fab fa-twitter"
link: "https://twitter.com/intent/tweet?text=TITLE&url=URL"
-
type: Facebook

- type: Facebook
icon: "fab fa-facebook-square"
link: "https://www.facebook.com/sharer/sharer.php?title=TITLE&u=URL"
-
type: Telegram

- type: Telegram
icon: "fab fa-telegram"
link: "https://t.me/share/url?url=URL&text=TITLE"
-
type: Linkedin

- type: Linkedin
icon: "fab fa-linkedin"
link: "https://www.linkedin.com/sharing/share-offsite/?url=URL"

0 comments on commit d3a714f

Please sign in to comment.