create-clientkit 0.1.0 → 1.0.0
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/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -64,6 +64,12 @@ what it needs to override:
|
|
|
64
64
|
**Everything derives from `SITE`.** You never repeat the site name,
|
|
65
65
|
description or URL.
|
|
66
66
|
|
|
67
|
+
### Set the URL before the final build
|
|
68
|
+
|
|
69
|
+
`SITE.url` is read at **build time**, so canonical tags, `og:url` and the
|
|
70
|
+
sitemap are baked into the output. Moving a built site to a different domain
|
|
71
|
+
leaves them pointing at the old one - rebuild after changing it.
|
|
72
|
+
|
|
67
73
|
### Before you have a domain
|
|
68
74
|
|
|
69
75
|
`SITE.url` starts empty and that is a supported state, not a broken one. While
|
|
@@ -4,7 +4,12 @@ import { CONTACT, SITE, SOCIAL } from '../config/site.config.ts';
|
|
|
4
4
|
|
|
5
5
|
// Computed at build time rather than frozen in at scaffold time, so the notice
|
|
6
6
|
// stays correct for as long as the site is rebuilt.
|
|
7
|
-
|
|
7
|
+
//
|
|
8
|
+
// Built as one string rather than as adjacent `{year} {SITE.name}` expressions
|
|
9
|
+
// in the markup: a formatter may put those on separate lines, and Astro drops
|
|
10
|
+
// the newline between two adjacent expressions, which silently renders
|
|
11
|
+
// "2026Acme Studio" with no space.
|
|
12
|
+
const copyright = `© ${new Date().getFullYear()} ${SITE.name}`;
|
|
8
13
|
|
|
9
14
|
const hasSocial = SOCIAL.some((link) => link.label !== '' && link.href !== '');
|
|
10
15
|
const hasContact = CONTACT.email !== '' || CONTACT.phone !== '';
|
|
@@ -12,10 +17,7 @@ const hasContact = CONTACT.email !== '' || CONTACT.phone !== '';
|
|
|
12
17
|
|
|
13
18
|
<footer class="site-footer">
|
|
14
19
|
<div class="container-page inner">
|
|
15
|
-
<p class="copyright">
|
|
16
|
-
© {year}
|
|
17
|
-
{SITE.name}
|
|
18
|
-
</p>
|
|
20
|
+
<p class="copyright">{copyright}</p>
|
|
19
21
|
|
|
20
22
|
{
|
|
21
23
|
(hasContact || hasSocial) && (
|