Skip to content

Commit 3785a7e

Browse files
author
openset
committed
Update: CmdPost
1 parent b03397a commit 3785a7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/post/post.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func runPost(cmd *base.Command, args []string) {
2828
}
2929
formatFilename := "%s-%s.md"
3030
formatTopicTag := " [[%s](https://github.com/openset/leetcode/tree/master/tag/%s/README.md)]\n"
31-
formatSimilarQuestion := " 1. [%s](/%s)%s\n"
31+
formatSimilarQuestion := " 1. [%s](/problems/%s)%s\n"
3232
problems := leetcode.ProblemsAll()
3333
for _, problem := range problems.StatStatusPairs {
3434
questionId := problem.Stat.FrontendQuestionId
@@ -112,7 +112,7 @@ title: "%s"
112112
date: %s +0800
113113
categories: [Leetcode]
114114
tags: [%s]
115-
permalink: /%s/
115+
permalink: /problems/%s/
116116
---
117117
`
118118

0 commit comments

Comments
 (0)