When installing the Chirpy theme through RubyGems.org, Jekyll can only read files in the folders /_data
, /_layouts
, /_includes
, /_sass
and /assets
, as well as a small part of options of the /_config.yml
file from the theme's gem. If you have ever installed this theme gem, you can use the command bundle info --path jekyll-theme-chirpy
to locate these files.
The Jekyll team claims that this is to leave the ball in the userβs court, but this also results in users not being able to enjoy the out-of-the-box experience when using feature-rich themes.
To fully use all the features of Chirpy, you need to copy the other critical files from the theme's gem to your Jekyll site. The following is a list of targets:
.
βββ _config.yml
βββ _plugins
βββ _tabs
βββ index.html
To save you time, and also in case you lose some files while copying, we extract those files/configurations of the latest version of the Chirpy theme and the CD workflow to here, so that you can start writing in minutes.
Follow the instructions in the Jekyll Docs to complete the installation of Ruby
, RubyGems
, Jekyll
and Bundler
.
Use this template to generate a brand new repository and name it <GH_USERNAME>.github.io
, where GH_USERNAME
represents your GitHub username.
Then clone it to your local machine and run:
$ bundle
Please see the theme's docs.
This work is published under MIT License.
-
_config.yml
-google_site_verification
,google_analytics
,giscus
μ 보 μΆκ°νκΈ° -
a
tag areaκ°img
λ₯Ό λ²μ΄λλ λ¬Έμ - imageμμ
.left
/.right
/.normal
λ±μ΄ λ¨Ήμ§ μλ λ¬Έμ
starterλ‘ μ€μΉν κ²½μ°, λ€μκ³Ό κ°μ΄ νλ©΄ λλ€.
If you are using the theme gem (there will be gem "jekyll-theme-chirpy" in the Gemfile), editing the Gemfile and update the version number of the theme gem, for example:
- gem "jekyll-theme-chirpy", "~> 3.2"
+ gem "jekyll-theme-chirpy", "~> 4.0"
And then execute the following command:
bundle update jekyll-theme-chirpy
As the version upgrades, the critical files (for details, see the startup template) and configuration options will change. We can use the GitHub API to get the file changes in the version upgrade.
The URL format is as follows:
https://github.com/cotes2020/chirpy-starter/compare/<older_version>...<newer_version>
For instance, to upgrade from v4.0.0 to v5.0.0, visit: https://github.com/cotes2020/chirpy-starter/compare/v4.0.0...v5.0.0
ref:
λ€μκ³Ό κ°μ μλ¬κ° λ°μν λλ
... `materialize': Could not find sass-embedded-1.58.3 in any of the sources (Bundler::GemNotFound)
λ€μμ λͺ
λ Ήμ΄λ‘ gem
μ μ 리νλ€.
bundler
λ€μμ λͺ λ Ήμ΄λ‘ μ€ννλ€.
bundle exec jekyll s
(23.10.27 μΆκ°) μμ¦μ λ€μκ³Ό κ°μ΄ μ€νν΄λ λλ€...!
jekyll s
rbenv versions
rbenv local
rbenv local 3.1.0
-
_etc
λ΄λΆμ sass νμΌλ€μ κΈ°μ‘΄μ λ°°ν¬λ chirpy themeμ νμΌμ΄λ€. ν΄λΉ νμΌλ€μ μ°Έκ³ νλ©΄ λλ€. -
μ€μ custom νμΌμ
_sass/custom
ν΄λ λ°μ μμ±νλ€.- μλ‘ νμΌμ μμ±ν κ²½μ°,
assets/css/style.scss
μ@import
ν΄μ£Όλ©΄ λλ€. - μμΈλ‘, ν¬μ€ν
λ΄ μ½λ λΈλμ μμ νλ νΈ μ€μ μ
_sass/colors
μ μμΉμμΌ λ³λ€λ₯Έ@import
μμ μμ΄ & overriding λμ μμ΄ μ μ©λλλ‘ νλ€.
- μλ‘ νμΌμ μμ±ν κ²½μ°,
-
@mixin
μ override νκΈ° μν΄ μ½μ§μ μ€λνλλ°,_sass/custom/addon/commons.scss
,_sass/custom/addon/syntax.scss
νμΌμ μ°Έκ³ νμ¬ μ¬μ©νλ©΄ override λμλ μνν μ μλ€.
version
6.2.0
λΆν°λ sass variablesλ₯Ό overwrite νλ λ°©λ²μ΄ λ°λ λ―νλ€. μΆν νμνλ©΄ μ°Έκ³ νμ!https://chirpy.cotes.page/posts/getting-started/#customizing-stylesheet
-
_layouts/categories.html
νμΌμ μμ±νμ¬ https://seungriyou.github.io/categories/ νμμμ μ΅μμ μΉ΄ν κ³ λ¦¬ μ λ ¬ μμλ₯Ό 컀μ€ν°λ§μ΄μ§ νλ€.μλ³Έ μ½λμμλ λ€μκ³Ό κ°μ΄ μΉ΄ν κ³ λ¦¬ μ΄λ¦μ μ¬μ μ μμλ‘ μ λ ¬νμλ€.
{% assign sort_categories = site.categories | sort %}
-
ν΄λΉ html νμΌμ μλ³Έ νμΌμ jekyll-theme-chirpyμ μλ³Έ
categories.html
νμΌμμ νμΈν μ μλ€. -
post μμ± μ μλ‘μ΄ μΉ΄ν κ³ λ¦¬λ₯Ό λ§λ€ κ²μ΄λΌλ©΄,
_layouts/categories.html
νμΌμ λ€μκ³Ό κ°μ΄custom_order
λ΄μμ μ μ ν μμΉμ,
μ ν¨κ» μΆκ°ν΄μ£Όλ©΄ λλ€. μμλ₯Ό μμ νκ³ μΆμ λλ λ§μ°¬κ°μ§λ‘custom_order
λ₯Ό μμ νλ€.<!-- [START] add custom order of categories in `CATEGORIES` tab --> <!-- ref: https://twpower.github.io/228-make-array-and-add-element-in-jekyll-liquid-en --> {% assign custom_order = 'Python, Dev-Log, MLOps, Problem Solving, Computer Science, Deep Learning, Experience, Daily-Log' | split: ', ' %} {% assign sort_categories = '' | split: ',' %} {% for co in custom_order %} {% for category in site.categories %} {% if category[0] == co %} {% assign sort_categories = sort_categories | push: category %} {% endif %} {% endfor %} {% endfor %} <!-- [END] add custom order of categories in `CATEGORIES` tab -->
-
Jekyll liquid λ¬Έλ²μμ arrayλ₯Ό μμ±νλ λ°©λ²μ Make array and add element in liquidλ₯Ό μ°Έκ³ νλ€.
![example-image](/assets/img/posts/category/subcategory/image.png){: style="max-width: 70%"}
νΉμ, λ€μμ μμΉλ€μ λν΄μλ bootstrap μ€μ μ μ¬μ©ν μλ μλ€.
![example-image](/assets/img/posts/category/subcategory/image.png){: .w-25} (width 25%)
![example-image](/assets/img/posts/category/subcategory/image.png){: .w-50} (width 50%)
![example-image](/assets/img/posts/category/subcategory/image.png){: .w-75} (width 75%)
![example-image](/assets/img/posts/category/subcategory/image.png){: .w-100} (width 100%)
![example-image](/assets/img/posts/category/subcategory/image.png){: .w-auto} (default)
HTML color nameμ λ§ν¬μμ νμΈνκΈ°!
<span style="color: red">this is **red**</span>
ref: https://github.com/orgs/community/discussions/16993#discussioncomment-4056560
curly bracketμ νννκΈ° μν΄ \{
, \}
λ₯Ό μ¬μ©νλ©΄ μΆλ ₯μ΄ μ λλ€. λμ , \lbrace
μ \rbrace
λ₯Ό μ¬μ©ν΄μΌ νλ€.
-
{}
μΆλ ₯ μ λλ μμ$\mathbf s^0=\{s^0(j)\in [n]\}_{j \in [m]}$
-
{}
μΆλ ₯ λλ μμ$\mathbf s^0=\lbrace s^0(j)\in [n]\rbrace_{j \in [m]}$
degree symbolμ λνλ΄λ €λ©΄ \degree
κ° μλ ^{\circ}
μ μ¬μ©ν΄μΌ νλ€.
-
Β°
μΆλ ₯ μ λλ μμ$70\degree$
-
Β°
μΆλ ₯ λλ μμ$70^{\circ}$
<details>
<summary>μ λͺ©</summary>
<div markdown="1">
λ΄μ©
</div>
</details>