chore: format updates
bc5cc193
3 file(s) · +17 −5
| 67 | 67 | } |
|
| 68 | 68 | ||
| 69 | 69 | if (error) { |
|
| 70 | - | return <p>Error loading recent updates. Make sure your PDS is accessible.</p>; |
|
| 70 | + | return ( |
|
| 71 | + | <p>Error loading recent updates. Make sure your PDS is accessible.</p> |
|
| 72 | + | ); |
|
| 71 | 73 | } |
|
| 72 | 74 | ||
| 73 | 75 | if (documents.length === 0) { |
|
| 89 | 91 | } |
|
| 90 | 92 | ||
| 91 | 93 | return ( |
|
| 92 | - | <article key={record.uri} className="border-b pb-6 mb-6 last:border-b-0"> |
|
| 93 | - | <a href={`/now/${path}`} className="block hover:opacity-80 transition-opacity"> |
|
| 94 | + | <article |
|
| 95 | + | key={record.uri} |
|
| 96 | + | className="border-b pb-6 mb-6 last:border-b-0" |
|
| 97 | + | > |
|
| 98 | + | <a |
|
| 99 | + | href={`/now/${path}`} |
|
| 100 | + | className="block hover:opacity-80 transition-opacity" |
|
| 101 | + | > |
|
| 94 | 102 | <h3 className="text-lg font-semibold mb-3">{value.title}</h3> |
|
| 95 | 103 | </a> |
|
| 96 | 104 | <div |
|
| 53 | 53 | }, |
|
| 54 | 54 | body: JSON.stringify({ |
|
| 55 | 55 | title: title.trim(), |
|
| 56 | - | path: path.trim() ? (path.trim().startsWith('/') ? path.trim() : `/${path.trim()}`) : undefined, |
|
| 56 | + | path: path.trim() |
|
| 57 | + | ? path.trim().startsWith("/") |
|
| 58 | + | ? path.trim() |
|
| 59 | + | : `/${path.trim()}` |
|
| 60 | + | : undefined, |
|
| 57 | 61 | content: content.trim(), |
|
| 58 | 62 | }), |
|
| 59 | 63 | }); |
| 1 | 1 | const siteMeta = { |
|
| 2 | 2 | author: "Steve Simkins", |
|
| 3 | 3 | title: "Steve Simkins", |
|
| 4 | - | description: "DX Engineer | Building Orbiter", |
|
| 4 | + | description: "DX Engineer | Defending the Open Web", |
|
| 5 | 5 | lang: "en-GB", |
|
| 6 | 6 | ogLocale: "en_GB", |
|
| 7 | 7 | githubUrl: "https://github.com/stevedsimkins/stevedsimkins-dev-astro", |