Skip to content

Commit 020eb04

Browse files
Merge pull request #30 from joshjohanning/chirpy-6.2.3
Updating to Chirpy v6.2.3
2 parents 102f8f4 + 1cdbc91 commit 020eb04

Some content is hidden

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

81 files changed

+1790
-1637
lines changed

.github/workflows/pages-deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
3434
# submodules: true
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Ruby
4343
uses: ruby/setup-ruby@v1
4444
with:
45-
ruby-version: 3 # reads from a '.ruby-version' or '.tools-version' file if 'ruby-version' is omitted
45+
ruby-version: 3
4646
bundler-cache: true
4747

4848
- name: Build site
@@ -52,7 +52,9 @@ jobs:
5252

5353
- name: Test site
5454
run: |
55-
bundle exec htmlproofer _site --disable-external --check-html --allow_hash_href
55+
bundle exec htmlproofer _site \
56+
\-\-disable-external=true \
57+
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5658
5759
- name: Upload site artifact
5860
uses: actions/upload-pages-artifact@v1

Gemfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source "https://rubygems.org"
55
gemspec
66

77
group :test do
8-
gem "html-proofer", "~> 3.18"
8+
gem "html-proofer", "~> 4.4"
99
end
1010

1111
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
@@ -21,8 +21,3 @@ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
2121
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
2222
# do not have a Java counterpart.
2323
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
24-
25-
# Lock jekyll-sass-converter to 2.x on Linux-musl
26-
if RUBY_PLATFORM =~ /linux-musl/
27-
gem "jekyll-sass-converter", "~> 2.0"
28-
end

README.md

Lines changed: 41 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# joshjohanning.github.io
1+
# josh-ops.com
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 GitHub and Azure DevOps practices, tips, scripts, and my continuous improvement DevOps journey.
66

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

@@ -11,61 +11,73 @@ A DevOps Blog - Blogging about Azure DevOps and GitHub practices, tips, and my c
1111
## Theme Source
1212

