@hagicode/hagilight-core 0.4.1-dev.60.1.9bbf68a → 0.4.2-dev.62.1.e263aaa
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 +13 -1
- package/README.md +5 -0
- package/package.json +1 -1
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"
|
|
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
|
+
`power 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