@hagicode/hagilight-core 0.4.1 → 0.4.2-dev.63.1.76fc519

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/Footer.astro CHANGED
@@ -85,7 +85,15 @@ const resolvedLinks = resolveSiteLinks(locale, {
85
85
  >{link.label}</a>
86
86
  ))}
87
87
  </nav>
88
- <p class="hagilight-footer__copyright"><Copyright name="HagiCode" /></p>
88
+ <p class="hagilight-footer__copyright">
89
+ <Copyright name="HagiCode" />
90
+ {Astro.slots.has('attribution') && (
91
+ <>
92
+ {' | '}
93
+ <span class="hagilight-footer__attribution"><slot name="attribution" /></span>
94
+ </>
95
+ )}
96
+ </p>
89
97
  </footer>
90
98
 
91
99
  <style>
@@ -153,6 +161,10 @@ const resolvedLinks = resolveSiteLinks(locale, {
153
161
  text-align: center;
154
162
  }
155
163
 
164
+ .hagilight-footer__attribution {
165
+ overflow-wrap: anywhere;
166
+ }
167
+
156
168
  @media (max-width: 40rem) {
157
169
  .hagilight-footer__sections {
158
170
  grid-template-columns: 1fr;
package/README.md CHANGED
@@ -21,6 +21,11 @@ import Footer from '@hagicode/hagilight-core/Footer';
21
21
  ```
22
22
 
23
23
  `Footer` renders localized site links and, when configured by a Hagilight RSS integration, feed links. Its `locale` and `links` props allow customization.
24
+ The core Footer stays independent of feature packages and does not add
25
+ attribution by itself. Plain-Astro sites that want the literal
26
+ `Powered By hagilight@<version>` package attribution can replace this import with
27
+ `@hagicode/hagilight/Footer`; that component reads the exact build-time version
28
+ from `@hagicode/hagilight`'s own manifest, not from Astro.
24
29
 
25
30
  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
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hagicode/hagilight-core",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-dev.63.1.76fc519",
4
4
  "type": "module",
5
5
  "description": "Shared TypeScript utilities, components, and assets for HagiCode Astro and Starlight sites",
6
6
  "repository": {