diff --git a/.gitignore b/.gitignore index d6bf509..7dd7cef 100644 --- a/.gitignore +++ b/.gitignore @@ -17,10 +17,11 @@ package-lock.json # IDE configurations .idea -.vscode +.vscode/* !.vscode/settings.json !.vscode/extensions.json +!.vscode/tasks.json # Misc -_sass/dist +_sass/vendors assets/js/dist diff --git a/Gemfile b/Gemfile index 7835d7d..50bc883 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "jekyll-theme-chirpy", "~> 7.2", ">= 7.2.4" +gem "jekyll-theme-chirpy", "~> 7.3", ">= 7.3.1" gem "html-proofer", "~> 5.0", group: :test diff --git a/_layouts/post.html b/_layouts/post.html index f04c5ff..5d732a9 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -10,63 +10,68 @@ script_includes: - comment --- -{% include lang.html %} {% include toc-status.html %} +{% include lang.html %} + +{% include toc-status.html %}

{{ page.title }}

{% if page.description %} -

{{ page.description }}

+

{{ page.description }}

{% endif %}
{% if enable_toc %} - - - - - -
-
{{- page.title -}}
-
-
-
+ + + + +
+
{{- page.title -}}
+ +
+
+
{% endif %} -
{{ content }}
+
+ {{ content }} +
{% if page.categories.size > 0 %} - + {% endif %} {% if page.tags.size > 0 %} - + {% endif %}
- {% if site.data.locales[lang].copyright.license.template %} {% capture - _replacement %} + {% if site.data.locales[lang].copyright.license.template %} + {% capture _replacement %} {{ site.data.locales[lang].copyright.license.name }} - {% endcapture %} {{ site.data.locales[lang].copyright.license.template | - replace: ':LICENSE_NAME', _replacement }} {% endif %} + {% endcapture %} + + {{ site.data.locales[lang].copyright.license.template | replace: ':LICENSE_NAME', _replacement }} + {% endif %}
{% include post-sharing.html lang=lang %} diff --git a/assets/css/jekyll-theme-chirpy.scss b/assets/css/jekyll-theme-chirpy.scss index d4cf498..9406df8 100644 --- a/assets/css/jekyll-theme-chirpy.scss +++ b/assets/css/jekyll-theme-chirpy.scss @@ -1,7 +1,7 @@ --- --- -@import 'main +@use 'main {%- if jekyll.environment == 'production' -%} .bundle {%- endif -%}