Skip to content

Commit

Permalink
Update hugo_gen_setup.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Oct 29, 2024
1 parent 792b9fc commit 911c4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp2hugo/internal/hugogenerator/hugo_gen_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ func (g Generator) downloadPageMedia(outputMediaDirPath string, p *hugopage.Page

for _, link := range links {
if strings.HasPrefix(link, "//") {
link = strings.Replace(link, "//", fmt.Sprintf("%s://", pageURL.Scheme) , 1)
}
link = strings.Replace(link, "//", fmt.Sprintf("%s://", pageURL.Scheme), 1)
}
for _, prefix := range prefixes {
link = strings.TrimPrefix(link, prefix)
}
Expand Down

0 comments on commit 911c4e3

Please sign in to comment.