ghostcn 1.4.1 → 1.6.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.
Files changed (56) hide show
  1. package/dist/commands/create.js +16 -9
  2. package/dist/commands/diff.js +47 -5
  3. package/dist/commands/init.js +22 -10
  4. package/dist/commands/list.js +22 -4
  5. package/dist/registry/components/accordion.json +66 -0
  6. package/dist/registry/components/alert.json +1 -1
  7. package/dist/registry/components/announcement-bar.json +79 -0
  8. package/dist/registry/components/archive-header.json +2 -2
  9. package/dist/registry/components/author-card.json +2 -2
  10. package/dist/registry/components/author-list.json +2 -2
  11. package/dist/registry/components/avatar.json +62 -0
  12. package/dist/registry/components/badge.json +1 -1
  13. package/dist/registry/components/breadcrumbs.json +59 -0
  14. package/dist/registry/components/button.json +1 -1
  15. package/dist/registry/components/card.json +1 -1
  16. package/dist/registry/components/featured-posts.json +2 -2
  17. package/dist/registry/components/input.json +8 -2
  18. package/dist/registry/components/member-cta.json +1 -1
  19. package/dist/registry/components/newsletter-form.json +12 -3
  20. package/dist/registry/components/pagination.json +2 -2
  21. package/dist/registry/components/post-card.json +2 -2
  22. package/dist/registry/components/post-grid.json +2 -2
  23. package/dist/registry/components/post-header.json +2 -2
  24. package/dist/registry/components/post-navigation.json +1 -1
  25. package/dist/registry/components/pricing-table.json +24 -4
  26. package/dist/registry/components/reading-progress.json +73 -0
  27. package/dist/registry/components/related-posts.json +7 -1
  28. package/dist/registry/components/share-buttons.json +76 -0
  29. package/dist/registry/components/site-footer.json +2 -2
  30. package/dist/registry/components/site-header.json +1 -1
  31. package/dist/registry/components/table-of-contents.json +13 -3
  32. package/dist/registry/components/tag-grid.json +2 -2
  33. package/dist/registry/components/tag-list.json +1 -1
  34. package/dist/registry/components/theme-toggle.json +65 -0
  35. package/dist/registry/components/visibility-badge.json +71 -0
  36. package/dist/registry/index.json +89 -4
  37. package/dist/templates/playground/index.html +2 -2
  38. package/dist/templates/playground/playground.css +8 -1
  39. package/dist/templates/playground/playground.js +39 -5
  40. package/dist/templates/playground/preview.css +1 -0
  41. package/dist/templates/theme-tools.mjs +62 -24
  42. package/dist/utils/component-diff.d.ts +1 -1
  43. package/dist/utils/component-diff.js +46 -17
  44. package/dist/utils/component-files.js +3 -2
  45. package/dist/utils/component-history.js +1 -1
  46. package/dist/utils/design-defaults.json +17 -0
  47. package/dist/utils/playground-server.js +34 -12
  48. package/dist/utils/preview-renderer.d.ts +5 -0
  49. package/dist/utils/preview-renderer.js +30 -8
  50. package/dist/utils/registry.js +15 -5
  51. package/dist/utils/theme-files.js +14 -7
  52. package/dist/utils/theme-project.js +6 -4
  53. package/dist/utils/theme-scaffold.js +27 -14
  54. package/dist/utils/theme.d.ts +3 -3
  55. package/dist/utils/theme.js +108 -49
  56. package/package.json +1 -1
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "avatar",
3
+ "type": "components:ui",
4
+ "description": "A reusable author or user avatar with image and initials fallback.",
5
+ "dependencies": [],
6
+ "ghost_version": ">=5.0.0",
7
+ "parameters": {
8
+ "variant": {
9
+ "description": "Visual treatment; unknown values fall back to default.",
10
+ "options": [
11
+ "default",
12
+ "rounded",
13
+ "outline"
14
+ ],
15
+ "default": "default"
16
+ },
17
+ "size": {
18
+ "description": "Component scale; unknown values fall back to default.",
19
+ "options": [
20
+ "sm",
21
+ "default",
22
+ "lg"
23
+ ],
24
+ "default": "default"
25
+ },
26
+ "src": {
27
+ "description": "Image URL; falls back to profile_image inside a Ghost author context."
28
+ },
29
+ "name": {
30
+ "description": "Display name used for alt text and initials fallback."
31
+ },
32
+ "href": {
33
+ "description": "Optional trusted profile URL."
34
+ },
35
+ "decorative": {
36
+ "description": "Boolean. Hide avatar alt/initial from screen readers when placed next to a visible name."
37
+ }
38
+ },
39
+ "files": [
40
+ {
41
+ "name": "avatar.hbs",
42
+ "type": "partial",
43
+ "target": "partials/components/avatar.hbs",
44
+ "content": "{{!-- Styling parameters: class, imageClass --}}\n{{#with this as |ghostcnStyles|}}\n{{#if href}}\n<a class=\"ghcn-ui-avatar{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"rounded\"}}rounded{{else}}{{#match variant \"outline\"}}outline{{else}}default{{/match}}{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\" href=\"{{href}}\"{{#if name}} aria-label=\"{{name}}\"{{/if}}>{{#if src}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url src size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else if profile_image}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else}}<span class=\"ghcn-ui-avatar__fallback{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\"{{#if decorative}} aria-hidden=\"true\"{{else}}{{#if name}} role=\"img\" aria-label=\"{{name}}\"{{/if}}{{/if}}>{{#if name}}{{name.[0]}}{{else}}?{{/if}}</span>{{/if}}</a>\n{{else}}\n<span class=\"ghcn-ui-avatar{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"rounded\"}}rounded{{else}}{{#match variant \"outline\"}}outline{{else}}default{{/match}}{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\">{{#if src}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url src size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else if profile_image}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else}}<span class=\"ghcn-ui-avatar__fallback{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\"{{#if decorative}} aria-hidden=\"true\"{{else}}{{#if name}} role=\"img\" aria-label=\"{{name}}\"{{/if}}{{/if}}>{{#if name}}{{name.[0]}}{{else}}?{{/if}}</span>{{/if}}</span>\n{{/if}}\n{{/with}}"
45
+ },
46
+ {
47
+ "name": "avatar.css",
48
+ "type": "style",
49
+ "target": "assets/css/components/avatar.css",
50
+ "content": ".ghcn-ui-avatar { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-avatar, .ghcn-ui-avatar * { box-sizing: border-box; }\n.ghcn-ui-avatar:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-avatar:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-avatar:focus-visible, :where(.ghcn-ui-avatar) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; overflow: hidden; border-radius: 9999px; border: 1px solid var(--border); background: var(--muted); color: var(--foreground); text-decoration: none; vertical-align: middle; }\n.ghcn-ui-avatar:where([data-size=\"sm\"]) { width: 28px; height: 28px; font-size: 12px; }\n.ghcn-ui-avatar:where([data-size=\"lg\"]) { width: 56px; height: 56px; font-size: 20px; }\n.ghcn-ui-avatar:where([data-variant=\"rounded\"]) { border-radius: var(--ghcn-control-radius, var(--radius, 8px)); }\n.ghcn-ui-avatar:where([data-variant=\"outline\"]) { border: 2px solid var(--primary); padding: 2px; background: var(--background); }\n.ghcn-ui-avatar:where([data-variant=\"outline\"]) .ghcn-ui-avatar__image, .ghcn-ui-avatar:where([data-variant=\"outline\"]) .ghcn-ui-avatar__fallback { border-radius: inherit; }\n.ghcn-ui-avatar__image { display: block; width: 100%; height: 100%; object-fit: cover; }\n.ghcn-ui-avatar__fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 700; text-transform: uppercase; user-select: none; }\n"
51
+ }
52
+ ],
53
+ "styleSlots": {
54
+ "class": [
55
+ ".ghcn-ui-avatar"
56
+ ],
57
+ "imageClass": [
58
+ ".ghcn-ui-avatar__image",
59
+ ".ghcn-ui-avatar__fallback"
60
+ ]
61
+ }
62
+ }
@@ -40,7 +40,7 @@
40
40
  "name": "badge.css",
41
41
  "type": "style",
42
42
  "target": "assets/css/components/badge.css",
43
- "content": ".ghcn-ui-badge { box-sizing: border-box; font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-badge, .ghcn-ui-badge * { box-sizing: border-box; }\n.ghcn-ui-badge:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-badge:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-badge:focus-visible, .ghcn-ui-badge :focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }\n.ghcn-ui-badge { display: inline-flex; align-items: center; padding: .125em .625em; border: 1px solid transparent; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-weight: 600; }\n.ghcn-ui-badge:where([data-variant=\"secondary\"]) { background: var(--secondary); color: var(--secondary-foreground); }\n.ghcn-ui-badge:where([data-variant=\"outline\"]) { background: transparent; color: var(--foreground); border-color: var(--border); }\n.ghcn-ui-badge:where([data-variant=\"destructive\"]) { background: var(--destructive); color: var(--destructive-foreground); }\n"
43
+ "content": ".ghcn-ui-badge { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-badge, .ghcn-ui-badge * { box-sizing: border-box; }\n.ghcn-ui-badge:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-badge:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-badge:focus-visible, :where(.ghcn-ui-badge) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); font-size: 12px; font-weight: 600; line-height: 1.25; }\n.ghcn-ui-badge:where([data-size=\"sm\"]) { font-size: 11px; padding: 2px 7px; }\n.ghcn-ui-badge:where([data-size=\"lg\"]) { font-size: 14px; padding: 4px 10px; }\n.ghcn-ui-badge:where([data-variant=\"secondary\"]) { background: var(--muted); color: var(--muted-foreground); border-color: transparent; }\n.ghcn-ui-badge:where([data-variant=\"outline\"]) { background: transparent; color: var(--foreground); border-color: var(--border); }\n.ghcn-ui-badge:where([data-variant=\"destructive\"]) { background: var(--destructive); color: var(--destructive-foreground); }\n"
44
44
  }
45
45
  ],
