Skip to content

Commit a54c963

Browse files
Updating to Chirpy 6.1.0
1 parent be92934 commit a54c963

35 files changed

+186
-360
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
steps:
6969
- name: Deploy to GitHub Pages
7070
id: deployment
71-
uses: actions/deploy-pages@v1
71+
uses: actions/deploy-pages@v2

.github/workflows/stale.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Close stale issues and PRs"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *" # every day at 00:00 UTC
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v8
16+
with:
17+
days-before-stale: 30
18+
days-before-close: 1
19+
stale-issue-label: stale
20+
exempt-issue-labels: pending
21+
stale-issue-message: >
22+
This issue has been automatically marked as stale because it has not had recent activity.
23+
It will be closed if no further activity occurs.
24+
Thank you for your contributions.
25+
stale-pr-label: stale
26+
exempt-pr-labels: pending
27+
stale-pr-message: >
28+
This PR has been automatically marked as stale because it has not had recent activity.
29+
It will be closed if no further activity occurs.
30+
Thank you for your contributions.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
A DevOps Blog - Blogging about Azure DevOps and GitHub practices, tips, and my continuous improvement DevOps journey.
5+
A DevOps Blog - Blogging about Azure DevOps and GitHub practices, tips, and my continuous improvement DevOps journey.
66

