Add task for `tcardgen`.

This commit is contained in:
Kazuhiro MUSASHI 2021-02-27 08:55:27 +09:00
parent 3513eef693
commit f5b0aabbc4
1 changed files with 7 additions and 0 deletions

7
tasks/tcardgen.rake Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env rake
desc 'Generate OGP images'
task :tcard do
sh 'find static/ogp/ -type f -name "*.png" | grep -v "base.png" | xargs -t --no-run-if-empty rm'
sh 'find content/ -type f -name "*.md" | xargs -t -I % tcardgen -f ~/repo/sample-font/ -o static/ogp/ -c config/tcardgen.yaml %'
end