1313
Chirpy:
14-
* [GitHub](https://github.com/cotes2020/jekyll-theme-chirpy)
15-
* [Example and tips/best practices](https://chirpy.cotes.info/)
16-
* Upgrading - copy in the new source while taking care to keep existing configuration/customizations in place?
14+
15+
* [GitHub repo](https://github.com/cotes2020/jekyll-theme-chirpy)
16+
* [Example and tips/best practices](https://chirpy.cotes.page/)
17+
* [Upgrading](#upgrading-the-theme) (using `git cherry-pick` to pull changes from upstream)
1718

1819
## Comment System
1920

20-
Utterances:
21-
* [GitHub](https://github.com/utterance/utterances)
22-
* [Example/configuration](https://utteranc.es/)
21+
- [Utterances](https://utteranc.es/) (configured [directly in Chirpy](https://github.com/joshjohanning/joshjohanning.github.io/blob/a54c9633e6cab32fd30dc69afc9ffd74857cbd8a/_config.yml#L84-L92)) which uses GitHub issues for post comments
22+
23+
## Deviations from Chirpy
2324

24-
The configuration lives in `/_layouts/post.html`
25+
### Adding Speaking tab
2526

26-
I added a section for dynamically selecting whether to use the light or dark utterances comment theme. I loosely documented this in an [issue in the utterances repository](https://github.com/utterance/utterances/issues/549#issuecomment-917091550).
27+
- Added a [speaking tab](https://josh-ops.com/speaking/) to capture my speaking engagements
28+
- [Used an icon](https://github.com/joshjohanning/joshjohanning.github.io/blob/ab7bb6e3842189adf1dccc909e1e77b86b625d0a/_tabs/speaking.md?plain=1#L3) from [fontawesome](https://fontawesome.com/v4/icons/) for the link in the sidebar
2729

28-
See commit: [c432906](https://github.com/joshjohanning/joshjohanning.github.io/commit/c432906dcb3f5f66c1b9dee9dd2bde41c50f8332)
30+
### Light Mode Sidebar Background Color
2931

30-
## Deviations from Chirpy
32+
- For my implementation of Chirpy v4.3.0 to v6.1.0, I [reverted](https://github.com/joshjohanning/joshjohanning.github.io/pull/8) the light mode sidebar background color to the pre-v4.3.0 color (blue/purple)
33+
- When I updated from [Chirpy v6.1.0 to v6.3.0](https://github.com/joshjohanning/joshjohanning.github.io/pull/30), I decided to use the latest upstream values for the light mode sidebar background color (light gray)
3134

32-
### Reverting to pre-4.3.0 sidebar background color for light mode
35+
#### Changelog
3336

34-
- See: [#8](https://github.com/joshjohanning/joshjohanning.github.io/pull/8)
37+
- See: [#8](https://github.com/joshjohanning/joshjohanning.github.io/pull/8) where I reverted to the pre-v4.3.0 color (blue/purple)
3538
- In [#27](https://github.com/joshjohanning/joshjohanning.github.io/pull/27), I updated the `sidebar-active-color` property to the latest upstream value
39+
- In [#30](https://github.com/joshjohanning/joshjohanning.github.io/pull/30), I reverted to the latest upstream values for light mode, which included a change to the `sidebar-bg` and `sidebar-muted-color` properties to bring in the light gray sidebar background color
3640

37-
### Adding Speaking tab
41+
### Preview Images
3842

39-
Used an icon from [fontawesome](https://fontawesome.com/v4/icons/)
43+
- Chirpy [v5.4.0](https://github.com/cotes2020/jekyll-theme-chirpy/commit/4b6ccbcbccce27b9fcb035812efefe4eb69301cf) introduced a strict `40 / 21` (`1:91:1`) aspect ratio requirement for post's preview images such that they would be cropped if you used a different aspect ratio
44+
- In prior versions, I removed this code so that the post's preview images would still render with their original size
45+
- In June 2023, I updated most of the preview images with the new aspect ratio and [brought back](https://github.com/joshjohanning/joshjohanning.github.io/commit/1920dc7d98cbe11a6882ae0ec067fabccd64426b) preview images to the home page, but I still left out the `40 / 21;` line from the `post.scss` file to account for the images that weren't updated
46+
- In November 2023, I updated to Chirpy v6.2.3 and the preview image logic was moved to `commons.scss`; removed the `40 / 21;` line for the non-updated images
4047

41-
### Reverting 'feat: set preview image ratio to 1.91 : 1'
48+
#### Changelog
4249

43-
- Upstream commit: [4b6ccbc](https://github.com/cotes2020/jekyll-theme-chirpy/commit/4b6ccbcbccce27b9fcb035812efefe4eb69301cf)
50+
- Upstream commit introducing change: [4b6ccbc](https://github.com/cotes2020/jekyll-theme-chirpy/commit/4b6ccbcbccce27b9fcb035812efefe4eb69301cf) (Chirpy [v5.4.0](https://github.com/cotes2020/jekyll-theme-chirpy/releases/tag/v5.4.0))
4451
- 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)
4552
- Really only need to get rid of `aspect-ratio: 40 / 21;` line
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
53+
- June 20, 2023: [Updated](https://github.com/joshjohanning/joshjohanning.github.io/commit/af83c7019c5783f70d5e725991097a7217a6658a) most of the post images to reflect the `1.91:1` aspect ratio since that's the ratio the [home page expects](https://github.com/joshjohanning/joshjohanning.github.io/commit/1920dc7d98cbe11a6882ae0ec067fabccd64426b) for the post preview images
54+
- I still left out the `40 / 21;` line in the `post.scss` file for the images I didn't update to show the original image size on the post page
55+
- November 1, 2023: In Chirpy [v6.2.3](https://github.com/joshjohanning/joshjohanning.github.io/pull/30), the preview image logic was moved to `commons.scss`; removed the `40 / 21;` line for the non-updated images
4756

4857
## Upgrading the Theme
4958

5059
Since we aren't using the theme gem (so we can do customizations), we have to do it the old-fashioned way:
5160

5261
1. Ensure chirpy is set as a remote: `git remote add chirpy https://github.com/cotes2020/jekyll-theme-chirpy.git`
5362
2. Ensure you have the latest upstream commit: `git fetch chirpy`
54-
3. Compare the upstream [releases](https://github.com/cotes2020/jekyll-theme-chirpy/releases) and [commits](https://github.com/cotes2020/jekyll-theme-chirpy/commits/master) to find the first and last commit in the range you want to update.
55-
- Recommendation is to use release tag milestones instead of loose commits that aren't contained in a release yet
56-
- 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)
57-
- You can use this [link](https://github.com/cotes2020/jekyll-theme-chirpy/compare/a887f1d^..602e984) to compare the changes between two commits in GitHub
63+
3. Compare the upstream [releases](https://github.com/cotes2020/jekyll-theme-chirpy/releases) and [commits](https://github.com/cotes2020/jekyll-theme-chirpy/commits/master) to find the first and last release/commit in the range you want to update
64+
- Recommendation is to use release tag milestones instead of loose commits that aren't part of a release yet
65+
- You can use this [link](https://github.com/cotes2020/jekyll-theme-chirpy/compare/a887f1d^..602e984) to compare the changes between two commits in GitHub (same for [releases](https://github.com/cotes2020/jekyll-theme-chirpy/compare/v5.6.0..v5.6.1))
5866
4. Start the `git cherry-pick`:
59-
- To cherry-pick a range of commits (more common): `git cherry-pick "v5.6.0..v5.6.1" -m 1`
60-
- To cherry-pick a single commit (probably not as common): `git cherry-pick a887f1d -m 1`
67+
- To cherry-pick between a range of release tags (more common): `git cherry-pick "v5.6.0..v5.6.1" -m 1`
68+
- To cherry-pick a single commit (not as common): `git cherry-pick a887f1d -m 1`
6169
- 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
6270
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)
63-
6. Starting in 5.6.0, run: `npm run build && git add assets/js/dist -f && git commit -m "update js assets"`
64-
3. Rebase the number of commits you just brought in (you should see icon in VS Code): `git rebase -i HEAD~16`
71+
6. Starting in v5.6.0, run: `npm run build && git add assets/js/dist -f && git commit -m "update js assets"` ([docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki/Upgrade-Guide#upgrade-the-fork))
72+
7. Rebase the number of commits you just brought in (you should see icon in VS Code): `git rebase -i HEAD~16`
6573
- Leave the top commit as `pick` but change the rest to `squash`
6674
- Update the commit message as appropriate
67-
4. Update author and commit time: `git commit --amend --author "Josh Johanning <[email protected]>" --date=now`
68-
5. [Test changes locally before pushing](#building--testing-locally)
75+
8. Pay close attention to the terminal output as to which new files are being created and if they should be deleted (new files show up as `create mode 100644 file.ext`)
76+
- For example, we wouldn't want to commit a GitHub workflow or issue template that wasn't needed here
77+
- If there are new files that we don't want to track, delete the files, commit, and run another rebase `git rebase -i HEAD~2`
78+
- This command can help with tracking new files in the most recent commit: `git diff-tree --compact-summary --diff-filter=A -r $(git rev-parse HEAD)`
79+
9. Update author and commit time: `git commit --amend --author "Josh Johanning <[email protected]>" --date=now`
80+
10. [Test changes locally before pushing](#building--testing-locally)
6981

7082
## Building / Testing Locally
7183

_config.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
# Import the theme
44
theme: jekyll-theme-chirpy
55

6-
# Change the following value to '/PROJECT_NAME' ONLY IF your site type is GitHub Pages Project sites
7-
# and doesn't have a custom domain.
8-
baseurl: ""
9-
106
# The language of the webpage › http://www.lingoes.net/en/translator/langcode.htm
117
# If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed,
128
# otherwise, the layout language will use the default value of 'en'.
139
lang: en
1410

15-
# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone
11+
# Change to your timezone › https://kevinnovak.github.io/Time-Zone-Picker
1612
timezone: America/Chicago
1713

1814
# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
@@ -25,8 +21,9 @@ tagline: A DevOps Blog # it will display as the sub-title
2521
description: >- # used by seo meta and the atom feed
2622
Blogging about Azure DevOps and GitHub practices, tips, and my continuous improvement DevOps journey.
2723
28-
# fill in the protocol & hostname for your site, e.g., 'https://username.github.io'
29-
url: 'https://josh-ops.com'
24+
# Fill in the protocol & hostname for your site.
25+
# e.g. 'https://username.github.io', note that it does not end with a '/'.
26+
url: "https://josh-ops.com"
3027

3128
github:
3229
username: joshjohanning # change to your github username
@@ -53,7 +50,7 @@ google_site_verification: eTIC71VhPBtwll8rNv7qlXud1yJh6E88No39MdcM_MI # change t
5350
# The end of `jekyll-seo-tag` settings
5451

5552
google_analytics:
56-
id: 'G-GE92ZJY22K' # fill in your Google Analytics ID
53+
id: "G-GE92ZJY22K" # fill in your Google Analytics ID
5754

5855
# Prefer color scheme setting.
5956
#
@@ -114,6 +111,9 @@ pwa:
114111

115112
paginate: 10
116113

114+
# The base URL of your site
115+
baseurl: ""
116+
117117
# ------------ The following options are not recommended to be modified ------------------
118118

119119
kramdown:
@@ -177,12 +177,11 @@ compress_html:
177177
exclude:
178178
- "*.gem"
179179
- "*.gemspec"
180+
- docs
180181
- tools
181182
- README.md
182-
- CHANGELOG.md
183183
- LICENSE
184184
- rollup.config.js
185-
- node_modules
186185
- package*.json
187186

188187
jekyll-archives:

_data/contact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
icon: "fab fa-github"
55

66
- type: twitter
7-
icon: "fab fa-twitter"
7+
icon: "fa-brands fa-x-twitter"
88

99
- type: email
1010
icon: "fas fa-envelope"

_data/locales/de-DE.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ post:
5858
pageview_measure: Aufrufe
5959
read_time:
6060
unit: Minuten
61-
prompt: lesen
61+
prompt: Lesezeit
6262
relate_posts: Weiterlesen
6363
share: Teilen
6464
button:
@@ -70,6 +70,13 @@ post:
7070
title: Link kopieren
7171
succeed: Link erfolgreich kopiert!
7272

73+
# Date time format.
74+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
75+
df:
76+
post:
77+
strftime: "%d.%m.%Y"
78+
dayjs: "DD.MM.YYYY"
79+
7380
# categories page
7481
categories:
7582
category_measure:

_data/locales/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ copyright:
4040
Except where otherwise noted, the blog posts on this site are licensed
4141
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
4242
43-
meta: Using the :PLATFORM theme :THEME
43+
meta: Using the :THEME theme for :PLATFORM
4444

4545
not_found:
4646
statment: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.

_data/locales/ru-RU.yml

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# ----- Commons label -----
44

55
layout:
6-
post: Публикация
6+
post: Пост
77
category: Категория
88
tag: Тег
99

1010
# The tabs of sidebar
1111
tabs:
1212
# format: <filename_without_extension>: <value>
13-
home: Домашняя страница
13+
home: Главная
1414
categories: Категории
1515
tags: Теги
1616
archives: Архив
@@ -19,8 +19,8 @@ tabs:
1919
# the text displayed in the search bar & search results
2020
search:
2121
hint: поиск
22-
cancel: Отменить
23-
no_results: Ох! Ничего не найдено.
22+
cancel: Отмена
23+
no_results: Упс! Ничего не найдено.
2424

2525
panel:
2626
lastmod: Недавно обновлено
@@ -30,48 +30,58 @@ panel:
3030
copyright:
3131
# Shown at the bottom of the post
3232
license:
33-
template: Публикация защищена лицензией :LICENSE_NAME.
33+
template: Авторский пост защищен лицензией :LICENSE_NAME.
3434
name: CC BY 4.0
3535
link: https://creativecommons.org/licenses/by/4.0/
3636

3737
# Displayed in the footer
3838
brief: Некоторые права защищены.
3939
verbose: >-
40-
Публикации на сайте защищены лицензией Creative Commons Attribution 4.0 International (CC BY 4.0),
41-
если в тексте публикации не указано иное.
40+
Если не указано иное, авторские посты на этом сайте защищены лицензией Creative Commons Attribution 4.0 International (CC BY 4.0).
4241
43-
meta: Powered by :PLATFORM with :THEME theme
42+
meta: Использует тему :THEME для :PLATFORM
4443

4544
not_found:
46-
statment: Извините, эта ссылка указывает на ресурс который не существует.
45+
statment: Извините, мы перепутали URL-адрес или он указывает на что-то несуществующее.
4746

4847
notification:
4948
update_found: Доступна новая версия контента.
50-
update: Обновлять
49+
update: Обновить
5150

5251
# ----- Posts related labels -----
5352

5453
post:
5554
written_by: Автор
56-
posted: Время публикации
55+
posted: Опубликовано
5756
updated: Обновлено
5857
words: слов
5958
pageview_measure: просмотров
6059
read_time:
61-
unit: минут
60+
unit: мин.
6261
prompt: чтения
63-
relate_posts: Вам также может быть интересно
62+
relate_posts: Похожие посты
6463
share: Поделиться
6564
button:
66-
next: Предыдущая публикация
67-
previous: Следующая публикация
65+
next: Следующий пост
66+
previous: Предыдущий пост
6867
copy_code:
69-
succeed: Скопировано успешно!
68+
succeed: Скопировано!
7069
share_link:
7170
title: Скопировать ссылку
7271
succeed: Ссылка успешно скопирована!
7372

73+
# Date time format.
74+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
75+
df:
76+
post:
77+
strftime: "%d.%m.%Y"
78+
dayjs: "DD.MM.YYYY"
79+
7480
# categories page
7581
categories:
76-
category_measure: категории
77-
post_measure: публикации
82+
category_measure:
83+
singular: категория
84+
plural: категории
85+
post_measure:
86+
singular: пост
87+
plural: посты

_data/locales/tr-TR.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ search:
2323
no_results: Hop! Öyle bir şey bulamadım.
2424

2525
panel:
26-
lastmod: Yeni Güncellendi
26+
lastmod: Son Güncellenenler
2727
trending_tags: Yükselen Etiketler
2828
toc: İçindekiler
2929

@@ -38,7 +38,7 @@ copyright:
3838
brief: Bazı hakları saklıdır.
3939
verbose: >-
4040
Aksi belirtilmediği sürece, bu sitedeki gönderiler Creative Commons Atıf 4.0 Uluslararası (CC BY 4.0) Lisansı altındadır.
41-
Kısaca sayfa linkini de vererek paylaşabilir veya düzenleyip paylaşabilirsin.
41+
Kısaca sayfa linkini vererek değiştirebilir / paylaşabilirsiniz.
4242
4343
meta: :PLATFORM ve :THEME teması
4444

@@ -53,8 +53,8 @@ notification:
5353

5454
post:
5555
written_by: Yazan
56-
posted: Gönderilme Tarihi
57-
updated: Güncellenme Tarihi
56+
posted: Gönderim
57+
updated: Güncelleme
5858
words: sözcük
5959
pageview_measure: görüntülenme
6060
read_time:

0 commit comments

Comments
 (0)