jekyll-theme-chirpy 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/_includes/post-paginator.html +1 -1
 - data/_includes/refactor-content.html +12 -16
 - data/_includes/update-list.html +3 -5
 - data/_layouts/home.html +9 -1
 - data/_layouts/page.html +6 -2
 - data/_sass/addon/commons.scss +0 -14
 - data/_sass/jekyll-theme-chirpy.scss +1 -1
 - data/_sass/layout/home.scss +0 -4
 - data/assets/js/dist/categories.min.js +1 -1
 - data/assets/js/dist/commons.min.js +1 -1
 - data/assets/js/dist/home.min.js +1 -1
 - data/assets/js/dist/misc.min.js +1 -1
 - data/assets/js/dist/page.min.js +1 -1
 - data/assets/js/dist/post.min.js +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ffcef6f0312a152d93a1332d6aaf364635957bad093323f63611ca1c6434e41c
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 54316d0547310e7d33b54ee95f92782d7fa6bb372348e7b4380e9d7f1f372b43
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c7c7aaf3ff24f3ec45649a2ecc18ad89d016eacb95cabdfe50a07322d572ed17a64614706d2f9330fb70d5a340dae71f7d99c7a5a16c6fe18d1452aa4e06cc0c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: bc634c36a37c4bc3b083b691efd04adf3d05880995e95b8b9626322c6e235d46810eb53766d8b8ab7b3cb2cfc87cdbf7b332d862152059615c8c93529f926c3e
         
     | 
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <!-- The paginator for post list on HomgPage. -->
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            <ul class="pagination align-items-center  
     | 
| 
      
 3 
     | 
    
         
            +
            <ul class="pagination align-items-center mt-4 mb-1 ps-lg-2">
         
     | 
| 
       4 
4 
     | 
    
         
             
              <!-- left arrow -->
         
     | 
| 
       5 
5 
     | 
    
         
             
              {% if paginator.previous_page %}
         
     | 
| 
       6 
6 
     | 
    
         
             
                {% assign prev_url = paginator.previous_page_path | relative_url %}
         
     | 
| 
         @@ -1,6 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            <!--
         
     | 
| 
       2 
     | 
    
         
            -
              Refactor the HTML structure.
         
     | 
| 
       3 
     | 
    
         
            -
            -->
         
     | 
| 
      
 1 
     | 
    
         
            +
            <!-- Refactor the HTML structure -->
         
     | 
| 
       4 
2 
     | 
    
         | 
| 
       5 
3 
     | 
    
         
             
            {% assign _content = include.content %}
         
     | 
| 
       6 
4 
     | 
    
         | 
| 
         @@ -44,9 +42,9 @@ 
     | 
|
| 
       44 
42 
     | 
    
         
             
            {% endif %}
         
     | 
| 
       45 
43 
     | 
    
         | 
| 
       46 
44 
     | 
    
         
             
            <!-- images -->
         
     | 
| 
      
 45 
     | 
    
         
            +
            {% assign IMG_TAG = '<img ' %}
         
     | 
| 
       47 
