mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-20 06:33:25 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bcd394598b | ||
|
|
6d38f643ae | ||
|
|
532e7ad451 |
@@ -145,6 +145,8 @@
|
|||||||
<script src="{{ site.baseurl }}/assets/js/dist/tooltip-loader.min.js" async></script>
|
<script src="{{ site.baseurl }}/assets/js/dist/tooltip-loader.min.js" async></script>
|
||||||
|
|
||||||
<!-- PWA -->
|
<!-- PWA -->
|
||||||
<script src="{{ '/app.js' | relative_url }}" defer></script>
|
{% if jekyll.environment == 'production' %}
|
||||||
|
<script src="{{ '/app.js' | relative_url }}" defer></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
%anchor {
|
%anchor {
|
||||||
.post-content &,
|
.post-content>&,
|
||||||
#page & {
|
#page>& {
|
||||||
padding-top: 3.5rem;
|
padding-top: 3.5rem;
|
||||||
margin-top: -2.5rem;
|
margin-top: -2.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,9 +20,11 @@ title: Categories
|
|||||||
|
|
||||||
{% for post in posts_of_category %}
|
{% for post in posts_of_category %}
|
||||||
{% assign second_category = post.categories[1] %}
|
{% assign second_category = post.categories[1] %}
|
||||||
{% unless sub_categories contains second_category %}
|
{% if second_category %}
|
||||||
{% assign sub_categories = sub_categories | push: second_category %}
|
{% unless sub_categories contains second_category %}
|
||||||
{% endunless %}
|
{% assign sub_categories = sub_categories | push: second_category %}
|
||||||
|
{% endunless %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% assign sub_categories = sub_categories | sort %}
|
{% assign sub_categories = sub_categories | sort %}
|
||||||
|
|||||||
Reference in New Issue
Block a user