1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Improved post loading speed.

Also improved the layout for Home page.
This commit is contained in:
Cotes Chung
2019-10-29 14:09:58 +08:00
parent 31cacb7278
commit 15a2a98e05
8 changed files with 64 additions and 69 deletions

View File

@@ -38,8 +38,8 @@ $(function() {
$('#toc-wrap').removeClass('topbar-down');
}
if ( $('.panel-group').length > 0) {
$('.panel-group').removeClass('topbar-down');
if ( $('.access').length > 0) {
$('.access').removeClass('topbar-down');
}
if ($('#search-input').is(':focus')) {
@@ -53,8 +53,8 @@ $(function() {
if ( $('#toc-wrap').length > 0) {
$('#toc-wrap').addClass('topbar-down');
}
if ( $('.panel-group').length > 0) {
$('.panel-group').addClass('topbar-down');
if ( $('.access').length > 0) {
$('.access').addClass('topbar-down');
}
}
}