@@ -3,7 +3,8 @@ import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
33import type { GetStaticPaths } from " astro" ;
44import { getCollection } from " astro:content" ;
55import { format } from " date-fns" ;
6- import { StarlightIcon } from " ~/components" ;
6+ import { Image } from " astro:assets" ;
7+ import HeroImage from " ~/assets/images/release-notes/hero.svg" ;
78
89export const getStaticPaths = (async () => {
910 const notes = await getCollection (" release-notes" );
@@ -20,8 +21,6 @@ export const getStaticPaths = (async () => {
2021 });
2122}) satisfies GetStaticPaths ;
2223
23- const notes = await getCollection (" release-notes" );
24-
2524const { note } = Astro .props ;
2625
2726const { Content, headings } = await note .render ();
@@ -36,25 +35,26 @@ const { Content, headings } = await note.render();
3635 hideTitle ={ true }
3736 hideBreadcrumbs ={ true }
3837>
39- <div class =" flex mb-20" >
40- <div class =" flex flex-col" >
41- <h1 >Changelog</h1 >
42- <p >
43- New updates and improvements at Cloudflare.
44- <span >
45- <a href =" /release-notes/feed.rss" > Subscribe to RSS </a >
46- </span >
47- </p >
48- <p >
49- <StarlightIcon
50- name =" left-arrow"
51- class =" align-middle !inline text-accent"
52- />
53- <a href =" /release-notes/" class =" no-underline" >Back to all posts</a >
54- </p >
38+ <div class =" w-full justify-self-center flex mb-20" >
39+ <div class =" flex justify-between w-full" >
40+ <div class =" flex flex-col" >
41+ <h1 >Changelog</h1 >
42+ <p >
43+ New updates and improvements at Cloudflare.
44+ <span >
45+ <a href =" /release-notes/feed.rss" > Subscribe to RSS </a >
46+ </span >
47+ </p >
48+ <p >
49+ <a href =" /release-notes/" class =" no-underline" >← Back to all posts</a >
50+ </p >
51+ </div >
52+ <div >
53+ <Image src ={ HeroImage } alt =" hero image" height =" 175" />
54+ </div >
5555 </div >
5656 </div >
57- <div class =" max-w-3xl w-full justify-self-center" >
57+ <div class =" w-full justify-self-center" >
5858 <h2 >{ note .data .title } </h2 >
5959 <div >
6060 <strong
@@ -73,3 +73,9 @@ const { Content, headings } = await note.render();
7373 </div >
7474 </div >
7575</StarlightPage >
76+
77+ <style >
78+ :root {
79+ --sl-content-width: 55rem !important;
80+ }
81+ </style >
0 commit comments