Skip to content

Commit

Permalink
rename the blog tag
Browse files Browse the repository at this point in the history
  • Loading branch information
readme-update-bot committed Apr 10, 2023
1 parent 120951d commit e72990d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ func WriteToFile(path string, items []string) {
for _, line := range lines {
line = strings.TrimSpace(line)

if !stop && line == "<!-- DOUBAN-ACTIVITIES:START -->" {
if !stop && line == "<!-- BLOG-POST-LIST:START -->" {
fmt.Fprintln(w, line)
stop = true
}

if line == "<!-- DOUBAN-ACTIVITIES:END -->" {
if line == "<!-- BLOG-POST-LIST:END -->" {
stop = false
for _, item := range items {
fmt.Fprintln(w, item)
Expand Down

0 comments on commit e72990d

Please sign in to comment.