about summary refs log tree commit diff stats
path: root/internal/builder/template.go
diff options
context:
space:
mode:
authorAlan Pearce2025-01-25 21:50:20 +0100
committerAlan Pearce2025-01-25 21:50:20 +0100
commit93c01942cb379b448dafab7ceffd78c005772928 (patch)
treecc2ea749569677ed8a283772551c8cb9d4350817 /internal/builder/template.go
parent160a6e5084ed3c2a6d9ec3831325d3607cc222c1 (diff)
downloadwebsite-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.go10
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
 	}