push path mapping to storage layer
1 file changed, 0 insertions(+), 11 deletions(-)
changed files
M internal/content/posts.go → internal/content/posts.go
@@ -32,7 +32,6 @@ } type Post struct { Input string - Output string Basename string URL string Commits []*vcs.Commit@@ -57,10 +56,6 @@ StaticFiles []string Tags mapset.Set[string] } -var postOutputReplacer = strings.NewReplacer( - "index.md", "index.html", - ".md", "/index.html", -) var postURLReplacer = strings.NewReplacer( "index.md", "", ".md", "/",@@ -75,7 +70,6 @@ return nil, errors.WithMessagef(err, "could not get commit log for file %s", filename) } post := &Post{ Input: fp, - Output: postOutputReplacer.Replace(filename), Basename: filepath.Base(url), URL: url, PostMatter: &PostMatter{},@@ -90,10 +84,6 @@ return post, nil } -var pageOutputReplacer = strings.NewReplacer( - "index.md", "index.html", - ".md", ".html", -) var pageURLReplacer = strings.NewReplacer( "index.md", "", ".md", "",@@ -104,7 +94,6 @@ fp := filepath.Join(cc.config.Root, filename) url := path.Join("/", pageURLReplacer.Replace(filename)) post := &Post{ Input: fp, - Output: pageOutputReplacer.Replace(filename), Basename: filepath.Base(url), URL: url, PostMatter: &PostMatter{},