From b9d35a69d22cbe64ae8ecfdd0fdb7173376ceb39 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Tue, 25 Apr 2023 18:50:09 +0200 Subject: [PATCH] fix: copy latest --- core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index 6f433c9..5f8b862 100644 --- a/core/core.go +++ b/core/core.go @@ -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 {