Skip to content

Commit

Permalink
Merge pull request #227 from novalagung/refactor/structure
Browse files Browse the repository at this point in the history
fix: header
  • Loading branch information
novalagung authored Jun 8, 2023
2 parents 57c98d7 + 3868c50 commit 797a537
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etc/fix-webbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func postAdjustment() {
}(htmlString)

newTitle := oldTitle
isLandingPage := (oldTitle == "Introduction · HonKit") || (oldTitle == "Introduction · HonKit")
isLandingPage := (oldTitle == "Introduction · GitBook") || (oldTitle == "Introduction · HonKit") || (oldTitle == "Introduction · GitBook") || (oldTitle == "Introduction · HonKit")
if isLandingPage {
newTitle = bookName
} else {
Expand All @@ -104,7 +104,9 @@ func postAdjustment() {
if newTitle == "Belajar Golang" {
newTitle = "Tutorial Gratis Belajar Dasar Pemrograman Golang Mulai Dari 0"
}
newTitle = strings.ReplaceAll(newTitle, "· GitBook", fmt.Sprintf("- %s", bookName))
newTitle = strings.ReplaceAll(newTitle, "· HonKit", fmt.Sprintf("- %s", bookName))
newTitle = strings.ReplaceAll(newTitle, "· GitBook", fmt.Sprintf("- %s", bookName))
newTitle = strings.ReplaceAll(newTitle, "· HonKit", fmt.Sprintf("- %s", bookName))

// ==== remove the "A.2"-ish from the title
Expand Down

0 comments on commit 797a537

Please sign in to comment.