File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ import ' ../scripts/swiper.js' ;
3+ ---
4+
5+ <swiper-container
6+ slides-per-view =" 1"
7+ autoplay =" true"
8+ loop =" true"
9+ >
10+ <swiper-slide>Item 1</swiper-slide>
11+ <swiper-slide>Item 2</swiper-slide>
12+ <swiper-slide>Item 3</swiper-slide>
13+ </swiper-container>
Original file line number Diff line number Diff line change 22const { currentOS } = Astro .props ;
33import ' swiper/css' ;
44import ' swiper/element/bundle' ;
5+ import Carousel from ' ../components/Carousel.astro' ;
56---
67
78<nav >
@@ -16,10 +17,10 @@ import 'swiper/element/bundle';
1617
1718 <details open ={ currentOS === " linux" } >
1819 <summary class ={ currentOS === " linux" ? " active" : " " } >
19- <a href =" /en/linux/" >Linux</a >
20+ <a href =" /en/linux/" >Linux/ChromeBook </a >
2021 </summary >
2122 <ul >
22- <li ><a href =" /en/chromebook/" >Chromebook Installation</a ></li >
23+ <li ><a href =" /en/chromebook/" >ChromeBook Installation</a ></li >
2324 <li ><a href =" /en/linux/chapter1/" >Chapter 1</a ></li >
2425 <!-- more chapters -->
2526 </ul >
@@ -79,15 +80,7 @@ import 'swiper/element/bundle';
7980</style >
8081
8182<aside class =" sidebar" >
82- <swiper-container
83- slides-per-view =" 1"
84- autoplay =" true"
85- loop =" true"
86- >
87- <swiper-slide>Item 1</swiper-slide>
88- <swiper-slide>Item 2</swiper-slide>
89- <swiper-slide>Item 3</swiper-slide>
90- </swiper-container>
83+ <Carousel client:load />
9184</aside >
9285
9386
You can’t perform that action at this time.
0 commit comments