From bad30877282ff2e584c49ea1a656bf0fa0f3b1fa Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 6 Nov 2023 21:33:45 +0700 Subject: all: use modification time when deciding when to convert to HTML Previously, in changes 46bd8b68dc8c we pass the force=true to Convert function. In this changes, we derive the decision based on modification time of HTML template and markup file. If the HTML template or markup file is newer that HTML file then the new HTML file will be generated. --- ciigo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ciigo.go') diff --git a/ciigo.go b/ciigo.go index 033f74f..d9b467e 100644 --- a/ciigo.go +++ b/ciigo.go @@ -66,7 +66,7 @@ func Convert(opts *ConvertOptions) (err error) { return fmt.Errorf(`%s: %w`, logp, err) } - converter.convertFileMarkups(fileMarkups, true) + converter.convertFileMarkups(fileMarkups, false) return nil } -- cgit v1.3