this repo has no description

feat: automatically set publication and lastmod date

Changed files
+13
bin
+2
.gitattributes
···
*.woff filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
+
+
content/post/*.md filter=dates
+4
Makefile
···
assets:
yarn install
yarn build
+
+
init:
+
git config filter.dates.clean ./bin/dates.sh
+
git config filter.dates.smudge ./bin/dates.sh
+7
bin/dates.sh
···
+
#!/bin/sh
+
+
today=$(date -Iseconds)
+
+
sed \
+
-e "s/^draft: false/date: $today/" \
+
-e "s/^lastmod:.*/lastmod: $today/"