File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1515 name : Publish Preview
1616 steps :
1717 - uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
1820 - uses : actions/setup-node@v4
1921 with :
2022 node-version : 22.x
Original file line number Diff line number Diff line change 1111 name : Publish Production
1212 steps :
1313 - uses : actions/checkout@v4
14+ with :
15+ fetch-depth : 0
1416 - uses : actions/setup-node@v4
1517 with :
1618 node-version : 22.x
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ export default defineConfig({
152152 Footer : "./src/components/overrides/Footer.astro" ,
153153 Head : "./src/components/overrides/Head.astro" ,
154154 Hero : "./src/components/overrides/Hero.astro" ,
155+ LastUpdated : "./src/components/overrides/LastUpdated.astro" ,
155156 MarkdownContent : "./src/components/overrides/MarkdownContent.astro" ,
156157 Sidebar : "./src/components/overrides/Sidebar.astro" ,
157158 PageSidebar : "./src/components/overrides/PageSidebar.astro" ,
Original file line number Diff line number Diff line change 1+ ---
2+ import type { Props } from " @astrojs/starlight/props" ;
3+ import Default from " @astrojs/starlight/components/LastUpdated.astro" ;
4+
5+ // Disable lastUpdated in footer if `updated` is present,
6+ // since this will show the date in PageTitle.astro instead.
7+ if (Astro .props .entry .data .updated ) {
8+ Astro .props .lastUpdated = undefined ;
9+ }
10+ ---
11+
12+ <Default {... Astro .props } />
You can’t perform that action at this time.
0 commit comments