@sleekcms/sync 2.7.1 → 2.7.2
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.
- package/dist/AGENT.md +10 -0
- package/package.json +1 -1
package/dist/AGENT.md
CHANGED
|
@@ -361,6 +361,16 @@ Callable from **any** view (page, block, entry, layout); duplicates are removed
|
|
|
361
361
|
| `style(css, order?)` | Add `<style>` |
|
|
362
362
|
| `script(value, order?)` | Add `<script>` — `.js` URL → external, otherwise inline |
|
|
363
363
|
|
|
364
|
+
`script()`/`link()` also accept a predefined library name — `gsap` (includes ScrollTrigger, pre-registered), `aos` (auto-`AOS.init()`, JS+CSS), `alpinejs`, `swiper`, `animejs`, `chartjs`, `threejs` (import map — pair with a `type: 'module'` script), `lottie`, `typedjs`, `splide`, `htmx`, `vanilla-tilt` — either call injects all of the library's CDN assets, deduped. Prefer these names over hand-picked CDN URLs, and only add a library the site actually uses.
|
|
365
|
+
|
|
366
|
+
```ejs
|
|
367
|
+
<% script('aos') %> <!-- injects aos.js + aos.css + AOS.init() -->
|
|
368
|
+
<section data-aos="fade-up">
|
|
369
|
+
<h2><%= item.title %></h2>
|
|
370
|
+
</section>
|
|
371
|
+
<section data-aos="fade-up" data-aos-delay="150">...</section>
|
|
372
|
+
```
|
|
373
|
+
|
|
364
374
|
**CSS/JS rules:** include assets only via `link()` / `script()` — never raw `<link>`/`<script>` tags in views. Exception: creating `css/tailwind.css` enables Tailwind, which is compiled and injected automatically — never `link()` it. Default to a modern Tailwind design unless the user specifies otherwise.
|
|
365
375
|
|
|
366
376
|
## 9. SEO
|