Skip to content

Commit

Permalink
fix: copy latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 25, 2023
1 parent dcdd4e9 commit b9d35a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func copyVersionSiteToOutputSite(versionsInfo types.VersionsInformation, siteDir
}

outputDir := filepath.Join(siteDir, versionsInfo.Current)
if strings.HasPrefix(versionsInfo.Latest, versionsInfo.Current) {
if strings.HasPrefix(versionsInfo.Latest, versionsInfo.Current+".") {
// Create a permalink for the latest version
err := file.Copy(filepath.Join(currentSiteDir, "site"), outputDir)
if err != nil {
Expand Down

0 comments on commit b9d35a6

Please sign in to comment.