46 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
            {% if _content contains  
     | 
| 
       49 
     | 
    
         
            -
              {% assign IMG_TAG = '<img ' %}
         
     | 
| 
      
 47 
     | 
    
         
            +
            {% if _content contains IMG_TAG %}
         
     | 
| 
       50 
48 
     | 
    
         
             
              {% assign _img_content = nil %}
         
     | 
| 
       51 
49 
     | 
    
         
             
              {% assign _img_snippets = _content | split: IMG_TAG %}
         
     | 
| 
       52 
50 
     | 
    
         | 
| 
         @@ -160,7 +158,15 @@ 
     | 
|
| 
       160 
158 
     | 
    
         
             
                <!-- Bypass the HTML-proofer test -->
         
     | 
| 
       161 
159 
     | 
    
         
             
                {% assign _left = _left | append: ' data-proofer-ignore' %}
         
     | 
| 
       162 
160 
     | 
    
         | 
| 
       163 
     | 
    
         
            -
                {% if page.layout == ' 
     | 
| 
      
 161 
     | 
    
         
            +
                {% if page.layout == 'home' %}
         
     | 
| 
      
 162 
     | 
    
         
            +
                  <!-- create the image wrapper -->
         
     | 
| 
      
 163 
     | 
    
         
            +
                  {%- capture _wrapper_start -%}
         
     | 
| 
      
 164 
     | 
    
         
            +
                    <div class="preview-img {{ _class | strip }}">
         
     | 
| 
      
 165 
     | 
    
         
            +
                  {%- endcapture -%}
         
     | 
| 
      
 166 
     | 
    
         
            +
                  {% assign _img_content = _img_content | append: _wrapper_start %}
         
     | 
| 
      
 167 
     | 
    
         
            +
                  {% assign _right = _right | prepend: '></div' %}
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
                {% else %}
         
     | 
| 
       164 
170 
     | 
    
         
             
                  <!-- make sure the `<img>` is wrapped by `<a>` -->
         
     | 
| 
       165 
171 
     | 
    
         
             
                  {% assign _parent = _right | slice: 1, 4 %}
         
     | 
| 
       166 
172 
     | 
    
         | 
| 
         @@ -179,16 +185,6 @@ 
     | 
|
| 
       179 
185 
     | 
    
         
             
                    {% assign _img_content = _img_content | append: _wrapper_start %}
         
     | 
| 
       180 
186 
     | 
    
         
             
                    {% assign _right = _right | prepend: '></a' %}
         
     | 
| 
       181 
187 
     | 
    
         
             
                  {% endif %}
         
     | 
| 
       182 
     | 
    
         
            -
             
     | 
| 
       183 
     | 
    
         
            -
                {% endif %}
         
     | 
| 
       184 
     | 
    
         
            -
             
     | 
| 
       185 
     | 
    
         
            -
                {% if page.layout == 'home' %}
         
     | 
| 
       186 
     | 
    
         
            -
                  <!-- create the image wrapper -->
         
     | 
| 
       187 
     | 
    
         
            -
                  {%- capture _wrapper_start -%}
         
     | 
| 
       188 
     | 
    
         
            -
                    <div class="preview-img {{ _class | strip }}">
         
     | 
| 
       189 
     | 
    
         
            -
                  {%- endcapture -%}
         
     | 
| 
       190 
     | 
    
         
            -
                  {% assign _img_content = _img_content | append: _wrapper_start %}
         
     | 
| 
       191 
     | 
    
         
            -
                  {% assign _right = _right | prepend: '></div' %}
         
     | 
| 
       192 
188 
     | 
    
         
             
                {% endif %}
         
     | 
| 
       193 
189 
     | 
    
         | 
| 
       194 
190 
     | 
    
         
             
                <!-- combine -->
         
     | 
    
        data/_includes/update-list.html
    CHANGED
    
    | 
         @@ -1,6 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
       2 
     | 
    
         
            -
              Get the last 5 posts from lastmod list.
         
     | 
| 
       3 
     | 
    
         
            -
            {% endcomment %}
         
     | 
| 
      
 1 
     | 
    
         
            +
            <!-- Get the last 5 posts from lastmod list. -->
         
     | 
| 
       4 
2 
     | 
    
         | 
| 
       5 
3 
     | 
    
         
             
            {% assign MAX_SIZE = 5 %}
         
     | 
| 
       6 
4 
     | 
    
         | 
| 
         @@ -26,12 +24,12 @@ 
     | 
|
| 
       26 
24 
     | 
    
         
             
            {% if update_list.size > 0 %}
         
     | 
| 
       27 
25 
     | 
    
         
             
              <div id="access-lastmod" class="post">
         
     | 
| 
       28 
26 
     | 
    
         
             
                <div class="panel-heading">{{- site.data.locales[include.lang].panel.lastmod -}}</div>
         
     | 
| 
       29 
     | 
    
         
            -
                <ul class="post-content ps-0 pb-1 ms-1 mt-2">
         
     | 
| 
      
 27 
     | 
    
         
            +
                <ul class="post-content list-unstyled ps-0 pb-1 ms-1 mt-2">
         
     | 
| 
       30 
28 
     | 
    
         
             
                  {% for item in update_list %}
         
     | 
| 
       31 
29 
     | 
    
         
             
                    {% assign index = item | split: '::' | last | plus: 0 %}
         
     | 
| 
       32 
30 
     | 
    
         
             
                    {% assign post = site.posts[index] %}
         
     | 
| 
       33 
31 
     | 
    
         
             
                    {% assign url = post.url | relative_url %}
         
     | 
| 
       34 
     | 
    
         
            -
                    <li>
         
     | 
| 
      
 32 
     | 
    
         
            +
                    <li class="text-truncate lh-lg">
         
     | 
| 
       35 
33 
     | 
    
         
             
                      <a href="{{ url }}">{{ post.title }}</a>
         
     | 
| 
       36 
34 
     | 
    
         
             
                    </li>
         
     | 
| 
       37 
35 
     | 
    
         
             
                  {% endfor %}
         
     | 
    
        data/_layouts/home.html
    CHANGED
    
    | 
         @@ -48,7 +48,15 @@ refactor: true 
     | 
|
| 
       48 
48 
     | 
    
         
             
                      {% if post.image.lqip %}
         
     | 
| 
       49 
49 
     | 
    
         
             
                        {% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %}
         
     | 
| 
       50 
50 
     | 
    
         
             
                      {% endif %}
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
                      {% assign src = post.image.path | default: post.image %}
         
     | 
| 
      
 53 
     | 
    
         
            +
                      {% unless src contains '//' %}
         
     | 
| 
      
 54 
     | 
    
         
            +
                        {% assign src = post.img_path | append: '/' | append: src | replace: '//', '/' %}
         
     | 
| 
      
 55 
     | 
    
         
            +
                      {% endunless %}
         
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
                      {% assign alt = post.image.alt | default: 'Preview Image' %}
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
                      <img src="{{ src }}" w="15" h="8" alt="{{ alt }}" {{ lqip }}>
         
     | 
| 
       52 
60 
     | 
    
         
             
                    {% endif %}
         
     | 
| 
       53 
61 
     | 
    
         | 
| 
       54 
62 
     | 
    
         
             
                    <div class="card-body d-flex flex-column">
         
     | 
    
        data/_layouts/page.html
    CHANGED
    
    | 
         @@ -5,7 +5,11 @@ layout: default 
     | 
|
| 
       5 
5 
     | 
    
         
             
            {% include lang.html %}
         
     | 
| 
       6 
6 
     | 
    
         
             
            {% include origin-type.html %}
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
      
 8 
     | 
    
         
            +
            {% if layout.tail_includes %}
         
     | 
| 
      
 9 
     | 
    
         
            +
              {% assign has_tail = true %}
         
     | 
| 
      
 10 
     | 
    
         
            +
            {% endif %}
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            <div class="row{% unless has_tail %} mb-5{% endunless %}">
         
     | 
| 
       9 
13 
     | 
    
         
             
              <!-- core -->
         
     | 
| 
       10 
14 
     | 
    
         
             
              <div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
         
     | 
| 
       11 
15 
     | 
    
         
             
                {% capture padding %}
         
     | 
| 
         @@ -52,7 +56,7 @@ layout: default 
     | 
|
| 
       52 
56 
     | 
    
         
             
            </div>
         
     | 
| 
       53 
57 
     | 
    
         | 
| 
       54 
58 
     | 
    
         
             
            <!-- tail -->
         
     | 
| 
       55 
     | 
    
         
            -
            {% if  
     | 
| 
      
 59 
     | 
    
         
            +
            {% if has_tail %}
         
     | 
| 
       56 
60 
     | 
    
         
             
              <div class="row">
         
     | 
| 
       57 
61 
     | 
    
         
             
                <div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
         
     | 
| 
       58 
62 
     | 
    
         
             
                  {% for _include in layout.tail_includes %}
         
     | 
    
        data/_sass/addon/commons.scss
    CHANGED
    
    | 
         @@ -255,16 +255,6 @@ i { 
     | 
|
| 
       255 
255 
     | 
    
         
             
            }
         
     | 
| 
       256 
256 
     | 
    
         | 
| 
       257 
257 
     | 
    
         
             
            #access-lastmod {
         
     | 
| 
       258 
     | 
    
         
            -
              li {
         
     | 
| 
       259 
     | 
    
         
            -
                height: 1.8rem;
         
     | 
| 
       260 
     | 
    
         
            -
                overflow: hidden;
         
     | 
| 
       261 
     | 
    
         
            -
                text-overflow: ellipsis;
         
     | 
| 
       262 
     | 
    
         
            -
                display: -webkit-box;
         
     | 
| 
       263 
     | 
    
         
            -
                -webkit-line-clamp: 1;
         
     | 
| 
       264 
     | 
    
         
            -
                -webkit-box-orient: vertical;
         
     | 
| 
       265 
     | 
    
         
            -
                list-style: none;
         
     | 
| 
       266 
     | 
    
         
            -
              }
         
     | 
| 
       267 
     | 
    
         
            -
             
     | 
| 
       268 
258 
     | 
    
         
             
              a {
         
     | 
| 
       269 
259 
     | 
    
         
             
                &:hover {
         
     | 
| 
       270 
260 
     | 
    
         
             
                  @extend %link-hover;
         
     | 
| 
         @@ -1113,10 +1103,6 @@ $btn-mb: 0.5rem; 
     | 
|
| 
       1113 
1103 
     | 
    
         
             
                  @extend %no-bottom-border;
         
     | 
| 
       1114 
1104 
     | 
    
         
             
                }
         
     | 
| 
       1115 
1105 
     | 
    
         
             
              }
         
     | 
| 
       1116 
     | 
    
         
            -
             
     | 
| 
       1117 
     | 
    
         
            -
              @at-root .row:only-child > #{&} {
         
     | 
| 
       1118 
     | 
    
         
            -
                padding-bottom: 3rem;
         
     | 
| 
       1119 
     | 
    
         
            -
              }
         
     | 
| 
       1120 
1106 
     | 
    
         
             
            }
         
     | 
| 
       1121 
1107 
     | 
    
         | 
| 
       1122 
1108 
     | 
    
         
             
            #mask {
         
     | 
    
        data/_sass/layout/home.scss
    CHANGED
    
    
    
        data/assets/js/dist/home.min.js
    CHANGED
    
    
    
        data/assets/js/dist/misc.min.js
    CHANGED
    
    
    
        data/assets/js/dist/page.min.js
    CHANGED
    
    
    
        data/assets/js/dist/post.min.js
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: jekyll-theme-chirpy
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 6.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 6.0.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Cotes Chung
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-05-19 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: jekyll
         
     |