77
[**josh-ops.com →**](https://josh-ops.com)
88

@@ -31,18 +31,19 @@ See commit: [c432906](https://github.com/joshjohanning/joshjohanning.github.io/c
3131

3232
### Reverting to pre-4.3.0 sidebar background color for light mode
3333

34-
See: [#8](https://github.com/joshjohanning/joshjohanning.github.io/pull/8)
34+
- See: [#8](https://github.com/joshjohanning/joshjohanning.github.io/pull/8)
35+
- In [#27](https://github.com/joshjohanning/joshjohanning.github.io/pull/27), I updated the `sidebar-active-color` property to the latest upstream value
3536

3637
### Adding Speaking tab
3738

3839
Used an icon from [fontawesome](https://fontawesome.com/v4/icons/)
3940

40-
### Reverting 'preview image ratio to 1.91 : 1'
41+
### Reverting 'feat: set preview image ratio to 1.91 : 1'
4142

4243
- Upstream commit: [4b6ccbc](https://github.com/cotes2020/jekyll-theme-chirpy/commit/4b6ccbcbccce27b9fcb035812efefe4eb69301cf)
4344
- My changes so that preview image still shimmers before loading, but no image cropping: [b282712^..bb1dc1f](https://github.com/joshjohanning/joshjohanning.github.io/compare/b282712087028da95e292e3159d20cdf63d59feb^..bb1dc1f1bdbba4ee7d62858d834e0ca19f7745db)
4445
- Really only need to get rid of `aspect-ratio: 40 / 21;` line
45-
- June 2023: Updated most of the post images to reflect the 1.91:1 aspect ratio since that's what the ratio the home page uses for the post preview images, but I still left out the `40 / 21;` line in the `post.scss` file for the images I didn't update
46+
- June 2023: Updated most of the post images in commit [af83c70](https://github.com/joshjohanning/joshjohanning.github.io/commit/af83c7019c5783f70d5e725991097a7217a6658a) to reflect the 1.91:1 aspect ratio since that's what the ratio the home page uses for the post preview images, but I still left out the `40 / 21;` line in the `post.scss` file for the images I didn't update
4647

4748
## Upgrading the Theme
4849

@@ -55,17 +56,16 @@ Since we aren't using the theme gem (so we can do customizations), we have to do
5556
- For example, updating from 4.3.0 to 4.3.4 was referencing [a887f1d](https://github.com/cotes2020/jekyll-theme-chirpy/commit/a887f1d57d9ac8e08c789c6201147bf68c459573) (one right after [945e8d1](https://github.com/cotes2020/jekyll-theme-chirpy/commit/945e8d195393f73f38c4782cb31b808f09acc6f5)) and [602e984](https://github.com/cotes2020/jekyll-theme-chirpy/commit/602e98448d419e9c5710cb0c8a002a6538562150) (the merge commit for 4.3.4)
5657
- You can use this [link](https://github.com/cotes2020/jekyll-theme-chirpy/compare/a887f1d^..602e984) to compare the changes between two commits in GitHub
5758
4. Start the `git cherry-pick`:
58-
- To cherry-pick a range of commits (more common): `git cherry-pick "v5.6.0^..v5.6.1" -m 1`
59-
- The `^` is important otherwise you will not be including the first commit - but the commit might get picked up in the maintainer's merge commit for the release anyways - and the quotes are necessary around the commits in `zsh` b/c of the `^`
59+
- To cherry-pick a range of commits (more common): `git cherry-pick "v5.6.0..v5.6.1" -m 1`
6060
- To cherry-pick a single commit (probably not as common): `git cherry-pick a887f1d -m 1`
61-
- If getting GPG errors, modify the git config: `git config commit.gpgsign false`
61+
- If getting GPG errors, modify the local git config: `git config commit.gpgsign false`, but modify it back to `true` after you are done cherry-picking
6262
5. Review merge conflicts - use a combination of `git cherry-pick --skip` (for when readme/starter posts are updated) and `cherry-pick --continue` (to continue after you resolve real merge conflicts)
6363
6. Starting in 5.6.0, run: `npm run build && git add assets/js/dist -f && git commit -m "update js assets"`
64-
7. Rebase the number of commits you just brought in (you should see icon in VS Code): `git rebase -i HEAD~16`
64+
3. Rebase the number of commits you just brought in (you should see icon in VS Code): `git rebase -i HEAD~16`
6565
- Leave the top commit as `pick` but change the rest to `squash`
6666
- Update the commit message as appropriate
67-
8. Update author and commit time: `git commit --amend --author "Josh Johanning <joshjohanning@github.com>" --date=now`
68-
9. [Test changes locally before pushing](#building--testing-locally)
67+
4. Update author and commit time: `git commit --amend --author "Josh Johanning <joshjohanning@github.com>" --date=now`
68+
5. [Test changes locally before pushing](#building--testing-locally)
6969

7070
## Building / Testing Locally
7171

_config.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ google_site_verification: eTIC71VhPBtwll8rNv7qlXud1yJh6E88No39MdcM_MI # change t
5454

5555
google_analytics:
5656
id: 'G-GE92ZJY22K' # fill in your Google Analytics ID
57-
# Google Analytics pageviews report settings
58-
pv:
59-
proxy_endpoint: # fill in the Google Analytics superProxy endpoint of Google App Engine
60-
cache_path: # the local PV cache data, friendly to visitors from GFW region
6157

6258
# Prefer color scheme setting.
6359
#

_data/locales/th.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# The layout text of site
2+
3+
# ----- Commons label -----
4+
5+
layout:
6+
post: โพสต์
7+
category: หมวดหมู่
8+
tag: แท็ก
9+
10+
# The tabs of sidebar
11+
tabs:
12+
# format: <filename_without_extension>: <value>
13+
home: หน้าแรก
14+
categories: หมวดหมู่
15+
tags: แท็ก
16+
archives: คลังเก็บ
17+
about: เกี่ยวกับ
18+
19+
# the text displayed in the search bar & search results
20+
search:
21+
hint: ค้นหา
22+
cancel: ยกเลิก
23+
no_results: โอ๊ะ! ไม่พบผลลัพธ์
24+
25+
panel:
26+
lastmod: อัปเดตล่าสุด
27+
trending_tags: แท็กยอดนิยม
28+
toc: เนื้อหา
29+
30+
copyright:
31+
# Shown at the bottom of the post
32+
license:
33+
template: โพสต์นี้อยู่ภายใต้การอนุญาต :LICENSE_NAME โดยผู้เขียน
34+
name: CC BY 4.0
35+
link: https://creativecommons.org/licenses/by/4.0/
36+
37+
# Displayed in the footer
38+
brief: สงวนลิขสิทธิ์เป็นบางส่วน
39+
verbose: >-
40+
เว้นแต่ว่าจะระบุเป็นอย่างอื่น โพสต์บนเว็บไซต์นี้อยู่ภายใต้
41+
สัญญาอนุญาตครีเอทีฟคอมมอนส์แบบ 4.0 นานาชาติ (CC BY 4.0) โดยผู้เขียน
42+
43+
meta: กำลังใช้ธีมของ :PLATFORM ชื่อ :THEME
44+
45+
not_found:
46+
statment: ขออภัย เราวาง URL นั้นไว้ผิดที่ หรือมันชี้ไปยังสิ่งที่ไม่มีอยู่
47+
48+
notification:
49+
update_found: มีเวอร์ชันใหม่ของเนื้อหา
50+
update: อัปเดต
51+
52+
# ----- Posts related labels -----
53+
54+
post:
55+
written_by: โดย
56+
posted: โพสต์เมื่อ
57+
updated: อัปเดตเมื่อ
58+
words: คำ
59+
pageview_measure: ครั้ง
60+
read_time:
61+
unit: นาที
62+
prompt: อ่าน
63+
relate_posts: อ่านต่อ
64+
share: แชร์
65+
button:
66+
next: ใหม่กว่า
67+
previous: เก่ากว่า
68+
copy_code:
69+
succeed: คัดลอกแล้ว!
70+
share_link:
71+
title: คัดลอกลิงก์
72+
succeed: คัดลอกลิงก์เรียบร้อยแล้ว!
73+
74+
# Date time format.
75+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76+
df:
77+
post:
78+
strftime: "%b %e, %Y"
79+
dayjs: "ll"
80+
archives:
81+
strftime: "%b"
82+
dayjs: "MMM"
83+
84+
# categories page
85+
categories:
86+
category_measure:
87+
singular: หมวดหมู่
88+
plural: หมวดหมู่
89+
post_measure:
90+
singular: โพสต์
91+
plural: โพสต์

_data/origin/basic.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ dayjs:
3131
relativeTime: /assets/lib/dayjs/plugin/relativeTime.min.js
3232
localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.min.js
3333

34-
countup:
35-
js: /assets/lib/countup.js/countUp.min.js
36-
3734
magnific-popup:
3835
css: /assets/lib/magnific-popup/magnific-popup.css
3936
js: /assets/lib/magnific-popup/jquery.magnific-popup.min.js

_data/origin/cors.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cdns:
1111

1212
# fonts
1313

14-
webfonts: https://fonts.googleapis.com/css2?family=Lato&family=Source+Sans+Pro:wght@400;600;900&display=swap
14+
webfonts: https://fonts.googleapis.com/css2?family=Lato&family=Source+Sans+Pro:wght@400;600;700;900&display=swap
1515

1616
# Libraries
1717

@@ -42,9 +42,6 @@ dayjs:
4242
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.7/plugin/relativeTime.min.js
4343
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.7/plugin/localizedFormat.min.js
4444

45-
countup:
46-
js: https://cdn.jsdelivr.net/npm/countup.js@1.9.3/dist/countUp.min.js
47-
4845
magnific-popup:
4946
css: https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/magnific-popup.min.css
5047
js: https://cdn.jsdelivr.net/npm/magnific-popup@1.1.0/dist/jquery.magnific-popup.min.js

_includes/head.html

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@
1111
content="width=device-width, user-scalable=no initial-scale=1, shrink-to-fit=no, viewport-fit=cover"
1212
>
1313

14-
{% if page.layout == 'home' or page.layout == 'post' %}
15-
{% if site.google_analytics.pv.proxy_endpoint %}
16-
<meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
17-
{% endif %}
18-
19-
{% if site.google_analytics.pv.cache_path %}
20-
<meta name="pv-cache-path" content="{{ site.google_analytics.pv.cache_path | relative_url }}">
21-
{% endif %}
22-
{% endif %}
23-
2414
{% capture seo_tags %}
2515
{% seo title=false %}
2616
{% endcapture %}
@@ -55,7 +45,7 @@
5545
{{ site.title }}
5646
</title>
5747

58-
{% include favicons.html %}
48+
{% include_cached favicons.html %}
5949

6050
{% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %}
6151
<link href="{{ site.data.origin[type].webfonts | relative_url }}" rel="stylesheet">
@@ -76,17 +66,6 @@
7666

7767
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin="anonymous">
7868
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
79-
80-
{% if site.google_analytics.pv.proxy_endpoint %}
81-
{% assign proxy_url = site.google_analytics.pv.proxy_endpoint
82-
| replace: 'https://', ''
83-
| split: '/'
84-
| first
85-
| prepend: 'https://'
86-
%}
87-
<link rel="preconnect" href="{{ proxy_url }}" crossorigin="use-credentials">
88-
<link rel="dns-prefetch" href="{{ proxy_url }}">
89-
{% endif %}
9069
{% endif %}
9170

9271
<!-- Bootstrap -->

_includes/js-selector.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111

1212
<!-- layout specified -->
1313

14-
{% if page.layout == 'post' %}
15-
{% if site.google_analytics.pv.proxy_endpoint or site.google_analytics.pv.cache_path %}
16-
<!-- pv-report needs countup.js -->
17-
{% assign urls = urls | append: ',' | append: site.data.origin[type].countup.js %}
18-
{% endif %}
19-
{% endif %}
20-
2114
{% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %}
2215
{% assign urls = urls | append: ',' | append: site.data.origin[type].lazysizes.js %}
2316

_includes/search-results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div id="search-result-wrapper" class="d-flex justify-content-center unloaded">
44
<div class="col-11 post-content">
55
<div id="search-hints">
6-
{% include trending-tags.html %}
6+
{% include_cached trending-tags.html %}
77
</div>
88
<div id="search-results" class="d-flex flex-wrap justify-content-center text-muted mt-3"></div>
99
</div>

_javascript/modules/components/img-lazyload.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,26 @@
22
* Set up image lazy-load
33
*/
44

5+
function stopShimmer($node) {
6+
$node.parent().removeClass('shimmer');
7+
}
8+
59
export function imgLazy() {
6-
if ($('#core-wrapper img[data-src]') <= 0) {
10+
const $images = $('#core-wrapper img[data-src]');
11+
12+
if ($images.length <= 0) {
713
return;
814
}
915

1016
/* Stop shimmer when image loaded */
1117
document.addEventListener('lazyloaded', function (e) {
12-
const $img = $(e.target);
13-
$img.parent().removeClass('shimmer');
18+
stopShimmer($(e.target));
19+
});
20+
21+
/* Stop shimmer from cached images */
22+
$images.each(function () {
23+
if ($(this).hasClass('ls-is-cached')) {
24+
stopShimmer($(this));
25+
}
1426
});
1527
}

0 commit comments

Comments
 (0)