File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
28
28
29
29
if ( text ) {
30
30
const segments : ( string | JSX . Element ) [ ] = [ ]
31
+ const fileRelativePath = fileData . filePath
31
32
32
33
if ( fileData . dates ) {
33
34
segments . push ( formatDate ( getDate ( cfg , fileData ) ! , cfg . locale ) )
@@ -46,7 +47,15 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
46
47
47
48
return (
48
49
< p show-comma = { options . showComma } class = { classNames ( displayClass , "content-meta" ) } >
49
- { segmentsElements }
50
+ { segmentsElements } < br />
51
+ < a href = { `https://github.com/morrowind-modding/wiki/edit/main/${ fileRelativePath } ` } class = { classNames ( displayClass , "external" ) } target = { "_blank" } style = { "font-weight:400" } >
52
+ < svg xmlns = "http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "lucide lucide-square-pen" > < path d = "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" /> < path d = "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" /> </ svg >
53
+ Edit This Page!
54
+ </ a >
55
+ < a href = { `https://github.com/morrowind-modding/wiki/blame/main/${ fileRelativePath } ` } class = { classNames ( displayClass , "external" ) } target = { "_blank" } style = { "font-weight:400" } >
56
+ < svg xmlns = "http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke-width = "2" stroke-linecap = "round" stroke-linejoin = "round" class = "lucide lucide-folder-clock" > < circle cx = "16" cy = "16" r = "6" /> < path d = "M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2" /> < path d = "M16 14v2l1 1" /> </ svg >
57
+ History
58
+ </ a >
50
59
</ p >
51
60
)
52
61
} else {
You can’t perform that action at this time.
0 commit comments