46
46
  "styleSlots": {
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "breadcrumbs",
3
+ "type": "components:content",
4
+ "description": "Accessible breadcrumb navigation with Schema.org BreadcrumbList microdata for posts, tags, and authors.",
5
+ "dependencies": [],
6
+ "ghost_version": ">=5.0.0",
7
+ "parameters": {
8
+ "variant": {
9
+ "description": "Separator and surface style.",
10
+ "options": [
11
+ "default",
12
+ "chevron",
13
+ "pill"
14
+ ],
15
+ "default": "default"
16
+ },
17
+ "homeLabel": {
18
+ "description": "Label for the home breadcrumb.",
19
+ "default": "Home"
20
+ },
21
+ "current": {
22
+ "description": "Optional override for the current page title."
23
+ }
24
+ },
25
+ "files": [
26
+ {
27
+ "name": "breadcrumbs.hbs",
28
+ "type": "partial",
29
+ "target": "partials/components/breadcrumbs.hbs",
30
+ "content": "{{!-- Styling parameters: class, listClass, linkClass, currentClass --}}\n{{#with this as |ghostcnStyles|}}\n<nav class=\"ghcn-breadcrumbs{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"chevron\"}}chevron{{else}}{{#match variant \"pill\"}}pill{{else}}default{{/match}}{{/match}}\" aria-label=\"Breadcrumb\">\n <ol class=\"ghcn-breadcrumbs__list{{#if ghostcnStyles.listClass}} {{ghostcnStyles.listClass}}{{/if}}\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">\n <li class=\"ghcn-breadcrumbs__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">\n <a class=\"ghcn-breadcrumbs__link{{#if ghostcnStyles.linkClass}} {{ghostcnStyles.linkClass}}{{/if}}\" href=\"{{@site.url}}\" itemprop=\"item\"><span itemprop=\"name\">{{#if homeLabel}}{{homeLabel}}{{else}}Home{{/if}}</span></a>\n <meta itemprop=\"position\" content=\"1\" />\n </li>\n {{#if primary_tag}}\n <li class=\"ghcn-breadcrumbs__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">\n <a class=\"ghcn-breadcrumbs__link{{#if ghostcnStyles.linkClass}} {{ghostcnStyles.linkClass}}{{/if}}\" href=\"{{primary_tag.url}}\" itemprop=\"item\"><span itemprop=\"name\">{{primary_tag.name}}</span></a>\n <meta itemprop=\"position\" content=\"2\" />\n </li>\n {{/if}}\n <li class=\"ghcn-breadcrumbs__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">\n <span class=\"ghcn-breadcrumbs__current{{#if ghostcnStyles.currentClass}} {{ghostcnStyles.currentClass}}{{/if}}\" aria-current=\"page\" itemprop=\"name\">{{#if current}}{{current}}{{else}}{{#if title}}{{title}}{{else}}{{#if name}}{{name}}{{else}}{{@site.title}}{{/if}}{{/if}}{{/if}}</span>\n <meta itemprop=\"position\" content=\"{{#if primary_tag}}3{{else}}2{{/if}}\" />\n </li>\n </ol>\n</nav>\n{{/with}}"
31
+ },
32
+ {
33
+ "name": "breadcrumbs.css",
34
+ "type": "style",
35
+ "target": "assets/css/components/breadcrumbs.css",
36
+ "content": ".ghcn-breadcrumbs { box-sizing: border-box; min-width: 0; margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); margin-block: 16px; }\n.ghcn-breadcrumbs *, .ghcn-breadcrumbs *::before, .ghcn-breadcrumbs *::after { box-sizing: border-box; }\n.ghcn-breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--ghcn-text-meta, 13px); color: var(--muted-foreground); }\n.ghcn-breadcrumbs:where([data-variant=\"pill\"]) .ghcn-breadcrumbs__list { display: inline-flex; padding: 5px 12px; border: 1px solid var(--border); border-radius: 9999px; background: var(--card); }\n.ghcn-breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }\n.ghcn-breadcrumbs__item + .ghcn-breadcrumbs__item::before { content: \"/\"; color: color-mix(in srgb, var(--muted-foreground) 55%, transparent); }\n.ghcn-breadcrumbs:where([data-variant=\"chevron\"]) .ghcn-breadcrumbs__item + .ghcn-breadcrumbs__item::before { content: \"›\"; font-size: 1.15em; line-height: 1; }\n.ghcn-breadcrumbs__link { color: inherit; text-decoration: none; }\n.ghcn-breadcrumbs__link:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }\n.ghcn-breadcrumbs__current { color: var(--foreground); font-weight: 600; }\n.ghcn-breadcrumbs:focus-visible, :where(.ghcn-breadcrumbs) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n"
37
+ }
38
+ ],
39
+ "gscan": {
40
+ "rules_satisfied": [
41
+ "GS010-PJ-VALID"
42
+ ],
43
+ "notes": "Uses native Ghost @site.url, primary_tag, title, and name helpers with Schema.org microdata."
44
+ },
45
+ "styleSlots": {
46
+ "class": [
47
+ ".ghcn-breadcrumbs"
48
+ ],
49
+ "listClass": [
50
+ ".ghcn-breadcrumbs__list"
51
+ ],
52
+ "linkClass": [
53
+ ".ghcn-breadcrumbs__link"
54
+ ],
55
+ "currentClass": [
56
+ ".ghcn-breadcrumbs__current"
57
+ ]
58
+ }
59
+ }
@@ -63,7 +63,7 @@
63
63
  "name": "button.css",
64
64
  "type": "style",
65
65
  "target": "assets/css/components/button.css",
66
- "content": ".ghcn-ui-button { box-sizing: border-box; font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-button, .ghcn-ui-button * { box-sizing: border-box; }\n.ghcn-ui-button:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-button:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-button:focus-visible, .ghcn-ui-button :focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }\n.ghcn-ui-button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 2.5em; padding: .5em 1em; border: 1px solid transparent; border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground); font-weight: 600; text-decoration: none; cursor: pointer; }\n.ghcn-ui-button:hover { filter: brightness(.94); }\n.ghcn-ui-button:where([data-variant=\"secondary\"]) { background: var(--secondary); color: var(--secondary-foreground); }\n.ghcn-ui-button:where([data-variant=\"outline\"]) { background: transparent; color: var(--foreground); border-color: var(--border); }\n.ghcn-ui-button:where([data-variant=\"ghost\"]), .ghcn-ui-button:where([data-variant=\"link\"]) { background: transparent; color: var(--foreground); }\n.ghcn-ui-button:where([data-variant=\"link\"]) { color: var(--primary); text-decoration: underline; }\n.ghcn-ui-button:where([data-variant=\"destructive\"]) { background: var(--destructive); color: var(--destructive-foreground); }\n.ghcn-ui-button:disabled, .ghcn-ui-button[aria-disabled=\"true\"] { opacity: .5; cursor: not-allowed; filter: none; }\n"
66
+ "content": ".ghcn-ui-button { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-button, .ghcn-ui-button * { box-sizing: border-box; }\n.ghcn-ui-button:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-button:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-button:focus-visible, :where(.ghcn-ui-button) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-button { min-height: var(--ghcn-control-height, 40px); padding: var(--ghcn-control-padding, 8px 14px); border-radius: var(--ghcn-control-radius, var(--radius, 8px)); font-size: var(--ghcn-text-small, 14px); line-height: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: var(--ghcn-control-gap, 8px); border: 1px solid transparent; background: var(--primary); color: var(--primary-foreground); font-weight: 600; text-decoration: none; cursor: pointer; transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease; }\n.ghcn-ui-button:hover { opacity: .9; }\n.ghcn-ui-button:where([data-size=\"sm\"]) { min-height: 34px; padding: 5px 11px; font-size: 13px; }\n.ghcn-ui-button:where([data-size=\"lg\"]) { min-height: 46px; padding: 10px 17px; font-size: 16px; }\n.ghcn-ui-button:where([data-variant=\"secondary\"]) { background: var(--secondary); color: var(--secondary-foreground); }\n.ghcn-ui-button:where([data-variant=\"outline\"]) { background: transparent; color: var(--foreground); border-color: var(--border); }\n.ghcn-ui-button:where([data-variant=\"outline\"]):hover { background: var(--muted); opacity: 1; }\n.ghcn-ui-button:where([data-variant=\"ghost\"]), .ghcn-ui-button:where([data-variant=\"link\"]) { background: transparent; color: var(--foreground); }\n.ghcn-ui-button:where([data-variant=\"ghost\"]):hover { background: var(--muted); opacity: 1; }\n.ghcn-ui-button:where([data-variant=\"link\"]) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }\n.ghcn-ui-button:where([data-variant=\"destructive\"]) { background: var(--destructive); color: var(--destructive-foreground); }\n.ghcn-ui-button:disabled, .ghcn-ui-button[aria-disabled=\"true\"] { opacity: .5; cursor: not-allowed; }\n@media (prefers-reduced-motion: reduce) { .ghcn-ui-button { transition: none; } }\n"
67
67
  }
68
68
  ],
69
69
  "styleSlots": {
@@ -47,7 +47,7 @@
47
47
  "name": "card.css",
48
48
  "type": "style",
49
49
  "target": "assets/css/components/card.css",
50
- "content": ".ghcn-ui-card { box-sizing: border-box; font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-card, .ghcn-ui-card * { box-sizing: border-box; }\n.ghcn-ui-card:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-card:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-card:focus-visible, .ghcn-ui-card :focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }\n.ghcn-ui-card { min-width: 0; padding: 1.5em; background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 6px #0000000d; overflow-wrap: anywhere; }\n.ghcn-ui-card:where([data-variant=\"secondary\"]) { background: var(--secondary); color: var(--secondary-foreground); }\n.ghcn-ui-card:where([data-variant=\"outline\"]) { background: transparent; box-shadow: none; }\n.ghcn-ui-card__title { font-size: 1.25em; line-height: 1.3; margin: 0 0 .5em; color: inherit; }\n.ghcn-ui-card__description { color: inherit; margin: 0 0 1em; }\n.ghcn-ui-card__content:empty { display: none; }\n.ghcn-ui-card__footer { margin-top: 1em; padding-top: 1em; border-top: 1px solid var(--border); }\n"
50
+ "content": ".ghcn-ui-card { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-card, .ghcn-ui-card * { box-sizing: border-box; }\n.ghcn-ui-card:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-card:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-card:focus-visible, :where(.ghcn-ui-card) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-card { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px)); }\n.ghcn-ui-card:where([data-size=\"sm\"]) { padding: 16px; }\n.ghcn-ui-card:where([data-size=\"lg\"]) { padding: 28px; }\n.ghcn-ui-card:where([data-variant=\"secondary\"]) { background: var(--secondary); color: var(--secondary-foreground); }\n.ghcn-ui-card:where([data-variant=\"outline\"]) { background: transparent; }\n.ghcn-ui-card__title { font-size: var(--ghcn-title-card, 20px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: inherit; margin: 0 0 8px; }\n.ghcn-ui-card__description { color: inherit; font-size: var(--ghcn-text-small, 14px); margin: 0 0 16px; }\n.ghcn-ui-card__content:empty { display: none; }\n.ghcn-ui-card__footer { margin-top: 1em; padding-top: 1em; border-top: 1px solid var(--border); }\n"
51
51
  }
52
52
  ],
53
53
  "styleSlots": {
@@ -9,13 +9,13 @@
9
9
  "name": "featured-posts.hbs",
10
10
  "type": "partial",
11
11
  "target": "partials/components/featured-posts.hbs",
12
- "content": "{{!-- Styling parameters: class, titleClass, gridClass, cardClass, contentClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!-- Component: Featured Posts | Usage: {{> \"components/featured-posts\"}} --}}\n{{#get \"posts\" filter=\"featured:true\" limit=\"3\" include=\"authors,tags\"}}\n{{#if posts}}\n<section class=\"ghcn-featured{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}} ghcn-container\" aria-label=\"Featured posts\">\n <div class=\"ghcn-featured__heading\">\n <div><span class=\"ghcn-badge\">Featured</span><h2 class=\"ghcn-featured__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">Editor’s picks</h2></div>\n <a href=\"{{@site.url}}\">View all posts <span aria-hidden=\"true\">&rarr;</span></a>\n </div>\n <div class=\"ghcn-featured__grid{{#if ghostcnStyles.gridClass}} {{ghostcnStyles.gridClass}}{{/if}}\">\n {{#foreach posts}}\n <article class=\"ghcn-featured__card{{#if ghostcnStyles.cardClass}} {{ghostcnStyles.cardClass}}{{/if}}{{#has index=\"0\"}} ghcn-featured__card--lead{{/has}}\">\n <a class=\"ghcn-featured__image\" href=\"{{url}}\">\n {{#if feature_image}}<img src=\"{{img_url feature_image size=\"l\"}}\" alt=\"{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}\" loading=\"{{#has index=\"0\"}}eager{{else}}lazy{{/has}}\" />{{/if}}\n </a>\n <div class=\"ghcn-featured__content{{#if ghostcnStyles.contentClass}} {{ghostcnStyles.contentClass}}{{/if}}\">\n <div class=\"ghcn-featured__meta\">{{#if primary_tag}}<a href=\"{{primary_tag.url}}\">{{primary_tag.name}}</a><span>&bull;</span>{{/if}}<span>{{reading_time}}</span></div>\n <h3><a href=\"{{url}}\">{{title}}</a></h3>\n {{#has index=\"0\"}}{{#if excerpt}}<p>{{excerpt words=\"30\"}}</p>{{/if}}{{/has}}\n </div>\n </article>\n {{/foreach}}\n </div>\n</section>\n{{/if}}\n{{/get}}\n{{/with}}"
12
+ "content": "{{!-- Styling parameters: class, titleClass, gridClass, cardClass, contentClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!-- Component: Featured Posts | Usage: {{> \"components/featured-posts\"}} --}}\n{{#get \"posts\" filter=\"featured:true\" limit=\"3\" include=\"authors,tags\"}}\n{{#if posts}}\n<section class=\"ghcn-featured{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}} ghcn-container\" aria-label=\"Featured posts\">\n <div class=\"ghcn-featured__heading\">\n <div><span class=\"ghcn-badge\">Featured</span><h2 class=\"ghcn-featured__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">Editor’s picks</h2></div>\n <a href=\"{{@site.url}}\">View all posts <span aria-hidden=\"true\">&rarr;</span></a>\n </div>\n <div class=\"ghcn-featured__grid{{#if ghostcnStyles.gridClass}} {{ghostcnStyles.gridClass}}{{/if}}\">\n {{#foreach posts}}\n <article class=\"ghcn-featured__card{{#if ghostcnStyles.cardClass}} {{ghostcnStyles.cardClass}}{{/if}}{{#has index=\"0\"}} ghcn-featured__card--lead{{/has}}\">\n {{#if feature_image}}\n <a class=\"ghcn-featured__image\" href=\"{{url}}\" tabindex=\"-1\" aria-hidden=\"true\">\n <img src=\"{{img_url feature_image size=\"l\"}}\" alt=\"\" loading=\"{{#has index=\"0\"}}eager{{else}}lazy{{/has}}\" />\n </a>\n {{/if}}\n <div class=\"ghcn-featured__content{{#if ghostcnStyles.contentClass}} {{ghostcnStyles.contentClass}}{{/if}}\">\n <div class=\"ghcn-featured__meta\">{{#if primary_tag}}<a href=\"{{primary_tag.url}}\">{{primary_tag.name}}</a><span aria-hidden=\"true\">&bull;</span>{{/if}}<span>{{reading_time}}</span></div>\n <h3><a href=\"{{url}}\">{{title}}</a></h3>\n {{#has index=\"0\"}}{{#if excerpt}}<p>{{excerpt words=\"30\"}}</p>{{/if}}{{/has}}\n </div>\n </article>\n {{/foreach}}\n </div>\n</section>\n{{/if}}\n{{/get}}\n{{/with}}"
13
13
  },
14
14
  {
15
15
  "name": "featured-posts.css",
16
16
  "type": "style",
17
17
  "target": "assets/css/components/featured-posts.css",
18
- "content": "/* ghostcn: Featured Posts */\n.ghcn-featured { box-sizing: border-box; margin-block: 3em; color: var(--foreground); font-family: inherit; font-size: 16px; line-height: 1.5; isolation: isolate; }\n.ghcn-featured *, .ghcn-featured *::before, .ghcn-featured *::after { box-sizing: border-box; }\n.ghcn-featured__heading { display: flex; align-items: end; justify-content: space-between; gap: 1em; margin-bottom: 1.25em; }\n.ghcn-featured__heading h2 { margin: 0.75em 0 0; font-size: clamp(1.75em,4vw,2.5em); line-height: 1.05; letter-spacing: -0.04em; }\n.ghcn-featured__heading > a { color: var(--muted-foreground); font-size: 0.875em; font-weight: 600; text-decoration: none; }\n.ghcn-featured__grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(15em,1fr); gap: 1em; }\n.ghcn-featured__card { position: relative; min-height: 15em; overflow: hidden; border-radius: min(var(--radius),1.25em); background: var(--muted); }\n.ghcn-featured__card--lead { grid-row: span 2; min-height: 31em; }\n.ghcn-featured__image, .ghcn-featured__image::after { position: absolute; inset: 0; }\n.ghcn-featured__image::after { content: \"\"; background: linear-gradient(to top,rgba(0,0,0,.82),rgba(0,0,0,.02) 70%); }\n.ghcn-featured__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }\n.ghcn-featured__card:hover img { transform: scale(1.025); }\n.ghcn-featured__content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 1.25em; color: #fff; }\n.ghcn-featured__card--lead .ghcn-featured__content { padding: 2em; }\n.ghcn-featured__meta { display: flex; gap: 0.5em; margin-bottom: 0.5em; color: rgba(255,255,255,.78); font-size: 0.75em; }\n.ghcn-featured__meta a, .ghcn-featured h3 a { color: inherit; text-decoration: none; }\n.ghcn-featured h3 { margin: 0; font-size: 1.25em; line-height: 1.15; letter-spacing: -0.025em; }\n.ghcn-featured__card--lead h3 { font-size: clamp(1.75em,4vw,3em); }\n.ghcn-featured__content p { max-width: 42em; margin: 0.75em 0 0; color: rgba(255,255,255,.82); }\n@media (max-width: 720px) { .ghcn-featured__grid { grid-template-columns: 1fr; } .ghcn-featured__card--lead { grid-row: auto; min-height: 25em; } }\n"
18
+ "content": "/* ghostcn: Featured Posts */\n.ghcn-featured { box-sizing: border-box; min-width: 0; margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-featured *, .ghcn-featured *::before, .ghcn-featured *::after { box-sizing: border-box; }\n.ghcn-featured__heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: var(--ghcn-section-gap, 20px); }\n.ghcn-featured__title { font-size: var(--ghcn-title-section, clamp(24px, 3vw, 32px)); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; margin: 8px 0 0; }\n.ghcn-featured__heading > a { color: var(--muted-foreground); font-size: var(--ghcn-text-small, 14px); font-weight: 600; text-decoration: none; }\n.ghcn-featured__grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: var(--ghcn-grid-gap, 16px); }\n.ghcn-featured__card { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); display: flex; flex-direction: column; overflow: hidden; transition: border-color 180ms ease; }\n.ghcn-featured__card:hover { border-color: color-mix(in srgb, var(--foreground) 22%, var(--border)); }\n.ghcn-featured__card--lead { grid-row: span 2; }\n.ghcn-featured__card:only-child { grid-column: 1 / -1; grid-row: auto; }\n.ghcn-featured__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--muted); }\n.ghcn-featured__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }\n.ghcn-featured__card:hover .ghcn-featured__image img { transform: scale(1.02); }\n@media (prefers-reduced-motion: reduce) { .ghcn-featured__card, .ghcn-featured__image img { transition: none; transform: none; } }\n.ghcn-featured__card--lead:not(:only-child) .ghcn-featured__image { flex: 1 1 auto; }\n.ghcn-featured__content { padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px)); }\n.ghcn-featured__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; color: var(--muted-foreground); font-size: var(--ghcn-text-meta, 13px); }\n.ghcn-featured__meta a, .ghcn-featured__content h3 a { color: inherit; text-decoration: none; }\n.ghcn-featured a:hover { text-decoration: underline; text-underline-offset: 3px; }\n.ghcn-featured__content h3 { font-size: var(--ghcn-title-card, 20px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: inherit; margin: 0; }\n.ghcn-featured__card--lead h3 { font-size: var(--ghcn-title-section, clamp(24px, 3vw, 32px)); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }\n.ghcn-featured__content p { max-width: 60ch; margin: 8px 0 0; color: var(--muted-foreground); font-size: var(--ghcn-text-small, 14px); }\n.ghcn-featured:focus-visible, :where(.ghcn-featured) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-featured__image:focus-visible { outline-offset: -3px; }\n@media (max-width: 720px) { .ghcn-featured__grid { grid-template-columns: 1fr; } .ghcn-featured__card--lead { grid-row: auto; } }\n"
19
19
  }
