File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
pages/adventure/version-history Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type { MarkdownHeading } from "astro";
8
8
interface Props {
9
9
title: string ;
10
10
repo: string ;
11
+ prepend_tag: boolean ;
11
12
}
12
13
13
14
const props: Props = Astro .props ;
@@ -17,7 +18,7 @@ const headings: MarkdownHeading[] = data.map((e) => {
17
18
return {
18
19
depth: 2 ,
19
20
slug: ` release-${e .tag } ` ,
20
- text: ` ${e .tag_name } ${e .name } ` ,
21
+ text: ( props . prepend_tag ?? false ) ? ` ${e .tag_name }: ${e .name } ` : e . name ,
21
22
};
22
23
});
23
24
---
@@ -28,7 +29,7 @@ const headings: MarkdownHeading[] = data.map((e) => {
28
29
<div >
29
30
<a class = " title" href = { ` #release-${release .tag } ` } >
30
31
<h2 id = { ` release-${release .tag } ` } >
31
- { release .tag_name } { release .name }
32
+ { ( props . prepend_tag ?? false ) ? ` ${ release .tag_name }: ${ release . name } ` : release .name }
32
33
</h2 >
33
34
</a >
34
35
<p class = " released" >
Original file line number Diff line number Diff line change 2
2
import AdventureChangelogs from " /src/components/adventure/AdventureChangelogs.astro" ;
3
3
---
4
4
5
- <AdventureChangelogs repo =" KyoriPowered/adventure-platform-fabric" title =" adventure-platform-fabric" />
5
+ <AdventureChangelogs repo =" KyoriPowered/adventure-platform-fabric" title =" adventure-platform-fabric" prepend_tag = true />
Original file line number Diff line number Diff line change 2
2
import AdventureChangelogs from " /src/components/adventure/AdventureChangelogs.astro" ;
3
3
---
4
4
5
- <AdventureChangelogs repo =" KyoriPowered/adventure" title =" adventure" />
5
+ <AdventureChangelogs repo =" KyoriPowered/adventure" title =" adventure" prepend_tag = true />
You can’t perform that action at this time.
0 commit comments