Skip to content

Commit d8c3559

Browse files
authored
Update config.go
1 parent 82cf07c commit d8c3559

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

internal/config/config.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const (
7474
{{.PreviewText}}
7575
-----------------------------
7676
{{- end}}{{if .EnableTelegraph}}
77-
{{.ContentTitle}} <a href="{{.TelegraphURL}}">Telegraph</a> | <a href="{{.RawLink}}">原文</a>
77+
<a href="{{.TelegraphURL}}">【預覽】</a><a href="{{.RawLink}}">{{.ContentTitle}}</a>
7878
{{- else }}
7979
<a href="{{.RawLink}}">{{.ContentTitle}}</a>
8080
{{- end }}
@@ -85,12 +85,21 @@ const (
8585
{{.PreviewText}}
8686
-----------------------------
8787
{{- end}}{{if .EnableTelegraph}}
88-
{{.ContentTitle}} [Telegraph]({{.TelegraphURL}}) | [原文]({{.RawLink}})
88+
[【預覽】]({{.TelegraphURL}})[{{.ContentTitle}}]({{.RawLink}})
8989
{{- else }}
9090
[{{.ContentTitle}}]({{.RawLink}})
9191
{{- end }}
9292
{{.Tags}}
9393
`
94+
//defaultMessageListItemTpl = `{{if .EnableTelegraph}}
95+
//[【預覽】]({{.TelegraphURL}})[{{.ContentTitle}}]({{.RawLink}}) {{- else }}
96+
//[{{.ContentTitle}}]({{.RawLink}}){{- end }}`
97+
defaultMessageListItemTpl = `{{if .EnableTelegraph}}
98+
<a href="{{.TelegraphURL}}">【預覽】</a><a href="{{.RawLink}}">{{.ContentTitle}}</a>
99+
{{- else }}
100+
<a href="{{.RawLink}}">{{.ContentTitle}}</a>
101+
{{- end }}`
102+
94103
TestMode RunType = "Test"
95104
ReleaseMode RunType = "Release"
96105
)

0 commit comments

Comments
 (0)