fix incorrect style hash calculation
1 file changed, 4 insertions(+), 0 deletions(-)
changed files
M internal/builder/builder.go → internal/builder/builder.go
@@ -230,6 +230,10 @@ // it would be nice to set LastMod here, but using the latest post // date would be wrong as the homepage has its own content file // without a date, which could be newer sitemap.AddPath("/", time.Time{}) + err = buf.SeekStart() + if err != nil { + return nil, err + } h, _ = getHTMLStyleHash(buf) r.Hashes = append(r.Hashes, h)