fix: add nil guard for StaticFS and set default PostsPerPage in FirstRun
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f68bac809f
commit
40da63368a
2 changed files with 9 additions and 5 deletions
|
|
@ -572,6 +572,9 @@ func (b *Builder) writeUploads(ctx buildContext, uploads []models.Upload) error
|
|||
}
|
||||
|
||||
func (b *Builder) writeStaticAssets(ctx buildContext) error {
|
||||
if b.opts.StaticFS == nil {
|
||||
return nil
|
||||
}
|
||||
return fs.WalkDir(b.opts.StaticFS, ".", func(path string, d os.DirEntry, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue