astro-accelerator 5.11.0 → 5.11.1

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.11.0",
2
+ "version": "5.11.1",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -60,6 +60,7 @@
60
60
  "sample/*",
61
61
  "sample/**/*",
62
62
  "src/config.ts",
63
+ "src/content/config.ts",
63
64
  "src/pages/404.md",
64
65
  "src/pages/index.md",
65
66
  "src/pages/search.md",
@@ -113,6 +113,10 @@ button:focus,
113
113
  color: var(--aft);
114
114
  }
115
115
 
116
+ .button-alternate {
117
+ filter: saturate(0.5);
118
+ }
119
+
116
120
  summary {
117
121
  padding-inline: 0;
118
122
  text-decoration: none;
@@ -0,0 +1,17 @@
1
+ import { defineCollection, z } from 'astro:content';
2
+
3
+ const events = defineCollection({
4
+ schema: z.object({
5
+ title: z.string(),
6
+ description: z.string(),
7
+ startDate: z.coerce.date(),
8
+ endDate: z.coerce.date().optional(),
9
+ location: z.string(),
10
+ linkHref: z.string().optional(),
11
+ linkText: z.string().optional(),
12
+ }),
13
+ });
14
+
15
+ export const collections = {
16
+ 'events': events,
17
+ };
@@ -134,15 +134,11 @@ const displayDate = formatDate(date);
134
134
  margin-block-start: 1rem;
135
135
  }
136
136
 
137
- .button-alternate {
138
- filter: saturate(0.5);
139
- }
140
-
141
137
  .timeline-details {
142
138
  font-size: var(--font-size-meta);
143
139
  }
144
140
 
145
- time {
141
+ .timeline-event time {
146
142
  display: inline-block;
147
143
  margin-block-end: var(--grid-gap);
148
144
  }