diff --git a/CHANGELOG.md b/CHANGELOG.md index 06593a1..71ee064 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,16 @@ # Changelog -## Unreleased: +## 0.1.0 (2022-12-11) - Add command line interface - Watch assets dir for changes in watch mode - Added `refresh-templates` task to update to latest templates - Social sharing (preview for Facebook, Twitter, LinkedIn, etc.) - Move metadata to post files and improve caching -- favicon support +- Favicon support -## 0.0.1 +Thanks to Josh Glover ([@jmglov](https://github.com/jmglov)) for heavily contributing in this release! + +## 0.0.1 (2022-07-17) - Initial version diff --git a/script/changelog.clj b/script/changelog.clj new file mode 100755 index 0000000..431ca60 --- /dev/null +++ b/script/changelog.clj @@ -0,0 +1,17 @@ +#!/usr/bin/env bb + +(ns changelog + (:require [clojure.string :as str])) + +(let [changelog (slurp "CHANGELOG.md") + replaced (str/replace changelog + #" #(\d+)" + (fn [[_ issue after]] + (format " [#%s](https://github.com/borkdude/quickblog/issues/%s)%s" + issue issue (str after)))) + replaced (str/replace replaced + #"@([a-zA-Z0-9-_]+)([, \.)])" + (fn [[_ name after]] + (format "[@%s](https://github.com/%s)%s" + name name after)))] + (spit "CHANGELOG.md" replaced))