penguin/flatgit

flatgit showcase

commit 5ce6c3b70b12fb55cf0e108c7eabc51d5c50ae43

author斟酌 鵬兄 <tgckpg@gmail.com>
date2026-06-24T05:33:08Z
subjectFixed OwnerSitePath regression in prev commit
commit 5ce6c3b70b12fb55cf0e108c7eabc51d5c50ae43
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2026-06-24T05:33:08Z

    Fixed OwnerSitePath regression in prev commit
---
 internal/buildinfo/buildinfo_gen.go | 4 ++--
 internal/render/manifest.go         | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/internal/buildinfo/buildinfo_gen.go b/internal/buildinfo/buildinfo_gen.go
index e3b58e6..61f6d7a 100644
--- a/internal/buildinfo/buildinfo_gen.go
+++ b/internal/buildinfo/buildinfo_gen.go
@@ -2,6 +2,6 @@ package buildinfo
 
 const (
     Version     = "dev"
-    GitRevision = "c61d98835bd35fc99be5c16051c45b2b87056a5e"
-    Timestamp   = "20260624.051331"
+    GitRevision = "e7920416df1fd5a5ec6ec046a931cef5232b08af"
+    Timestamp   = "20260624.053038"
 )
diff --git a/internal/render/manifest.go b/internal/render/manifest.go
index 9c5b39e..3bf224e 100644
--- a/internal/render/manifest.go
+++ b/internal/render/manifest.go
@@ -2,6 +2,7 @@ package render
 
 import (
 	"path"
+	"strings"
 	"time"
 
 	"github.com/tgckpg/flatgit/internal/config"
@@ -79,7 +80,7 @@ func NewManifest(repo config.Repo, defaultBranch string, defaultCommit string) M
 			DefaultCommit:  defaultCommit,
 			DefaultRefSlug: refSlug(repo.DefaultBranch),
 			SitePath:       repo.RepoBase(),
-			OwnerSitePath:  path.Dir(repo.RepoBase()),
+			OwnerSitePath:  path.Dir(strings.TrimSuffix(repo.RepoBase(), "/")) + "/",
 		},
 		Human: ManifestHumanRoutes{
 			Index:  "./index.html",