Skip to content

Commit 0b6376f

Browse files
committed
feat:Add some note.
1 parent 2af5247 commit 0b6376f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ build:
77
mkdir -p ${GOPATH}/src/github.com/gogank/papillon/build/
88
cp -R ${GOPATH}/src/github.com/gogank/papillon/configuration/blog ${GOPATH}/src/github.com/gogank/papillon/build/
99
govendor build -ldflags -s -o ${GOPATH}/src/github.com/gogank/papillon/build/blog/papi -tags=embed
10-
cd ${GOPATH}/src/github.com/gogank/papillon/build/blog && ./papi gen
10+
cd ${GOPATH}/src/github.com/gogank/papillon/build/blog
11+
1112

cmd/generate.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"github.com/spf13/cobra"
55
"fmt"
66
"github.com/gogank/papillon/handler"
7-
"time"
87
)
98

109
func init() {
@@ -29,8 +28,6 @@ var generateCmd = &cobra.Command{
2928
fmt.Println("| |_| | __/ | | | __/ | | (_| | |_| | | | | (_| |")
3029
fmt.Println(" \\____|\\___|_| |_|\\___|_| \\__,_|\\__|_|_| |_|\\__, |")
3130
fmt.Println(" |___/")
32-
//TODO Sleep 5 Second
33-
time.Sleep(time.Second*5)
3431
if err := handler.Generate("./config.toml"); err != nil {
3532
panic(err.Error())
3633
}

render/render.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func (render *renderer) ConvertLink(raw []byte, parent_dir string) ([]byte, erro
275275
func changeSrc(i int, s *goquery.Selection) {
276276
if src, ok := s.Attr("src"); ok && isInternal(src) {
277277
if ipfs_link, ok := mapper.Get(parseLink(src)); ok {
278-
fmt.Println("Convert: ", src, "to",ipfs_link)
278+
//fmt.Println("Convert: ", src, "to",ipfs_link)
279279
//fmt.Println("convert ", parseLink(src), " to ", ipfs_link)
280280
s.SetAttr("src", addIPFSPrefix(ipfs_link))
281281
}
@@ -287,7 +287,7 @@ func changeHref(i int, s *goquery.Selection) {
287287
if src, ok := s.Attr("href"); ok && isInternal(src) {
288288
// 如果是内部链接,进行处理
289289
if ipfs_link, ok := mapper.Get(parseLink(src)); ok {
290-
fmt.Println("Convert: ", src, "to",ipfs_link)
290+
//fmt.Println("Convert: ", src, "to",ipfs_link)
291291
s.SetAttr("href", addIPFSPrefix(ipfs_link))
292292
}
293293
}

0 commit comments

Comments
 (0)