load slider css lazy mode

This commit is contained in:
somrat sorkar 2023-11-25 10:57:51 +06:00
parent e6c15304c9
commit 12ca525a15
5 changed files with 11 additions and 4 deletions

View File

@ -40,10 +40,10 @@ main {
// swiper pagination // swiper pagination
.swiper-pagination-bullet { .swiper-pagination-bullet {
@apply bg-theme-light dark:bg-darkmode-theme-light h-2.5 w-2.5 opacity-100; @apply bg-theme-light dark:bg-darkmode-theme-light h-2.5 w-2.5 opacity-100 mx-1.5 #{!important};
&-active { &-active {
@apply bg-primary dark:bg-darkmode-primary h-4 w-4; @apply bg-primary dark:bg-darkmode-primary h-4 w-4 #{!important};
} }
} }

View File

@ -84,3 +84,8 @@
} }
} }
} }
// slider
.gallery-slider {
@apply ml-0 #{!important};
}

View File

@ -122,7 +122,7 @@ notAlternative = true
# CSS Plugins # CSS Plugins
[[params.plugins.css]] [[params.plugins.css]]
link = "plugins/swiper/swiper-bundle.css" link = "plugins/swiper/swiper-bundle.css"
lazy = false lazy = true
[[params.plugins.css]] [[params.plugins.css]]
link = "plugins/glightbox/glightbox.css" link = "plugins/glightbox/glightbox.css"
lazy = true lazy = true

View File

@ -73,6 +73,8 @@
{{/* styles lazy */}} {{/* styles lazy */}}
<link <link
defer
async
rel="stylesheet" rel="stylesheet"
href="{{ $stylesLazy.RelPermalink }}" href="{{ $stylesLazy.RelPermalink }}"
integrity="{{ $stylesLazy.Data.Integrity }}" integrity="{{ $stylesLazy.Data.Integrity }}"

View File

@ -1,7 +1,7 @@
{ {
"name": "hugoplate", "name": "hugoplate",
"description": "hugo tailwindcss boilerplate", "description": "hugo tailwindcss boilerplate",
"version": "1.9.4", "version": "1.9.5",
"license": "MIT", "license": "MIT",
"author": "zeon.studio", "author": "zeon.studio",
"scripts": { "scripts": {