fix style hash not calculated for pages
1 file changed, 7 insertions(+), 0 deletions(-)
changed files
M internal/storage/files/writer.go → internal/storage/files/writer.go
@@ -80,6 +80,13 @@ return nil } +func (f *Files) NewFileFromPost(post *content.Post) *storage.File { + return &storage.File{ + Path: post.URL, + Encodings: map[string]*buffer.Buffer{}, + } +} + func (f *Files) WriteFile(file *storage.File, content *buffer.Buffer) error { return f.Write(file.Path, content) }