Skip to content

Commit

Permalink
v0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 31, 2023
1 parent 728671f commit ebf91f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Instances of quickblog can be seen here:
- [Henry Widd's blog](https://widdindustries.com/blog)
- [Anders means different](https://www.eknert.com/blog) - ([source](https://github.com/anderseknert/blog))

## 0.3.5 (2023-12-31)

- Better caching when switching between watch and render

## 0.3.4 (2023-12-31)

- Fix caching in watch mode
Expand Down
8 changes: 2 additions & 6 deletions src/quickblog/internal.clj
Original file line number Diff line number Diff line change
Expand Up @@ -278,18 +278,14 @@
set))

(defn modified-posts [{:keys [force-render out-dir posts posts-dir
rendering-system-files watch]}]
rendering-system-files]}]
(->> posts
(filter (fn [[file _]]
(let [out-file (fs/file out-dir (html-file file))
post-file (fs/file posts-dir file)]
(or force-render
(rendering-modified? out-file
(cons post-file rendering-system-files))
;; watch mode adds a live reloading script, which should be
;; removed on subsequent renders
(and (str/includes? (slurp out-file) live-reload-script)
(not watch))))))
(cons post-file rendering-system-files))))))
(map first)
set))

Expand Down

0 comments on commit ebf91f5

Please sign in to comment.