diff options
author | Alan Pearce | 2025-01-25 21:50:20 +0100 |
---|---|---|
committer | Alan Pearce | 2025-01-25 21:50:20 +0100 |
commit | 93c01942cb379b448dafab7ceffd78c005772928 (patch) | |
tree | cc2ea749569677ed8a283772551c8cb9d4350817 /internal/builder/template.go | |
parent | 160a6e5084ed3c2a6d9ec3831325d3607cc222c1 (diff) | |
download | website-93c01942cb379b448dafab7ceffd78c005772928.tar.lz website-93c01942cb379b448dafab7ceffd78c005772928.tar.zst website-93c01942cb379b448dafab7ceffd78c005772928.zip |
builder:make getHTMLStyleHash output-independent
Diffstat (limited to 'internal/builder/template.go')
-rw-r--r-- | internal/builder/template.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/internal/builder/template.go b/internal/builder/template.go index c318107..914b67d 100644 --- a/internal/builder/template.go +++ b/internal/builder/template.go @@ -155,14 +155,8 @@ func getFeedStylesHash(r io.Reader) (string, error) { return hash(style.InnerText()), nil } -func getHTMLStyleHash(filenames ...string) (string, error) { - fn := filepath.Join(filenames...) - f, err := os.Open(fn) - if err != nil { - return "", err - } - defer f.Close() - doc, err := NewDocumentFromReader(f) +func getHTMLStyleHash(r io.Reader) (string, error) { + doc, err := NewDocumentFromReader(r) if err != nil { return "", err } |