20
20
  ],
21
21
  "gscan": {
@@ -38,6 +38,9 @@
38
38
  ],
39
39
  "default": "text"
40
40
  },
41
+ "id": {
42
+ "description": "Optional unique input ID."
43
+ },
41
44
  "name": {
42
45
  "description": "Form field name."
43
46
  },
@@ -47,6 +50,9 @@
47
50
  "placeholder": {
48
51
  "description": "Optional placeholder (not a label)."
49
52
  },
53
+ "autocomplete": {
54
+ "description": "Optional HTML autocomplete token (for example: email)."
55
+ },
50
56
  "hint": {
51
57
  "description": "Optional help text."
52
58
  },
@@ -68,13 +74,13 @@
68
74
  "name": "input.hbs",
69
75
  "type": "partial",
70
76
  "target": "partials/components/input.hbs",
71
- "content": "{{!-- Styling parameters: class, labelClass, inputClass, descriptionClass --}}\n{{#with this as |ghostcnStyles|}}\n<div class=\"ghcn-ui-field{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"filled\"}}filled{{else}}default{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\">\n <label class=\"ghcn-ui-field__label\"><span class=\"ghcn-ui-field__label-text{{#if ghostcnStyles.labelClass}} {{ghostcnStyles.labelClass}}{{/if}}\">{{#if label}}{{label}}{{else}}Input{{/if}}{{#if required}} (required){{/if}}</span>\n <input class=\"ghcn-ui-field__input{{#if ghostcnStyles.inputClass}} {{ghostcnStyles.inputClass}}{{/if}}\" type=\"{{#match type \"email\"}}email{{else}}{{#match type \"search\"}}search{{else}}{{#match type \"url\"}}url{{else}}{{#match type \"number\"}}number{{else}}{{#match type \"password\"}}password{{else}}text{{/match}}{{/match}}{{/match}}{{/match}}{{/match}}\" {{#if name}}name=\"{{name}}\"{{/if}} value=\"{{value}}\" placeholder=\"{{placeholder}}\" {{#if required}}required{{/if}} {{#if disabled}}disabled{{/if}} {{#if invalid}}aria-invalid=\"true\"{{/if}} {{#if hintId}}aria-describedby=\"{{hintId}}\"{{/if}} />\n </label>\n {{#if hint}}<p class=\"ghcn-ui-field__hint{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\" {{#if hintId}}id=\"{{hintId}}\"{{/if}}>{{hint}}</p>{{/if}}\n</div>\n{{/with}}"
77
+ "content": "{{!-- Styling parameters: class, labelClass, inputClass, descriptionClass --}}\n{{#with this as |ghostcnStyles|}}\n<div class=\"ghcn-ui-field{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"filled\"}}filled{{else}}default{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\">\n <label class=\"ghcn-ui-field__label\"><span class=\"ghcn-ui-field__label-text{{#if ghostcnStyles.labelClass}} {{ghostcnStyles.labelClass}}{{/if}}\">{{#if label}}{{label}}{{else}}Input{{/if}}{{#if required}} (required){{/if}}</span>\n <input class=\"ghcn-ui-field__input{{#if ghostcnStyles.inputClass}} {{ghostcnStyles.inputClass}}{{/if}}\" type=\"{{#match type \"email\"}}email{{else}}{{#match type \"search\"}}search{{else}}{{#match type \"url\"}}url{{else}}{{#match type \"number\"}}number{{else}}{{#match type \"password\"}}password{{else}}text{{/match}}{{/match}}{{/match}}{{/match}}{{/match}}\"{{#if id}} id=\"{{id}}\"{{/if}}{{#if name}} name=\"{{name}}\"{{/if}}{{#if value}} value=\"{{value}}\"{{/if}}{{#if placeholder}} placeholder=\"{{placeholder}}\"{{/if}}{{#if autocomplete}} autocomplete=\"{{autocomplete}}\"{{/if}}{{#if required}} required{{/if}}{{#if disabled}} disabled{{/if}}{{#if invalid}} aria-invalid=\"true\"{{/if}}{{#if hint}}{{#if hintId}} aria-describedby=\"{{hintId}}\"{{/if}}{{/if}} />\n </label>\n {{#if hint}}<p class=\"ghcn-ui-field__hint{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\"{{#if hintId}} id=\"{{hintId}}\"{{/if}}>{{hint}}</p>{{/if}}\n</div>\n{{/with}}"
72
78
  },
73
79
  {
74
80
  "name": "input.css",
75
81
  "type": "style",
76
82
  "target": "assets/css/components/input.css",
77
- "content": ".ghcn-ui-field { box-sizing: border-box; font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-field, .ghcn-ui-field * { box-sizing: border-box; }\n.ghcn-ui-field:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-field:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-field:focus-visible, .ghcn-ui-field :focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }\n.ghcn-ui-field { width: 100%; }\n.ghcn-ui-field__label { display: grid; gap: .375em; font-weight: 500; }\n.ghcn-ui-field__input { width: 100%; min-width: 0; min-height: 2.5em; padding: .5em .75em; border: 1px solid var(--input); border-radius: var(--radius); background: var(--background); color: var(--foreground); font: inherit; }\n:where(.ghcn-ui-field[data-variant=\"filled\"]) .ghcn-ui-field__input { background: var(--muted); }\n.ghcn-ui-field__input::placeholder { color: var(--muted-foreground); }\n.ghcn-ui-field__input[aria-invalid=\"true\"] { border-color: var(--destructive); }\n.ghcn-ui-field__input:disabled { opacity: .5; cursor: not-allowed; }\n.ghcn-ui-field__hint { color: var(--muted-foreground); font-size: .875em; margin: .5em 0 0; }\n"
83
+ "content": ".ghcn-ui-field { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-field, .ghcn-ui-field * { box-sizing: border-box; }\n.ghcn-ui-field:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-field:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-field:focus-visible, :where(.ghcn-ui-field) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-field { width: 100%; }\n.ghcn-ui-field__label { display: grid; gap: .375em; font-weight: 500; }\n.ghcn-ui-field__input { min-height: var(--ghcn-control-height, 40px); padding: var(--ghcn-control-padding, 8px 14px); border-radius: var(--ghcn-control-radius, var(--radius, 8px)); font-size: var(--ghcn-text-small, 14px); line-height: 1.25; width: 100%; min-width: 0; border: 1px solid var(--input); background: var(--background); color: var(--foreground); font-family: inherit; transition: border-color 150ms ease, background-color 150ms ease; }\n:where(.ghcn-ui-field[data-size=\"sm\"]) .ghcn-ui-field__input { min-height: 34px; padding: 5px 11px; font-size: 13px; }\n:where(.ghcn-ui-field[data-size=\"lg\"]) .ghcn-ui-field__input { min-height: 46px; padding: 10px 17px; font-size: 16px; }\n:where(.ghcn-ui-field[data-variant=\"filled\"]) .ghcn-ui-field__input { background: var(--muted); }\n.ghcn-ui-field__input::placeholder { color: var(--muted-foreground); }\n.ghcn-ui-field__input[aria-invalid=\"true\"] { border-color: var(--destructive); }\n.ghcn-ui-field__input:disabled { opacity: .5; cursor: not-allowed; }\n.ghcn-ui-field__hint { color: var(--muted-foreground); font-size: .875em; margin: .5em 0 0; }\n@media (prefers-reduced-motion: reduce) { .ghcn-ui-field__input { transition: none; } }\n"
78
84
  }
79
85
  ],
80
86
  "styleSlots": {
@@ -15,7 +15,7 @@
15
15
  "name": "member-cta.css",
16
16
  "type": "style",
17
17
  "target": "assets/css/components/member-cta.css",
18
- "content": "/* ghostcn: Member CTA */\n.ghcn-member-cta { box-sizing: border-box; max-width: 44em; margin: 3em auto; overflow: hidden; border: 1px solid var(--border); border-radius: min(var(--radius),1.25em); padding: clamp(1.5em,5vw,3em); color: var(--card-foreground); background: radial-gradient(circle at top right,color-mix(in srgb,var(--primary) 18%,transparent),transparent 48%),var(--card); text-align: center; font-family: inherit; font-size: 16px; line-height: 1.5; isolation: isolate; }\n.ghcn-member-cta *, .ghcn-member-cta *::before, .ghcn-member-cta *::after { box-sizing: border-box; }\n.ghcn-member-cta h2 { margin: 1em 0 0.625em; color: var(--foreground); font-size: clamp(1.5em,4vw,2.25em); line-height: 1.1; letter-spacing: -0.035em; }\n.ghcn-member-cta p { max-width: 34em; margin: 0 auto 1.5em; color: var(--muted-foreground); }\n.ghcn-member-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75em; }\n"
18
+ "content": "/* ghostcn: Member CTA */\n.ghcn-member-cta { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; width: min(100% - 32px, 704px); margin-inline: auto; padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px)); text-align: center; }\n.ghcn-member-cta *, .ghcn-member-cta *::before, .ghcn-member-cta *::after { box-sizing: border-box; }\n.ghcn-member-cta__title { font-size: var(--ghcn-title-section, clamp(24px, 3vw, 32px)); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; margin: 12px 0 8px; color: inherit; }\n.ghcn-member-cta__description { max-width: 60ch; margin: 0 auto 16px; color: var(--muted-foreground); font-size: var(--ghcn-text-small, 14px); }\n.ghcn-member-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }\n"
19
19
  }
20
20
  ],
21
21
  "gscan": {
@@ -1,21 +1,30 @@
1
1
  {
2
2
  "name": "newsletter-form",
3
- "type": "components:ui",
3
+ "type": "components:members",
4
4
  "description": "A native Ghost members subscription form with state handling.",
5
5
  "dependencies": [],
6
6
  "ghost_version": ">=5.0.0",
7
+ "parameters": {
8
+ "title": {
9
+ "description": "Optional heading override.",
10
+ "default": "Subscribe to our newsletter"
11
+ },
12
+ "description": {
13
+ "description": "Optional introductory text override."
14
+ }
15
+ },
7
16
  "files": [
8
17
  {
9
18
  "name": "newsletter-form.hbs",
10
19
  "type": "partial",
11
20
  "target": "partials/components/newsletter-form.hbs",
12
- "content": "{{!-- Styling parameters: class, titleClass, descriptionClass, formClass, inputClass, buttonClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!--\n Component: Newsletter Form\n Usage: {{> \"components/newsletter-form\" title=\"Subscribe to our newsletter\" description=\"Get the latest posts delivered right to your inbox.\"}}\n--}}\n{{#if @site.members_enabled}}\n{{#unless @site.members_invite_only}}\n{{#if @site.allow_self_signup}}\n{{#unless @member}}\n<section class=\"gh-newsletter-form{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\">\n <div class=\"gh-newsletter-heading\">\n <h3 class=\"gh-newsletter-title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">\n {{#if title}}{{title}}{{else}}Subscribe to our newsletter{{/if}}\n </h3>\n <p class=\"gh-newsletter-desc{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\">\n {{#if description}}{{description}}{{else}}Get the latest stories, news, and perspectives delivered directly to your inbox.{{/if}}\n </p>\n </div>\n\n {{!-- Ghost native members form handling --}}\n {{#if @site.portal_signup_checkbox_required}}\n <a class=\"ghcn-button{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}}\" href=\"#/portal/signup\" data-portal=\"signup\">Subscribe</a>\n {{else}}\n <form data-members-form=\"subscribe\" class=\"gh-newsletter-fields{{#if ghostcnStyles.formClass}} {{ghostcnStyles.formClass}}{{/if}}\">\n <input\n data-members-email\n type=\"email\"\n aria-label=\"Email address\"\n autocomplete=\"email\"\n required\n placeholder=\"jamie@example.com\"\n class=\"gh-newsletter-input{{#if ghostcnStyles.inputClass}} {{ghostcnStyles.inputClass}}{{/if}}\"\n />\n <button type=\"submit\" class=\"gh-newsletter-btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}}\">\n <span class=\"button-text\">Subscribe</span>\n </button>\n\n {{!-- Ghost automatic states (hidden by default, shown via Ghost Portal JS) --}}\n <div class=\"gh-newsletter-msg-success message-success\" role=\"status\" data-members-success>\n ✓ Check your inbox to confirm your subscription!\n </div>\n <div class=\"gh-newsletter-msg-error message-error\" role=\"alert\" data-members-error>\n ✕ Please enter a valid email address.\n </div>\n </form>\n {{/if}}\n</section>\n{{/unless}}\n{{/if}}\n{{/unless}}\n{{/if}}\n{{/with}}"
21
+ "content": "{{!-- Styling parameters: class, titleClass, descriptionClass, formClass, inputClass, buttonClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!--\n Component: Newsletter Form\n Usage: {{> \"components/newsletter-form\" title=\"Subscribe to our newsletter\" description=\"Get the latest posts delivered right to your inbox.\"}}\n--}}\n{{#if @site.members_enabled}}\n{{#unless @site.members_invite_only}}\n{{#if @site.allow_self_signup}}\n{{#unless @member}}\n<section class=\"gh-newsletter-form{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\">\n <div class=\"gh-newsletter-heading\">\n <h3 class=\"gh-newsletter-title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">\n {{#if title}}{{title}}{{else}}Subscribe to our newsletter{{/if}}\n </h3>\n <p class=\"gh-newsletter-desc{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\">\n {{#if description}}{{description}}{{else}}Get the latest stories, news, and perspectives delivered directly to your inbox.{{/if}}\n </p>\n </div>\n\n {{!-- Ghost native members form handling --}}\n {{#if @site.portal_signup_checkbox_required}}\n <a class=\"ghcn-button{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}}\" href=\"#/portal/signup\" data-portal=\"signup\">Subscribe</a>\n {{else}}\n <form data-members-form=\"subscribe\" class=\"gh-newsletter-fields{{#if ghostcnStyles.formClass}} {{ghostcnStyles.formClass}}{{/if}}\">\n <input\n data-members-email\n type=\"email\"\n aria-label=\"Email address\"\n autocomplete=\"email\"\n required\n placeholder=\"jamie@example.com\"\n class=\"gh-newsletter-input{{#if ghostcnStyles.inputClass}} {{ghostcnStyles.inputClass}}{{/if}}\"\n />\n <button type=\"submit\" class=\"gh-newsletter-btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}}\">\n <span class=\"button-text\">Subscribe</span>\n </button>\n\n {{!-- Ghost automatic states (hidden by default, shown via Ghost Portal JS) --}}\n <div class=\"gh-newsletter-msg-success message-success\" role=\"status\" data-members-success>\n <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" width=\"14\" height=\"14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 8.5 6.5 12 13 4\"/></svg>\n <span>Check your inbox to confirm your subscription!</span>\n </div>\n <div class=\"gh-newsletter-msg-error message-error\" role=\"alert\" data-members-error>\n <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" width=\"14\" height=\"14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 4l8 8M12 4l-8 8\"/></svg>\n <span>Please enter a valid email address.</span>\n </div>\n </form>\n {{/if}}\n</section>\n{{/unless}}\n{{/if}}\n{{/unless}}\n{{/if}}\n{{/with}}"
13
22
  },
14
23
  {
15
24
  "name": "newsletter-form.css",
16
25
  "type": "style",
17
26
  "target": "assets/css/components/newsletter-form.css",
18
- "content": "/* ghostcn: Newsletter Form Styles */\n.gh-newsletter-form {\n box-sizing: border-box;\n font-family: inherit;\n font-size: 16px;\n line-height: 1.5;\n isolation: isolate;\n background-color: var(--card, #ffffff);\n color: var(--card-foreground, #09090b);\n border: 1px solid var(--border, #e4e4e7);\n border-radius: min(var(--radius, 0.5em), 1.5em);\n padding: 2em;\n text-align: center;\n max-width: 42em;\n margin: 2em auto;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n}\n\n.gh-newsletter-form *,\n.gh-newsletter-form *::before,\n.gh-newsletter-form *::after {\n box-sizing: border-box;\n}\n\n.gh-newsletter-heading { margin-bottom: 1.5em; }\n\n.gh-newsletter-title {\n font-size: 1.5em;\n font-weight: 700;\n letter-spacing: -0.025em;\n margin-bottom: 0.5em;\n color: var(--foreground, #09090b);\n}\n\n.gh-newsletter-desc {\n color: var(--muted-foreground, #71717a);\n font-size: 0.875em;\n line-height: 1.5;\n margin: 0 auto 1.5em;\n max-width: 28em;\n}\n\n.gh-newsletter-fields {\n display: flex;\n flex-direction: column;\n gap: 0.75em;\n max-width: 28em;\n margin: 0 auto;\n position: relative;\n}\n\n@media (min-width: 640px) {\n .gh-newsletter-fields {\n flex-direction: row;\n }\n}\n\n.gh-newsletter-input {\n flex: 1;\n padding: 0.625em 1em;\n background-color: var(--background, #ffffff);\n color: var(--foreground, #09090b);\n border: 1px solid var(--input, #e4e4e7);\n border-radius: var(--radius, 0.5em);\n font-size: 0.875em;\n outline: none;\n transition: box-shadow 0.15s ease, border-color 0.15s ease;\n}\n\n.gh-newsletter-input:focus {\n border-color: var(--ring, #18181b);\n box-shadow: 0 0 0 2px var(--ring, #18181b);\n}\n\n.gh-newsletter-btn {\n background-color: var(--primary, var(--ghost-accent-color, #18181b));\n color: var(--primary-foreground, #ffffff);\n padding: 0.625em 1.5em;\n border-radius: var(--radius, 0.5em);\n font-size: 0.875em;\n font-weight: 500;\n border: none;\n cursor: pointer;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n transition: opacity 0.15s ease;\n}\n\n.gh-newsletter-btn:hover {\n opacity: 0.9;\n}\n\n.gh-newsletter-msg-success,\n.gh-newsletter-msg-error {\n display: none;\n position: absolute;\n bottom: -1.75em;\n left: 0;\n right: 0;\n font-size: 0.75em;\n font-weight: 500;\n}\n\n.gh-newsletter-fields.success .gh-newsletter-msg-success,\n.gh-newsletter-fields.error .gh-newsletter-msg-error {\n display: block;\n}\n\n.gh-newsletter-form .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n.gh-newsletter-msg-success {\n color: #16a34a;\n}\n\n.gh-newsletter-msg-error {\n color: #dc2626;\n}\n"
27
+ "content": "/* ghostcn: Newsletter Form Styles */\n.gh-newsletter-form {\n box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b);\n margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px));\n font-family: inherit;\n font-size: var(--ghcn-text-body, 16px);\n line-height: 1.5;\n padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px));\n text-align: center;\n width: min(100% - 32px, 704px);\n margin-inline: auto;\n}\n\n.gh-newsletter-form *,\n.gh-newsletter-form *::before,\n.gh-newsletter-form *::after {\n box-sizing: border-box;\n}\n\n.gh-newsletter-heading { margin-bottom: 16px; }\n\n.gh-newsletter-title {\n font-size: var(--ghcn-title-section, clamp(24px, 3vw, 32px)); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance;\n margin: 0 0 8px;\n color: inherit;\n}\n\n.gh-newsletter-desc {\n color: var(--muted-foreground, #71717a);\n font-size: var(--ghcn-text-small, 14px);\n line-height: 1.5;\n margin: 0 auto;\n max-width: 448px;\n}\n\n.gh-newsletter-fields {\n display: grid;\n gap: var(--ghcn-control-gap, 8px);\n max-width: 448px;\n margin: 0 auto;\n position: relative;\n}\n\n@media (min-width: 640px) {\n .gh-newsletter-fields {\n grid-template-columns: minmax(0, 1fr) auto;\n }\n}\n\n.gh-newsletter-input {\n min-width: 0;\n min-height: var(--ghcn-control-height, 40px);\n padding: var(--ghcn-control-padding, 8px 14px);\n background-color: var(--background, #ffffff);\n color: var(--foreground, #09090b);\n border: 1px solid var(--input, #e4e4e7);\n border-radius: var(--ghcn-control-radius, var(--radius, 8px));\n font-family: inherit;\n font-size: var(--ghcn-text-small, 14px);\n line-height: 1.25;\n}\n\n.gh-newsletter-form:focus-visible, :where(.gh-newsletter-form) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n\n.gh-newsletter-btn {\n background-color: var(--primary, var(--ghost-accent-color, #18181b));\n color: var(--primary-foreground, #ffffff);\n min-height: var(--ghcn-control-height, 40px);\n padding: var(--ghcn-control-padding, 8px 14px);\n border-radius: var(--ghcn-control-radius, var(--radius, 8px));\n font-family: inherit;\n font-size: var(--ghcn-text-small, 14px);\n font-weight: 600;\n line-height: 1.25;\n border: 1px solid transparent;\n cursor: pointer;\n transition: opacity 0.15s ease;\n}\n\n.gh-newsletter-btn:hover {\n opacity: 0.9;\n}\n\n.gh-newsletter-msg-success,\n.gh-newsletter-msg-error {\n display: none;\n grid-column: 1 / -1;\n font-size: 12px;\n font-weight: 500;\n}\n\n.gh-newsletter-fields.success .gh-newsletter-msg-success,\n.gh-newsletter-fields.error .gh-newsletter-msg-error {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 6px;\n}\n\n.gh-newsletter-form .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n.gh-newsletter-msg-success {\n color: var(--success, #15803d);\n}\n\n.gh-newsletter-msg-error {\n color: var(--destructive, #dc2626);\n}\n"
19
28
  }
20
29
  ],
21
30
  "gscan": {
@@ -10,13 +10,13 @@
10
10
  "type": "partial",
11
11
  "target": "partials/pagination.hbs",
12
12
  "placement": "theme",
13
- "content": "{{!-- Styling parameters: class, buttonClass, statusClass --}}\n{{#with this as |ghostcnStyles|}}\n<nav class=\"ghcn-pagination{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" role=\"navigation\" aria-label=\"Pagination\">\n <div class=\"ghcn-pagination__side\">{{#if prev}}<a class=\"ghcn-button{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-button--outline\" href=\"{{page_url prev}}\" rel=\"prev\"><span aria-hidden=\"true\">&larr;</span> Newer</a>{{/if}}</div>\n <span class=\"ghcn-pagination__status{{#if ghostcnStyles.statusClass}} {{ghostcnStyles.statusClass}}{{/if}}\">Page <strong>{{page}}</strong> of <strong>{{pages}}</strong></span>\n <div class=\"ghcn-pagination__side ghcn-pagination__side--end\">{{#if next}}<a class=\"ghcn-button{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-button--outline\" href=\"{{page_url next}}\" rel=\"next\">Older <span aria-hidden=\"true\">&rarr;</span></a>{{/if}}</div>\n</nav>\n{{/with}}"
13
+ "content": "{{!-- Styling parameters: class, buttonClass, statusClass --}}\n{{#with this as |ghostcnStyles|}}\n<nav class=\"ghcn-pagination{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" aria-label=\"Pagination\">\n <div class=\"ghcn-pagination__side\">{{#if prev}}<a class=\"ghcn-button{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-button--outline\" href=\"{{page_url prev}}\" rel=\"prev\"><span aria-hidden=\"true\">&larr;</span> Newer</a>{{/if}}</div>\n <span class=\"ghcn-pagination__status{{#if ghostcnStyles.statusClass}} {{ghostcnStyles.statusClass}}{{/if}}\">Page <strong>{{page}}</strong> of <strong>{{pages}}</strong></span>\n <div class=\"ghcn-pagination__side ghcn-pagination__side--end\">{{#if next}}<a class=\"ghcn-button{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-button--outline\" href=\"{{page_url next}}\" rel=\"next\">Older <span aria-hidden=\"true\">&rarr;</span></a>{{/if}}</div>\n</nav>\n{{/with}}"
14
14
  },
15
15
  {
16
16
  "name": "pagination.css",
17
17
  "type": "style",
18
18
  "target": "assets/css/components/pagination.css",
19
- "content": "/* ghostcn: Pagination */\n.ghcn-pagination { box-sizing: border-box; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em; width: min(100% - 2em,72em); margin: 3em auto; color: var(--foreground); font-family: inherit; font-size: 16px; line-height: 1.5; isolation: isolate; }\n.ghcn-pagination *, .ghcn-pagination *::before, .ghcn-pagination *::after { box-sizing: border-box; }\n.ghcn-pagination__side { display: flex; }\n.ghcn-pagination__side--end { justify-content: flex-end; }\n.ghcn-pagination__status { color: var(--muted-foreground); font-size: 0.8125em; }\n@media (max-width: 480px) { .ghcn-pagination { grid-template-columns: 1fr 1fr; } .ghcn-pagination__status { grid-column: 1 / -1; grid-row: 1; text-align: center; } }\n"
19
+ "content": "/* ghostcn: Pagination */\n.ghcn-pagination { box-sizing: border-box; min-width: 0; margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); width: min(100% - 32px, 1152px); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--ghcn-grid-gap, 16px); }\n.ghcn-pagination *, .ghcn-pagination *::before, .ghcn-pagination *::after { box-sizing: border-box; }\n.ghcn-pagination__side { display: flex; }\n.ghcn-pagination__side--end { justify-content: flex-end; }\n.ghcn-pagination__status { color: var(--muted-foreground); font-size: 13px; }\n@media (max-width: 480px) { .ghcn-pagination { grid-template-columns: 1fr 1fr; } .ghcn-pagination__status { grid-column: 1 / -1; grid-row: 1; text-align: center; } }\n"
20
20
  }
21
21
  ],
22
22
  "gscan": {
@@ -9,13 +9,13 @@
9
9
  "name": "post-card.hbs",
10
10
  "type": "partial",
11
11
  "target": "partials/components/post-card.hbs",
12
- "content": "{{!-- Styling parameters: class, imageClass, contentClass, titleClass, descriptionClass, metaClass, footerClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!--\n Component: Post Card\n Usage: Inside {{#foreach posts}} ... {{> \"components/post-card\"}} ... {{/foreach}}\n--}}\n<article class=\"gh-post-card{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}} group\">\n {{#if feature_image}}\n <a href=\"{{url}}\" class=\"gh-post-card-image\">\n <img src=\"{{img_url feature_image size=\"m\"}}\" alt=\"{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}\" class=\"gh-post-card-img{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" loading=\"lazy\" />\n </a>\n {{/if}}\n\n <div class=\"gh-post-card-content{{#if ghostcnStyles.contentClass}} {{ghostcnStyles.contentClass}}{{/if}}\">\n <div>\n <div class=\"gh-post-card-meta{{#if ghostcnStyles.metaClass}} {{ghostcnStyles.metaClass}}{{/if}}\">\n {{#if primary_tag}}\n <a href=\"{{primary_tag.url}}\" class=\"gh-post-card-tag\">{{primary_tag.name}}</a>\n <span class=\"gh-post-card-separator\">&bull;</span>\n {{/if}}\n <span class=\"gh-post-card-reading-time\">{{reading_time}}</span>\n </div>\n\n <h3 class=\"gh-post-card-title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">\n <a href=\"{{url}}\">{{title}}</a>\n </h3>\n\n {{#if excerpt}}\n <p class=\"gh-post-card-excerpt{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\">{{excerpt words=\"25\"}}</p>\n {{/if}}\n </div>\n\n <div class=\"gh-post-card-footer{{#if ghostcnStyles.footerClass}} {{ghostcnStyles.footerClass}}{{/if}}\">\n <div class=\"gh-post-card-author\">\n {{#primary_author}}\n <span>{{name}}</span>\n {{/primary_author}}\n </div>\n <time datetime=\"{{date format=\"YYYY-MM-DD\"}}\">{{date format=\"D MMM YYYY\"}}</time>\n </div>\n </div>\n</article>\n{{/with}}"
12
+ "content": "{{!-- Styling parameters: class, imageClass, contentClass, titleClass, descriptionClass, metaClass, footerClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!--\n Component: Post Card\n Usage: Inside {{#foreach posts}} ... {{> \"components/post-card\"}} ... {{/foreach}}\n--}}\n<article class=\"gh-post-card{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}} group\">\n {{#if feature_image}}\n <a href=\"{{url}}\" class=\"gh-post-card-image\" tabindex=\"-1\" aria-hidden=\"true\">\n <img src=\"{{img_url feature_image size=\"m\"}}\" alt=\"\" class=\"gh-post-card-img{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" loading=\"lazy\" />\n </a>\n {{/if}}\n\n <div class=\"gh-post-card-content{{#if ghostcnStyles.contentClass}} {{ghostcnStyles.contentClass}}{{/if}}\">\n <div>\n <div class=\"gh-post-card-meta{{#if ghostcnStyles.metaClass}} {{ghostcnStyles.metaClass}}{{/if}}\">\n {{#if primary_tag}}\n <a href=\"{{primary_tag.url}}\" class=\"gh-post-card-tag\">{{primary_tag.name}}</a>\n <span class=\"gh-post-card-separator\" aria-hidden=\"true\">&bull;</span>\n {{/if}}\n <span class=\"gh-post-card-reading-time\">{{reading_time}}</span>\n </div>\n\n <h3 class=\"gh-post-card-title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">\n <a href=\"{{url}}\">{{title}}</a>\n </h3>\n\n {{#if excerpt}}\n <p class=\"gh-post-card-excerpt{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\">{{excerpt words=\"25\"}}</p>\n {{/if}}\n </div>\n\n <div class=\"gh-post-card-footer{{#if ghostcnStyles.footerClass}} {{ghostcnStyles.footerClass}}{{/if}}\">\n <div class=\"gh-post-card-author\">\n {{#primary_author}}\n <span>{{name}}</span>\n {{/primary_author}}\n </div>\n <time datetime=\"{{date format=\"YYYY-MM-DD\"}}\">{{date format=\"D MMM YYYY\"}}</time>\n </div>\n </div>\n</article>\n{{/with}}"
13
13
  },
14
14
  {
15
15
  "name": "post-card.css",
16
16
  "type": "style",
17
17
  "target": "assets/css/components/post-card.css",
18
- "content": "/* ghostcn: Post Card Styles */\n.gh-post-card {\n box-sizing: border-box;\n font-family: inherit;\n font-size: 16px;\n line-height: 1.5;\n isolation: isolate;\n background-color: var(--card, #ffffff);\n color: var(--card-foreground, #09090b);\n border: 1px solid var(--border, #e4e4e7);\n border-radius: min(var(--radius, 0.5em), 1.5em);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n transition: transform 0.2s ease, box-shadow 0.2s ease;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);\n}\n\n.gh-post-card *,\n.gh-post-card *::before,\n.gh-post-card *::after {\n box-sizing: border-box;\n}\n\n.gh-post-card:hover {\n transform: translateY(-2px);\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);\n}\n\n.gh-post-card-image {\n aspect-ratio: 16 / 9;\n overflow: hidden;\n display: block;\n background-color: var(--muted, #f4f4f5);\n}\n\n.gh-post-card-image img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 0.3s ease;\n}\n\n.gh-post-card:hover .gh-post-card-image img {\n transform: scale(1.03);\n}\n\n.gh-post-card-content {\n padding: 1.25em;\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.gh-post-card-tag {\n color: var(--primary, var(--ghost-accent-color, #18181b));\n font-size: 0.75em;\n font-weight: 600;\n text-decoration: none;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n\n.gh-post-card-tag:hover {\n text-decoration: underline;\n}\n\n.gh-post-card-title {\n font-size: 1.25em;\n font-weight: 700;\n letter-spacing: -0.025em;\n margin: 0.5em 0;\n line-height: 1.35;\n color: var(--foreground, #09090b);\n}\n\n.gh-post-card-title a {\n color: inherit;\n text-decoration: none;\n transition: color 0.15s ease;\n}\n\n.gh-post-card-title:hover {\n color: var(--primary, var(--ghost-accent-color, #18181b));\n}\n\n.gh-post-card-excerpt {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n color: var(--muted-foreground, #71717a);\n font-size: 0.875em;\n line-height: 1.5;\n margin-bottom: 1em;\n}\n\n.gh-post-card-footer {\n padding-top: 1em;\n border-top: 1px solid var(--border, #e4e4e7);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 0.75em;\n color: var(--muted-foreground, #71717a);\n}\n\n.gh-post-card-meta { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.5em; font-size: 0.75em; font-weight: 600; }\n.gh-post-card-reading-time { color: var(--muted-foreground); }\n.gh-post-card-separator { color: color-mix(in srgb, var(--muted-foreground) 40%, transparent); }\n.gh-post-card-author { display: flex; align-items: center; gap: 0.5em; font-weight: 500; }\n"
18
+ "content": "/* ghostcn: Post Card Styles */\n.gh-post-card {\n box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b);\n font-family: inherit;\n font-size: var(--ghcn-text-body, 16px);\n line-height: 1.5;\n isolation: isolate;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n transition: border-color 180ms ease;\n}\n\n.gh-post-card:hover {\n border-color: color-mix(in srgb, var(--foreground) 22%, var(--border));\n}\n\n.gh-post-card *,\n.gh-post-card *::before,\n.gh-post-card *::after {\n box-sizing: border-box;\n}\n\n.gh-post-card-image {\n aspect-ratio: 16 / 9;\n overflow: hidden;\n display: block;\n background-color: var(--muted, #f4f4f5);\n}\n\n.gh-post-card-image img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n transition: transform 300ms ease;\n}\n\n.gh-post-card:hover .gh-post-card-image img {\n transform: scale(1.02);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .gh-post-card, .gh-post-card-image img { transition: none; transform: none; }\n}\n\n.gh-post-card-content {\n padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px));\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.gh-post-card-tag {\n color: inherit;\n font-size: inherit;\n font-weight: 600;\n text-decoration: none;\n}\n\n.gh-post-card-tag:hover {\n text-decoration: underline;\n}\n\n.gh-post-card-title {\n font-size: var(--ghcn-title-card, 20px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: inherit;\n margin: 8px 0;\n}\n\n.gh-post-card-title a {\n color: inherit;\n text-decoration: none;\n transition: color 0.15s ease;\n}\n\n.gh-post-card-title a:hover {\n text-decoration: underline;\n text-underline-offset: 3px;\n}\n\n.gh-post-card-excerpt {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n color: var(--muted-foreground, #71717a);\n font-size: var(--ghcn-text-small, 14px);\n line-height: 1.5;\n margin: 0 0 16px;\n}\n\n.gh-post-card-footer {\n padding-top: 16px;\n border-top: 1px solid var(--border, #e4e4e7);\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 4px 12px;\n font-size: var(--ghcn-text-meta, 13px);\n color: var(--muted-foreground, #71717a);\n}\n\n.gh-post-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; color: var(--muted-foreground); font-size: var(--ghcn-text-meta, 13px); }\n.gh-post-card-reading-time { color: var(--muted-foreground); }\n.gh-post-card-separator { color: color-mix(in srgb, var(--muted-foreground) 40%, transparent); }\n.gh-post-card-author { display: flex; align-items: center; gap: 8px; font-weight: 500; }\n.gh-post-card:focus-visible, :where(.gh-post-card) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.gh-post-card-image:focus-visible { outline-offset: -3px; }\n"
19
19
  }
20
20
  ],
21
21
  "gscan": {
@@ -19,13 +19,13 @@
19
19
  "name": "post-grid.hbs",
20
20
  "type": "partial",
21
21
  "target": "partials/components/post-grid.hbs",
22
- "content": "{{!-- Styling parameters: class, titleClass, gridClass --}}\n{{#with this as |ghostcnStyles|}}\n{{#if posts}}\n<section class=\"ghcn-post-grid{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" aria-label=\"Posts\">\n {{#if heading}}<h2 class=\"ghcn-post-grid__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{heading}}</h2>{{/if}}\n <div class=\"ghcn-post-grid__grid{{#if ghostcnStyles.gridClass}} {{ghostcnStyles.gridClass}}{{/if}}\">{{#foreach posts}}\n {{> \"components/post-card\" class=ghostcnStyles.cardClass titleClass=ghostcnStyles.cardTitleClass imageClass=ghostcnStyles.imageClass descriptionClass=ghostcnStyles.descriptionClass}}\n {{/foreach}}</div>\n</section>\n{{else}}{{#if emptyText}}<section class=\"ghcn-post-grid{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\"><p class=\"ghcn-post-grid__empty\">{{emptyText}}</p></section>{{/if}}{{/if}}\n{{/with}}"
22
+ "content": "{{!-- Styling parameters: class, titleClass, gridClass, cardClass, cardTitleClass, imageClass, descriptionClass --}}\n{{#with this as |ghostcnStyles|}}\n{{#if posts}}\n<section class=\"ghcn-post-grid{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" aria-label=\"Posts\">\n {{#if heading}}<h2 class=\"ghcn-post-grid__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{heading}}</h2>{{/if}}\n <div class=\"ghcn-post-grid__grid{{#if ghostcnStyles.gridClass}} {{ghostcnStyles.gridClass}}{{/if}}\">{{#foreach posts}}\n {{> \"components/post-card\" class=ghostcnStyles.cardClass titleClass=ghostcnStyles.cardTitleClass imageClass=ghostcnStyles.imageClass descriptionClass=ghostcnStyles.descriptionClass}}\n {{/foreach}}</div>\n</section>\n{{else}}{{#if emptyText}}<section class=\"ghcn-post-grid{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\"><p class=\"ghcn-post-grid__empty\">{{emptyText}}</p></section>{{/if}}{{/if}}\n{{/with}}"
23
23
  },
24
24
  {
25
25
  "name": "post-grid.css",
26
26
  "type": "style",
27
27
  "target": "assets/css/components/post-grid.css",
28
- "content": ".ghcn-post-grid { font-size: 16px; color: var(--foreground); margin-block: 2em; }\n.ghcn-post-grid__title { font-size: 1.5em; line-height: 1.25; margin: 0 0 1em; }\n.ghcn-post-grid__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5em; }\n.ghcn-post-grid__grid > * { min-width: 0; }\n.ghcn-post-grid__empty { color: var(--muted-foreground); }\n@media(max-width:900px) { .ghcn-post-grid__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }\n@media(max-width:620px) { .ghcn-post-grid__grid { grid-template-columns: 1fr; } }"
28
+ "content": ".ghcn-post-grid { box-sizing: border-box; min-width: 0; margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); width: min(100% - 32px, 1152px); margin-inline: auto; }\n.ghcn-post-grid__title { font-size: var(--ghcn-title-section, clamp(24px, 3vw, 32px)); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; margin: 0 0 var(--ghcn-section-gap, 20px); }\n.ghcn-post-grid__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--ghcn-grid-gap, 16px); }\n.ghcn-post-grid__grid > * { min-width: 0; }\n.ghcn-post-grid__empty { color: var(--muted-foreground); }"
29
29
  }
30
30
  ],
31
31
  "styleSlots": {
@@ -9,13 +9,13 @@
9
9
  "name": "post-header.hbs",
10
10
  "type": "partial",
11
11
  "target": "partials/components/post-header.hbs",
12
- "content": "{{!-- Styling parameters: class, titleClass, descriptionClass, metaClass, imageClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!-- Component: Post Header | Usage: inside {{#post}} --}}\n<header class=\"ghcn-post-header{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}} ghcn-container\">\n {{#if primary_tag}}<a class=\"ghcn-badge\" href=\"{{primary_tag.url}}\">{{primary_tag.name}}</a>{{/if}}\n <h1 class=\"ghcn-post-header__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{title}}</h1>\n {{#if custom_excerpt}}<p class=\"ghcn-post-header__excerpt{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\">{{custom_excerpt}}</p>{{/if}}\n <div class=\"ghcn-post-header__meta{{#if ghostcnStyles.metaClass}} {{ghostcnStyles.metaClass}}{{/if}}\">\n {{#primary_author}}\n <a class=\"ghcn-post-header__author\" href=\"{{url}}\">\n {{#if profile_image}}<img class=\"ghcn-avatar\" src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"\" />{{/if}}\n <span>{{name}}</span>\n </a>\n {{/primary_author}}\n <span aria-hidden=\"true\">&bull;</span>\n <time datetime=\"{{date format=\"YYYY-MM-DD\"}}\">{{date format=\"D MMM YYYY\"}}</time>\n <span aria-hidden=\"true\">&bull;</span>\n <span>{{reading_time}}</span>\n </div>\n {{#if feature_image}}\n <figure class=\"ghcn-post-header__media\">\n <img class=\"ghcn-post-header__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" srcset=\"{{img_url feature_image size=\"s\"}} 400w, {{img_url feature_image size=\"m\"}} 750w, {{img_url feature_image size=\"l\"}} 1200w, {{img_url feature_image size=\"xl\"}} 2000w\" sizes=\"(min-width: 1200px) 1120px, 92vw\" src=\"{{img_url feature_image size=\"xl\"}}\" alt=\"{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}\" />\n {{#if feature_image_caption}}<figcaption>{{feature_image_caption}}</figcaption>{{/if}}\n </figure>\n {{/if}}\n</header>\n{{/with}}"
12
+ "content": "{{!-- Styling parameters: class, titleClass, descriptionClass, metaClass, imageClass --}}\n{{#with this as |ghostcnStyles|}}\n{{!-- Component: Post Header | Usage: inside {{#post}} --}}\n<header class=\"ghcn-post-header{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}} ghcn-container\">\n {{#if primary_tag}}<a class=\"ghcn-badge\" href=\"{{primary_tag.url}}\">{{primary_tag.name}}</a>{{/if}}\n <h1 class=\"ghcn-post-header__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{title}}</h1>\n {{#if custom_excerpt}}<p class=\"ghcn-post-header__excerpt{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\">{{custom_excerpt}}</p>{{/if}}\n <div class=\"ghcn-post-header__meta{{#if ghostcnStyles.metaClass}} {{ghostcnStyles.metaClass}}{{/if}}\">\n {{#primary_author}}\n <a class=\"ghcn-post-header__author\" href=\"{{url}}\">\n {{#if profile_image}}<img class=\"ghcn-avatar\" src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"\" />{{/if}}\n <span>{{name}}</span>\n </a>\n <span aria-hidden=\"true\">&bull;</span>\n {{/primary_author}}\n <time datetime=\"{{date format=\"YYYY-MM-DD\"}}\">{{date format=\"D MMM YYYY\"}}</time>\n <span aria-hidden=\"true\">&bull;</span>\n <span>{{reading_time}}</span>\n </div>\n {{#if feature_image}}\n <figure class=\"ghcn-post-header__media\">\n <img class=\"ghcn-post-header__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" srcset=\"{{img_url feature_image size=\"s\"}} 400w, {{img_url feature_image size=\"m\"}} 750w, {{img_url feature_image size=\"l\"}} 1200w, {{img_url feature_image size=\"xl\"}} 2000w\" sizes=\"(min-width: 1200px) 1120px, 92vw\" src=\"{{img_url feature_image size=\"xl\"}}\" alt=\"{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}\" />\n {{#if feature_image_caption}}<figcaption>{{feature_image_caption}}</figcaption>{{/if}}\n </figure>\n {{/if}}\n</header>\n{{/with}}"
13
13
  },
14
14
  {
15
15
  "name": "post-header.css",
16
16
  "type": "style",
17
17
  "target": "assets/css/components/post-header.css",
18
- "content": "/* ghostcn: Post Header */\n.ghcn-post-header { box-sizing: border-box; margin-block: 4em 2.5em; color: var(--foreground); text-align: center; font-family: inherit; font-size: 16px; line-height: 1.5; isolation: isolate; }\n.ghcn-post-header *, .ghcn-post-header *::before, .ghcn-post-header *::after { box-sizing: border-box; }\n.ghcn-post-header h1 { max-width: 58em; margin: 1em auto; font-size: clamp(2.5em,7vw,5em); line-height: 0.98; letter-spacing: -0.055em; text-wrap: balance; }\n.ghcn-post-header__excerpt { max-width: 44em; margin: 1.25em auto; color: var(--muted-foreground); font-size: clamp(1.05em,2vw,1.25em); }\n.ghcn-post-header__meta, .ghcn-post-header__author { display: flex; align-items: center; justify-content: center; gap: 0.625em; }\n.ghcn-post-header__meta { flex-wrap: wrap; color: var(--muted-foreground); font-size: 0.8125em; }\n.ghcn-post-header__author { color: var(--foreground); font-weight: 700; text-decoration: none; }\n.ghcn-post-header__author .ghcn-avatar { width: 2em; height: 2em; }\n.ghcn-post-header__media { margin: 3em 0 0; }\n.ghcn-post-header__media img { display: block; width: 100%; max-height: 44em; border-radius: min(var(--radius),1.25em); object-fit: cover; }\n.ghcn-post-header__media figcaption { margin-top: 0.75em; color: var(--muted-foreground); font-size: 0.75em; }\n"
18
+ "content": "/* ghostcn: Post Header */\n.ghcn-post-header { box-sizing: border-box; min-width: 0; margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); text-align: center; }\n.ghcn-post-header *, .ghcn-post-header *::before, .ghcn-post-header *::after { box-sizing: border-box; }\n.ghcn-post-header__title { font-size: var(--ghcn-title-display, clamp(32px, 5vw, 56px)); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; max-width: 24ch; margin: 12px auto; }\n.ghcn-post-header__excerpt { max-width: 60ch; margin: 12px auto; color: var(--muted-foreground); font-size: var(--ghcn-text-body, 16px); }\n.ghcn-post-header__meta, .ghcn-post-header__author { display: flex; align-items: center; justify-content: center; gap: 10px; }\n.ghcn-post-header__meta { flex-wrap: wrap; color: var(--muted-foreground); font-size: var(--ghcn-text-meta, 13px); }\n.ghcn-post-header__author { color: var(--foreground); font-weight: 700; text-decoration: none; }\n.ghcn-post-header__author .ghcn-avatar { width: 32px; height: 32px; }\n.ghcn-post-header__media { margin: var(--ghcn-section-gap, 20px) 0 0; }\n.ghcn-post-header__image { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 560px; border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); object-fit: cover; }\n.ghcn-post-header__media figcaption { margin-top: 12px; color: var(--muted-foreground); font-size: 12px; }\n"
19
19
  }
20
20
  ],
21
21
  "gscan": {
@@ -15,7 +15,7 @@
15
15
  "name": "post-navigation.css",
16
16
  "type": "style",
17
17
  "target": "assets/css/components/post-navigation.css",
18
- "content": "\n.ghcn-post-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1em; margin-block: 2em; }\n.ghcn-post-navigation:empty { display: none; }\n.ghcn-post-navigation__link { min-width: 0; display: flex; flex-direction: column; gap: .5em; padding: 1.25em; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--card-foreground); text-decoration: none; }\n.ghcn-post-navigation__link--next { grid-column: 2; text-align: right; }\n.ghcn-post-navigation__label { font-size: .75em; color: var(--muted-foreground); }\n.ghcn-post-navigation__title { font-weight: 600; overflow-wrap: anywhere; }\n.ghcn-post-navigation__link:hover .ghcn-post-navigation__title { text-decoration: underline; }\n.ghcn-post-navigation__link:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }\n@media(max-width:620px) { .ghcn-post-navigation { grid-template-columns: 1fr; } .ghcn-post-navigation__link--next { grid-column: 1; } }\n"
18
+ "content": "\n.ghcn-post-navigation { box-sizing: border-box; min-width: 0; margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ghcn-grid-gap, 16px); }\n.ghcn-post-navigation:empty { display: none; }\n.ghcn-post-navigation__link { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); display: flex; flex-direction: column; gap: 4px; padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px)); text-decoration: none; }\n.ghcn-post-navigation__link--next { grid-column: 2; text-align: right; }\n.ghcn-post-navigation__label { font-size: var(--ghcn-text-meta, 13px); color: var(--muted-foreground); }\n.ghcn-post-navigation__title { font-weight: 600; overflow-wrap: anywhere; }\n.ghcn-post-navigation__link:hover .ghcn-post-navigation__title { text-decoration: underline; }\n.ghcn-post-navigation__link:focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n@media(max-width:620px) { .ghcn-post-navigation { grid-template-columns: 1fr; } .ghcn-post-navigation__link--next { grid-column: 1; } }\n"
19
19
  }
20
20
  ],
21
21
  "gscan": {