@hagicode/hagilight-core 0.3.2-dev.57.1.ee1f17e → 0.3.2-dev.58.1.bee3693
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/README.md +33 -0
- package/package.json +2 -1
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @hagicode/hagilight-core
|
|
2
|
+
|
|
3
|
+
Shared Astro components, TypeScript utilities, and brand assets for HagiCode sites. This package works with plain Astro and Starlight; it does not require Starlight.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @hagicode/hagilight-core astro
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Use a supported Astro version (`^6.0.7 || ^7.3.5`). The other Hagilight packages install core automatically; install it directly if your site imports core entry points.
|
|
12
|
+
|
|
13
|
+
## Use
|
|
14
|
+
|
|
15
|
+
```astro
|
|
16
|
+
---
|
|
17
|
+
import Footer from '@hagicode/hagilight-core/Footer';
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<Footer />
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`Footer` renders localized site links and, when configured by a Hagilight RSS integration, feed links. Its `locale` and `links` props allow customization.
|
|
24
|
+
|
|
25
|
+
Other entry points include `Copyright`, `PromotoBanner`, `GoogleAnalytics`, and `Analytics51LA` Astro components; `links`, `favicon`, `seo`, `seo-schema`, `rss`, `rss-ownership`, and `promotions` utilities; and `logo.png` and `favicon.ico` assets. For example:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { resolveSiteLinks } from '@hagicode/hagilight-core/links';
|
|
29
|
+
|
|
30
|
+
const links = resolveSiteLinks('en-US');
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
See the [repository documentation](https://github.com/HagiCode-org/hagilight#readme) for the full list of entry points and usage.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hagicode/hagilight-core",
|
|
3
|
-
"version": "0.3.2-dev.
|
|
3
|
+
"version": "0.3.2-dev.58.1.bee3693",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared TypeScript utilities, components, and assets for HagiCode Astro and Starlight sites",
|
|
6
6
|
"repository": {
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"./favicon.ico": "./favicon.ico"
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
57
|
+
"README.md",
|
|
57
58
|
"dist/**/*.js",
|
|
58
59
|
"dist/**/*.d.ts",
|
|
59
60
|
"dist/**/*.json",
|